Skip to content

Commit

Permalink
Release 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelstolt committed Nov 2, 2018
1 parent f968444 commit c76b838
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

## [v1.9.0] - 2018-11-03
### Added
- Enabled distribution via PHAR. Closes [#27](https://github.com/raphaelstolt/lean-package-validator/issues/27).

## [v1.8.1] - 2017-10-18
### Fixed
- Matched directories e.g. `tests` or `specs` are export-ignored only once. Closes [#24](https://github.com/raphaelstolt/lean-package-validator/issues/24).
Expand Down Expand Up @@ -105,7 +109,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
## v1.0.0 - 2016-09-04
- Initial release.

[Unreleased]: https://github.com/raphaelstolt/lean-package-validator/compare/v1.8.1...HEAD
[Unreleased]: https://github.com/raphaelstolt/lean-package-validator/compare/v1.9.0...HEAD
[v1.9.0]: https://github.com/raphaelstolt/lean-package-validator/compare/v1.8.1...v1.9.0
[v1.8.1]: https://github.com/raphaelstolt/lean-package-validator/compare/v1.8.0...v1.8.1
[v1.8.0]: https://github.com/raphaelstolt/lean-package-validator/compare/v1.7.3...v1.8.0
[v1.7.3]: https://github.com/raphaelstolt/lean-package-validator/compare/v1.7.2...v1.7.3
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ The LeanPackageValidator also can be installed locally to a project which allows
composer require --dev stolt/lean-package-validator
```

As of release `v1.9.0` it's also possible to install and use the LeanPackageValidator via a PHAR [file](https://github.com/raphaelstolt/lean-package-validator/releases/tag/v1.9.0).

## Usage
Run the LeanPackageValidator CLI within or against a project/micro-package directory and it will validate the [export-ignore](https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#Exporting-Your-Repository) entries present in a `.gitattributes` file against a set of common repository artifacts. If no `.gitattributes` file is present it will suggest to create one.

Expand Down
9 changes: 6 additions & 3 deletions bin/application-version
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,16 @@ if (array_key_exists('verify-tag-match', $options)) {
exit(1);
}

$applicationVersion = 'v' . get_phar_version($pharFile);
$guardedExecutable = 'Phar';
$guardedExecutable = 'application';

if ($options['verify-tag-match'] === 'phar') {
$guardedExecutable = 'Phar';
$applicationVersion = 'v' . get_phar_version($pharFile);
}

if ($options['verify-tag-match'] === false
|| $options['verify-tag-match'] === 'bin'
) {
$guardedExecutable = 'application';
$applicationVersion = 'v' . get_application_version($binFile);
}

Expand Down
2 changes: 1 addition & 1 deletion bin/lean-package-validator
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (false === $autoloaded) {
}

define('WORKING_DIRECTORY', getcwd());
define('VERSION', '1.8.1');
define('VERSION', '1.9.0');

use Stolt\LeanPackage\Commands\InitCommand;
use Stolt\LeanPackage\Commands\ValidateCommand;
Expand Down

0 comments on commit c76b838

Please sign in to comment.