Skip to content

Commit

Permalink
Chore: prepare 0.0.5 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Dec 5, 2016
1 parent 3c40fc6 commit 047743a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# Head
# 0.0.5 - 2016-12-05

- Chore: loaded `autoload` in tests relatively `bootstrap.php` file.
- Chore: fixed test for `windows`.
- Chore: minimum required `phpunit/phpunit` version is now `~5.7.0`.
- Chore: use `itgalaxy/bin-check` package instead own implementation.
- Chore: use `PHP_OS` constant instead `php-uname` function.
- Chore: used `itgalaxy/bin-check` package instead own implementation.
- Chore: used `PHP_OS` constant instead `php-uname` function.

# 0.0.4 - 2016-12-03

- Chore: improved `README.md`.
- Chore: use `itgalaxy/os-filter` package instead own implementation.
- Fixed: move `symfony/filesystem` package from `require-dev` to `require`.
- Chore: used `itgalaxy/os-filter` package instead own implementation.
- Fixed: moved `symfony/filesystem` package from `require-dev` to `require`.

# 0.0.3 - 2016-12-02

- Fixed: compat with `windows`.

# 0.0.2 - 2016-12-02

- Fixed: use `Path::canonicalize` for normalize bin path.
- Fixed: use `Path::hasExtension` for determine whether you need to uncompress the file.
- Fixed: used `Path::canonicalize` for normalize bin path.
- Fixed: used `Path::hasExtension` for determine whether you need to uncompress the file.

# 0.0.1 - 2016-12-01

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ $ composer require bin-wrapper
use BinWrapper\BinWrapper;

$url = 'https://github.com/itgalaxy/pngquant-bin/raw/master/bin-vendor';
$platform = strtolower(PHP_OS);
$binWrapper = new BinWrapper();
$binWrapper
->src($url . '/freebsd/x64/pngquant', 'darwin', 'x64')
Expand All @@ -30,7 +31,7 @@ $binWrapper
->src($url . '/macos/pngquant', 'darwin')
->src($url . '/win/pngquant.exe', 'windowsnt')
->dest(__DIR__ . '/vendor-bin')
->use(str_replace(' ', '', strtolower(php_uname('s'))) === 'windowsnt' ? 'pngquant.exe' : 'pngquant')
->use($platform === 'winnt' ? 'pngquant.exe' : 'pngquant')
->version('>=1.71');

$binWrapper->build(['--version']); // You can use `try {} catch {}` for catching exceptions
Expand Down

0 comments on commit 047743a

Please sign in to comment.