diff --git a/ruby_parser-3.16.0.gem b/ruby_parser-3.16.0.gem deleted file mode 100644 index ed1325b..0000000 --- a/ruby_parser-3.16.0.gem +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7e94c195dbfb3e6e10dd115ecc37ee91eb23589d1f3dbe0243a0cb08405bb383 -size 584704 diff --git a/ruby_parser-3.18.1.gem b/ruby_parser-3.18.1.gem new file mode 100644 index 0000000..61e06d4 --- /dev/null +++ b/ruby_parser-3.18.1.gem @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1182b9a86e596b6bf9df071ca9d318bb7825afcda6e96f2b28d985f3a12de205 +size 634880 diff --git a/rubygem-ruby_parser.changes b/rubygem-ruby_parser.changes index 44e0333..fbbe5ef 100644 --- a/rubygem-ruby_parser.changes +++ b/rubygem-ruby_parser.changes @@ -1,3 +1,98 @@ +------------------------------------------------------------------- +Tue Jan 25 07:33:04 UTC 2022 - Stephan Kulow + +updated to version 3.18.1 + see installed History.rdoc + + === 3.18.1 / 2021-11-10 + + * 1 minor enhancement: + + * All parser tests are now explicitly testing line numbers at every level. + + * 3 bug fixes: + + * Fixed endless method with noargs. (mitsuru) + * Fixed line numbers on some yield forms. + * Handle and clearly report if unifdef is missing. + + === 3.18.0 / 2021-10-27 + + Holy crap... 58 commits! 2.7 and 3.0 are feature complete. Strings + & heredocs have been rewritten. + + * 9 major enhancements: + + * !!! Rewrote lexer (and friends) for strings, heredocs, and %*[] constructs. + * Massive overhaul on line numbers. + * Freeze input! Finally!!! No more modifying the input string for heredocs. + * Overhauled RPStringScanner. Removed OLD compatibility methods! + * Removed Sexp methods: value, to_sym, add, add_all, node_type, values. + * value moved to sexp_processor. + * Removed String#grep monkey-patch. + * Removed String#lineno monkey-patch. + * Removed string_to_pos, charpos, etc hacks for ancient ruby versions. + * Removed unread_many... NO! NO EDITING THE INPUT STRING! + + * 31 minor enhancements: + + * 2.7/3.0: many more pattern edge cases + * 2.7: Added `mlhs = rhs rescue expr` + * 2.7: refactored destructured args (`|(k,v)|`) and unfactored(?!) case_body/args. + * 3.0: excessed_comma + * 3.0: finished most everything: endless methods, patterns, etc. + * 3.0: refactored / added new pattern changes + * Added RubyLexer#in_heredoc? (ie, is there old_ss ?) + * Added RubyLexer#old_ss and old_lineno and removed much of SSStack(ish). + * Added Symbol#end_with? when necessary + * Added TALLY and DEBUG options for ss.getch and ss.scan + * Added ignore_body_comments to make parser productions more clear. + * Added support for no_kwarg (eg `def f(**nil)`). + * Added support for no_kwarg in blocks (eg `f { |**nil| }`). + * Augmented generated parser files to have frozen_string_literal comments and fixed tests. + * Broke out 3.0 parser into its own to ease development. + * Bumped dependencies on sexp_processor and oedipus_lex. + * Clean generated 3.x files. + * Extracted all string scanner methods to their own module. + * Fixed some precedence decls. + * Implemented most of pattern matching for 2.7+. + * Improve lex_state= to report location in verbose debug mode. + * Made it easier to debug with a particular version of ruby via rake. + * Make sure ripper uses the same version of ruby we specified. + * Moved all string/heredoc/etc code to ruby_lexer_strings.rb + * Remove warning from newer bisons. + * Sprinkled in some frozen_string_literal, but mostly helped by oedipus bump. + * Switch to comparing against ruby binary since ripper is buggy. + * bugs task should try both bug*.rb and bad*.rb. + * endless methods + * f_any_kwrest refactoring. + * refactored defn/defs + + * 15 bug fixes: + + * Cleaned a bunch of old hacks. Initializing RubyLexer w/ Parser is cleaner now. + * Corrected some lex_state errors in process_token_keyword. + * Fixed ancient ruby2 change (use #lines) in ruby_parse_extract_error. + * Fixed bug where else without rescue only raises on 2.6+ + * Fixed caller for getch and scan when DEBUG=1 + * Fixed comments in the middle of message cascades. + * Fixed differences w/ symbol productions against ruby 2.7. + * Fixed dsym to use string_contents production. + * Fixed error in bdot2/3 in some edge cases. Fixed p_alt line. + * Fixed heredoc dedenting in the presence of empty lines. (mvz) + * Fixed some leading whitespace / comment processing + * Fixed up how class/module/defn/defs comments were collected. + * Overhauled ripper.rb to deal with buggy ripper w/ yydebug. + * Removed dsym from literal. + * Removed tUBANG lexeme but kept it distinct as a method name (eg: `def !@`). + + === 3.17.0 / 2021-08-03 + + * 1 minor enhancement: + + * Added support for arg forwarding (eg `def f(...); m(...); end`) (presidentbeef) + + ------------------------------------------------------------------- Thu Jun 24 17:56:57 UTC 2021 - Stephan Kulow diff --git a/rubygem-ruby_parser.spec b/rubygem-ruby_parser.spec index 2bb71d6..6f1db09 100644 --- a/rubygem-ruby_parser.spec +++ b/rubygem-ruby_parser.spec @@ -1,7 +1,7 @@ # # spec file for package rubygem-ruby_parser # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-ruby_parser -Version: 3.16.0 +Version: 3.18.1 Release: 0 %define mod_name ruby_parser %define mod_full_name %{mod_name}-%{version} @@ -63,7 +63,8 @@ s(:return, s(:lit, 0))) Tested against 801,039 files from the latest of all rubygems (as of 2013-05): * 1.8 parser is at 99.9739% accuracy, 3.651 sigma * 1.9 parser is at 99.9940% accuracy, 4.013 sigma -* 2.0 parser is at 99.9939% accuracy, 4.008 sigma. +* 2.0 parser is at 99.9939% accuracy, 4.008 sigma +* 2.6 parser is at 99.9972% accuracy, 4.191 sigma. %prep