From eb4fad5bcb4613f19b32d621372b5c019cec0842 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 20 Apr 2016 08:31:34 +0200 Subject: php-nikic-php-parser: 2.1.0 --- composer.json | 2 +- php-nikic-php-parser-pr268.patch | 22 ---------------------- php-nikic-php-parser-pr269.patch | 32 -------------------------------- php-nikic-php-parser-rpm.patch | 14 +++++++------- php-nikic-php-parser.spec | 22 ++++++++++------------ 5 files changed, 18 insertions(+), 74 deletions(-) delete mode 100644 php-nikic-php-parser-pr268.patch delete mode 100644 php-nikic-php-parser-pr269.patch diff --git a/composer.json b/composer.json index e494f43..080d76a 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "bin": ["bin/php-parse"], "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "2.1-dev" } } } diff --git a/php-nikic-php-parser-pr268.patch b/php-nikic-php-parser-pr268.patch deleted file mode 100644 index edca1d9..0000000 --- a/php-nikic-php-parser-pr268.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 352125814fe223a18f89510b55989c36f92f4ee0 Mon Sep 17 00:00:00 2001 -From: Remi Collet -Date: Fri, 15 Apr 2016 13:53:04 +0200 -Subject: [PATCH] make autoloader more PSR-4 - ---- - lib/PhpParser/Autoloader.php | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/lib/PhpParser/Autoloader.php b/lib/PhpParser/Autoloader.php -index 560a8d9..809a06e 100644 ---- a/lib/PhpParser/Autoloader.php -+++ b/lib/PhpParser/Autoloader.php -@@ -31,7 +31,7 @@ static public function register($prepend = false) { - */ - static public function autoload($class) { - if (0 === strpos($class, 'PhpParser\\')) { -- $fileName = dirname(__DIR__) . '/' . strtr($class, '\\', '/') . '.php'; -+ $fileName = __DIR__ . strtr(substr($class, 9), '\\', '/') . '.php'; - if (file_exists($fileName)) { - require $fileName; - } diff --git a/php-nikic-php-parser-pr269.patch b/php-nikic-php-parser-pr269.patch deleted file mode 100644 index 03bc429..0000000 --- a/php-nikic-php-parser-pr269.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 7fe074c38c7e7d5359e92d8ed43ed3a5cdf65266 Mon Sep 17 00:00:00 2001 -From: Remi Collet -Date: Fri, 15 Apr 2016 13:58:42 +0200 -Subject: [PATCH] support -h and --help standard options - ---- - bin/php-parse | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/bin/php-parse b/bin/php-parse -index db6c411..f6ce166 100755 ---- a/bin/php-parse -+++ b/bin/php-parse -@@ -101,6 +101,7 @@ Operations is a list of the following options (--dump by default): - --var-dump var_dump() nodes (for exact structure) - -N, --resolve-names Resolve names using NodeVisitor\NameResolver - -c, --with-column-info Show column-numbers for errors (if available) -+ -h, --help Display this page - - Example: - php-parse -d -p -N -d file.php -@@ -150,6 +151,10 @@ function parseArgs($args) { - case '-c'; - $attributes['with-column-info'] = true; - break; -+ case '--help': -+ case '-h'; -+ showHelp(''); -+ break; - case '--': - $parseOptions = false; - break; diff --git a/php-nikic-php-parser-rpm.patch b/php-nikic-php-parser-rpm.patch index d8bc078..df76983 100644 --- a/php-nikic-php-parser-rpm.patch +++ b/php-nikic-php-parser-rpm.patch @@ -1,6 +1,6 @@ diff -up ./bin/php-parse.rpm ./bin/php-parse ---- ./bin/php-parse.rpm 2016-02-28 20:48:28.000000000 +0100 -+++ ./bin/php-parse 2016-04-15 13:26:30.804687996 +0200 +--- ./bin/php-parse.rpm 2016-04-19 15:41:41.000000000 +0200 ++++ ./bin/php-parse 2016-04-20 06:33:22.712063600 +0200 @@ -1,12 +1,7 @@ #!/usr/bin/env php bin/php-parse-test @@ -152,7 +146,11 @@ rm -rf %{buildroot} %changelog -* Fri Apr 15 2016 Remi Collet - 2.0.0-1 +* Wed Apr 20 2016 Remi Collet - 2.1.0-1 +- initial package, version 2.1.0 +- drop patches merged upstream + +* Fri Apr 15 2016 Remi Collet - 2.0.1-1 - initial package, version 2.0.1 - open https://github.com/nikic/PHP-Parser/pull/268 make the autoloader more PSR-4 -- cgit