commit rubygem-ruby_parser for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-ruby_parser for openSUSE:Factory checked in at 2015-09-30 05:48:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-ruby_parser (Old) and /work/SRC/openSUSE:Factory/.rubygem-ruby_parser.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-ruby_parser" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-ruby_parser/rubygem-ruby_parser.changes 2015-06-12 20:30:38.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-ruby_parser.new/rubygem-ruby_parser.changes 2015-09-30 05:48:56.000000000 +0200 @@ -1,0 +2,17 @@ +Fri Aug 7 04:31:24 UTC 2015 - coolo@suse.com + +- updated to version 3.7.1 + see installed History.txt + + === 3.7.1 / 2015-08-06 + + * 1 minor enhancement: + + * Improved understandability of lexing postfix symbols. + + * 2 bug fixes: + + * Fixed timeout caused by regexp backtracking bug w/ long strings in 2.2 parser. (presidentbeef) + * Rename DEBUG env toggle to RB_LINENO_DEBUG. (tenderlove) + +------------------------------------------------------------------- Old: ---- ruby_parser-3.7.0.gem New: ---- ruby_parser-3.7.1.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-ruby_parser.spec ++++++ --- /var/tmp/diff_new_pack.4jefyr/_old 2015-09-30 05:48:57.000000000 +0200 +++ /var/tmp/diff_new_pack.4jefyr/_new 2015-09-30 05:48:57.000000000 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-ruby_parser -Version: 3.7.0 +Version: 3.7.1 Release: 0 %define mod_name ruby_parser %define mod_full_name %{mod_name}-%{version} ++++++ ruby_parser-3.7.0.gem -> ruby_parser-3.7.1.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.txt new/History.txt --- old/History.txt 2015-05-29 00:04:32.000000000 +0200 +++ new/History.txt 2015-08-06 23:31:41.000000000 +0200 @@ -1,3 +1,14 @@ +=== 3.7.1 / 2015-08-06 + +* 1 minor enhancement: + + * Improved understandability of lexing postfix symbols. + +* 2 bug fixes: + + * Fixed timeout caused by regexp backtracking bug w/ long strings in 2.2 parser. (presidentbeef) + * Rename DEBUG env toggle to RB_LINENO_DEBUG. (tenderlove) + === 3.7.0 / 2015-05-28 * 2 major enhancements: Files old/checksums.yaml.gz and new/checksums.yaml.gz differ Files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ Files old/data.tar.gz.sig and new/data.tar.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/ruby_lexer.rb new/lib/ruby_lexer.rb --- old/lib/ruby_lexer.rb 2015-05-29 00:04:33.000000000 +0200 +++ new/lib/ruby_lexer.rb 2015-08-06 23:31:42.000000000 +0200 @@ -662,6 +662,23 @@ return result(:expr_end, :tSYMBOL, symbol) end + def was_label? + @was_label = ruby22_label? + true + end + + def process_label_or_string text + if @was_label && text =~ /:$/ then + @was_label = nil + return process_label text + elsif text =~ /:$/ then + ss.pos -= 1 # put back ":" + text = text[0..-2] + end + + result :expr_end, :tSTRING, text[1..-2].gsub(/\\\\/, "\\").gsub(/\\'/, "'") + end + def process_label text result = process_symbol text result[0] = :tLABEL @@ -1202,7 +1219,7 @@ require "ruby_lexer.rex" -if ENV["DEBUG"] then +if ENV["RP_LINENO_DEBUG"] then class RubyLexer alias :old_lineno= :lineno= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/ruby_lexer.rex new/lib/ruby_lexer.rex --- old/lib/ruby_lexer.rex 2015-05-29 00:04:33.000000000 +0200 +++ new/lib/ruby_lexer.rex 2015-08-06 23:31:42.000000000 +0200 @@ -93,9 +93,7 @@ /\[/ process_square_bracket -# TODO: make this conditional on ruby 2.2 -ruby22_label? /\'#{SSTRING}\':/o process_label - /\'#{SSTRING}\'/o { result :expr_end, :tSTRING, matched[1..-2].gsub(/\\\\/, "\\").gsub(/\\'/, "'") } # " stupid emacs +was_label? /\'#{SSTRING}\':?/o process_label_or_string : /\|/ | /\|\|\=/ { result :expr_beg, :tOP_ASGN, "||" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/ruby_lexer.rex.rb new/lib/ruby_lexer.rex.rb --- old/lib/ruby_lexer.rex.rb 2015-05-29 00:04:33.000000000 +0200 +++ new/lib/ruby_lexer.rex.rb 2015-08-06 23:31:42.000000000 +0200 @@ -163,10 +163,8 @@ end # group /[+\d]/ when text = ss.scan(/\[/) then process_square_bracket text - when ruby22_label? && (text = ss.scan(/\'#{SSTRING}\':/o)) then - process_label text - when text = ss.scan(/\'#{SSTRING}\'/o) then - action { result :expr_end, :tSTRING, matched[1..-2].gsub(/\\\\/, "\\").gsub(/\\'/, "'") } # " stupid emacs + when was_label? && (text = ss.scan(/\'#{SSTRING}\':?/o)) then + process_label_or_string text when ss.check(/\|/) then case when text = ss.scan(/\|\|\=/) then diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/ruby_parser_extras.rb new/lib/ruby_parser_extras.rb --- old/lib/ruby_parser_extras.rb 2015-05-29 00:04:33.000000000 +0200 +++ new/lib/ruby_parser_extras.rb 2015-08-06 23:31:42.000000000 +0200 @@ -91,7 +91,7 @@ end module RubyParserStuff - VERSION = "3.7.0" unless constants.include? "VERSION" # SIGH + VERSION = "3.7.1" unless constants.include? "VERSION" # SIGH attr_accessor :lexer, :in_def, :in_single, :file attr_reader :env, :comments diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2015-05-29 00:04:32.000000000 +0200 +++ new/metadata 2015-08-06 23:31:41.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: ruby_parser version: !ruby/object:Gem::Version - version: 3.7.0 + version: 3.7.1 platform: ruby authors: - Ryan Davis @@ -29,7 +29,7 @@ xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO VpzF30vNaJK6ZT7xlIsIlwmH -----END CERTIFICATE----- -date: 2015-05-28 00:00:00.000000000 Z +date: 2015-08-06 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: sexp_processor @@ -46,6 +46,20 @@ - !ruby/object:Gem::Version version: '4.1' - !ruby/object:Gem::Dependency + name: minitest + requirement: !ruby/object:Gem::Requirement + requirements: + - - ~> + - !ruby/object:Gem::Version + version: '5.7' + type: :development + prerelease: false + version_requirements: !ruby/object:Gem::Requirement + requirements: + - - ~> + - !ruby/object:Gem::Version + version: '5.7' +- !ruby/object:Gem::Dependency name: rdoc requirement: !ruby/object:Gem::Requirement requirements: Files old/metadata.gz.sig and new/metadata.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_ruby_parser.rb new/test/test_ruby_parser.rb --- old/test/test_ruby_parser.rb 2015-05-29 00:04:33.000000000 +0200 +++ new/test/test_ruby_parser.rb 2015-08-06 23:31:42.000000000 +0200 @@ -575,6 +575,14 @@ # TODO: add more including interpolation etc end + def test_str_backslashes + long_string = '\n' * 100 + rb = "x '#{long_string}'" + pt = s(:call, nil, :x, s(:str, long_string)) + + assert_parse rb, pt + end + def test_str_pct_Q_nested rb = "%Q[before [#\{nest}] after]" pt = s(:dstr, "before [", s(:evstr, s(:call, nil, :nest)), s(:str, "] after"))
participants (1)
-
root@hilbert.suse.de