diff --git a/ruby_parser-3.13.1.gem b/ruby_parser-3.13.1.gem deleted file mode 100644 index f39312c..0000000 --- a/ruby_parser-3.13.1.gem +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:273f1d203a7686d7945640a92e8f65d5b1f4109da1e4e1a16039e6aa19d37068 -size 445952 diff --git a/ruby_parser-3.14.2.gem b/ruby_parser-3.14.2.gem new file mode 100644 index 0000000..a90817c --- /dev/null +++ b/ruby_parser-3.14.2.gem @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc28083336412b4604f7c7c766cbd8b6075d27d7a9962a9979e70e2ea56f0c27 +size 466432 diff --git a/rubygem-ruby_parser.changes b/rubygem-ruby_parser.changes index 605815c..4782618 100644 --- a/rubygem-ruby_parser.changes +++ b/rubygem-ruby_parser.changes @@ -1,3 +1,65 @@ +------------------------------------------------------------------- +Mon Feb 10 15:44:09 UTC 2020 - Stephan Kulow + +- updated to version 3.14.2 + see installed History.rdoc + + === 3.14.2 / 2020-02-06 + + * 1 minor enhancement: + + * Cleaned up call_args and removed arg_blk_pass from ruby_parser_extras.rb! Yay! + + === 3.14.1 / 2019-10-29 + + * 1 minor enhancement: + + * Declared that ruby_parser supports ruby 2.2 and up. + + * 3 bug fixes: + + * Fixed a problem with %W with a null-byte terminator. (wtf?) (spohlenz) + * Fixed line numbering for command (eg methods without parentheses) arguments. (mvz) + * Fixed lineno on new dxstrs. (presidentbeef) + + === 3.14.0 / 2019-09-24 + + * 8 minor enhancements: + + * Added Sexp#line_min & new line number debugging feature. + * Allow bin/ruby_parse to use RP_TIMEOUT to tweak default timeout for large files & slow debugging modes. + * Did you know that custom inspect can't be > 65 chars? 65! Me neither. Fixed. + * For now, value_expr == remove_begin. + * Improved error messages for unterminated regexps. + * Moved all STR_* consts into State::Values and made them State instances. + * Overhauled RubyLexer::State + Values to allow for completely separate groups of States. + * RubyParserExtras#remove_begin removes nested begins and patches line numbers. + + * 22 bug fixes: + + * Changed EOF signaling to return [false, false] per doco. + * Changed RubyParserStuff#remove_begin to keep inner line number, if any. (mvz) + * Differentiated between lambda call and stabby proc. Added :lambda sexp. (whitequark) + * Extended State#== to check equal? first as an optimization. + * Fixed a bug in tab indent width. + * Fixed a line numbering bug for assignables. + * Fixed a line numbering bug for defns w/ nil bodies. + * Fixed another missing line number, driven out by ruby_to_ruby bootstrap. + * Fixed dedenting squiggle heredocs if interpolation is in the mix. (mvz) + * Fixed differentiation of `{ |a| ... }` vs `{ |a,| ... }`. Fixes #236 (whitequark). + * Fixed lex_state for symbols. + * Fixed lex_state for tSTRING_END and tREGEXP_END. + * Fixed line numbers for BEGIN block. (mvz) + * Fixed op_asgn1 w/ command_call having array instead of arglist. (mvz) + * Fixed parsing of () in a command-call (eg p). + * Fixed remaining missing line numbers by forcing extra checks during test and blowing up. They may still be wrong (esp after heredocs, ugh), but they're there! Special thank you to mvz for pushing on this and providing tests and PRs. + * Fixed some lex_state versioning issues with closing braces/bracket on ruby<25. + * Keep carriage return escapes in heredocs. (mvz) + * Massive overhaul of line number code. + * More line number fixes and extra tests from mvz. Thank you! + * Parsing BEGIN block when not at top level should raise an error. (mvz) + * Removed irb task from Rakefile as it has been pushed up to Hoe and doubles up here. + ------------------------------------------------------------------- Fri Mar 29 06:16:07 UTC 2019 - Stephan Kulow diff --git a/rubygem-ruby_parser.spec b/rubygem-ruby_parser.spec index 0071590..6d65d3e 100644 --- a/rubygem-ruby_parser.spec +++ b/rubygem-ruby_parser.spec @@ -1,7 +1,7 @@ # # spec file for package rubygem-ruby_parser # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,17 +24,18 @@ # Name: rubygem-ruby_parser -Version: 3.13.1 +Version: 3.14.2 Release: 0 %define mod_name ruby_parser %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{ruby < 3} +BuildRequires: %{ruby => 2.2} BuildRequires: %{rubygem gem2rpm} BuildRequires: %{rubygem rdoc > 3.10} -BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 BuildRequires: update-alternatives -Url: https://github.com/seattlerb/ruby_parser +URL: https://github.com/seattlerb/ruby_parser Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: gem2rpm.yml Summary: ruby_parser (RP) is a ruby parser written in pure ruby (utilizing @@ -44,9 +45,9 @@ PreReq: update-alternatives %description ruby_parser (RP) is a ruby parser written in pure ruby (utilizing -racc--which does by default use a C extension). RP's output is -the same as ParseTree's output: s-expressions using ruby's arrays and -base types. +racc--which does by default use a C extension). It outputs +s-expressions which can be manipulated and converted back to ruby via +the ruby2ruby gem. As an example: def conditional1 arg1 return 1 if arg1 == 0