diff --git a/ruby_parser-3.1.3.gem b/ruby_parser-3.1.3.gem deleted file mode 100644 index ae86c07..0000000 --- a/ruby_parser-3.1.3.gem +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:602b23bfde88e1cdcef113fd013ebf3735b06454372b3c9b5a5c14a5b161fa34 -size 141824 diff --git a/ruby_parser-3.2.2.gem b/ruby_parser-3.2.2.gem new file mode 100644 index 0000000..d48a524 --- /dev/null +++ b/ruby_parser-3.2.2.gem @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:117d814b406876a8b6a85a28e2745de524924edefced9233d597bae6fefd7fcb +size 198656 diff --git a/rubygem-ruby_parser.changes b/rubygem-ruby_parser.changes index 2ef3e69..981552e 100644 --- a/rubygem-ruby_parser.changes +++ b/rubygem-ruby_parser.changes @@ -1,3 +1,56 @@ +------------------------------------------------------------------- +Tue Jul 30 18:46:52 UTC 2013 - coolo@suse.com + +- updated to version 3.2.2 + + * 5 bug fixes: + + * 1.9/2.0: fixed assocs in return args. (presidentbeef) + * Fixed handling of parse error when class is nested in multiple defs. (whitequark) + * Fixed lexing of %w[] w/ funny whitespace separators. (whitequark) + * Fixed more call nodes that have trailing comma syntax. (presidentbeef) + * Fixed more call_args slippage. + + === 3.2.1 / 2013-07-03 + + * 1 bug fix: + + * 1.9/2.0: Trailing assocs were being munged into arrays. (presidentbeef) + + === 3.2.0 / 2013-07-02 + + * 1 major enhancement: + + * Added (rough draft) 2.0 support. Still missing some small / rare things. + + * 12 minor enhancements: + + * Added %i(symbol-names...) support. (%I too) + * Added 140 more tests, jumping test count from 1376 to 2143. Yay for test reuse! + * Added RubyLexer#brace_nest. + * Added compare20 rake task to diff the grammar architecture against MRI. + * Added lpar_beg and paren_nest to lexer to track state of parens in stabbies + * Added shadow nodes for scoped block args. + * Compound RubyParser now defaults to 2.0. + * Fixed rake to < 10, because 10's file dependency handling is so very broken. + * Made it possible to specify version in bin/ruby_parse_extract_error w/ -v 18|19|20 + * Refactored to RubyParserStuff::ENCODING_ORDER to allow custom tweaking of encoding guessing. (samlown) + * Switched `rake debug` to default to 2.0. + * Translated some fixes across 1.8 and 1.9 from 2.0. + + * 42 bug fixes: + + * 2.0: Fixed a number of block args scenarios w/ kwargs + * 2.0: Fixed args_tail mismatching against lexer. + * 2.0: Fixed assocs to return a hash node. + * 2.0: Fixed f_block_kw production. + * 2.0: Fixed f_block_kwarg production. + * 2.0: Fixed handling of stabby proc args in parens. + * 2.0: Fixed lexing of kwsplat nodes. + * 2.0: Implemented kwsplat nodes. + * Added tUBANG to lexer. + ... + ------------------------------------------------------------------- Sat Apr 20 15:47:11 UTC 2013 - coolo@suse.com diff --git a/rubygem-ruby_parser.spec b/rubygem-ruby_parser.spec index 3c377b9..5a627e3 100644 --- a/rubygem-ruby_parser.spec +++ b/rubygem-ruby_parser.spec @@ -17,21 +17,22 @@ Name: rubygem-ruby_parser -Version: 3.1.3 +Version: 3.2.2 Release: 0 %define mod_name ruby_parser %define mod_full_name %{mod_name}-%{version} +%define mod_branch -%{version} +%define mod_weight 30202 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros >= 1 +BuildRequires: update-alternatives BuildRequires: rubygem(rdoc) > 3.10 Url: https://github.com/seattlerb/ruby_parser Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary: ruby_parser (RP) is a ruby parser written in pure ruby (utilizing License: MIT Group: Development/Languages/Ruby -%define mod_branch -3.1.3 -%define mod_weight 3 PreReq: update-alternatives %description @@ -51,6 +52,10 @@ s(:call, s(:lvar, :arg1), :==, s(:lit, 0)), s(:return, s(:lit, 1)), nil), 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 %package doc Summary: RDoc documentation for %{mod_name} @@ -78,10 +83,18 @@ Test::Unit or RSpec files, useful for developers. %install %gem_install -f +mkdir -p %{buildroot}%{_sysconfdir}/alternatives mv %{buildroot}%{_bindir}/ruby_parse{,%{mod_branch}} -ln -s ruby_parse%{mod_branch} %{buildroot}%{_bindir}/ruby_parse +touch %{buildroot}%{_sysconfdir}/alternatives/ruby_parse +ln -s %{_sysconfdir}/alternatives/ruby_parse %{buildroot}%{_bindir}/ruby_parse + mv %{buildroot}%{_bindir}/ruby_parse_extract_error{,%{mod_branch}} -ln -s ruby_parse_extract_error%{mod_branch} %{buildroot}%{_bindir}/ruby_parse_extract_error +touch %{buildroot}%{_sysconfdir}/alternatives/ruby_parse_extract_error +ln -s %{_sysconfdir}/alternatives/ruby_parse_extract_error %{buildroot}%{_bindir}/ruby_parse_extract_error + +mkdir -p %{buildroot}%{_docdir}/%{name} +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/History.txt %buildroot/%{_docdir}/%{name}/History.txt +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.txt %buildroot/%{_docdir}/%{name}/README.txt %post /usr/sbin/update-alternatives --install \ @@ -99,10 +112,13 @@ fi %files %defattr(-,root,root,-) +%{_docdir}/%{name} %{_bindir}/ruby_parse%{mod_branch} -%ghost %{_bindir}/ruby_parse +%{_bindir}/ruby_parse +%ghost %{_sysconfdir}/alternatives/ruby_parse %{_bindir}/ruby_parse_extract_error%{mod_branch} -%ghost %{_bindir}/ruby_parse_extract_error +%{_bindir}/ruby_parse_extract_error +%ghost %{_sysconfdir}/alternatives/ruby_parse_extract_error %{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ %exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test