README.md in ripper_ruby_parser-1.6.1 vs README.md in ripper_ruby_parser-1.7.0

- old
+ new

@@ -8,33 +8,21 @@ ## Features/Notes * Drop-in replacement for RubyParser * Should handle 1.9 and later syntax gracefully -* Requires MRI 2.3 or higher -* Compatible with RubyParser 3.13.1 +* Requires Ruby 2.4 or higher +* Compatible with RubyParser 3.14.0 ## Known incompatibilities -RipperRubyParser has some incompatibilities with RubyParser. For some of these, -the behavior can be changed by turning on extra-compatible mode. +RipperRubyParser has a few incompatibilities with RubyParser. -The following incompatibilities cannot be changed: - * RipperRubyParser won't handle non-UTF-8 files without an encoding comment, just like regular Ruby -* RipperRubyParser does not match RubyParser's line numbering -* RipperRubyParser correctly dedents heredocs with interpolations +* RipperRubyParser does not always match RubyParser's line numbering -The following incompatibilities can be made compatible by turning on -extra-compatible mode: - -* Operator assignment of a method call without parentheses to a collection - element uses an `:array` S-expression instead of `:arglist` -* RipperRubyParser keeps carriage return characters in heredocs that include - them - ## Install gem install ripper_ruby_parser ## Synopsis @@ -46,16 +34,9 @@ parser.parse "puts 'Hello World'" # => s(:call, nil, :puts, s(:str, "Hello World!")) parser.parse "foo[bar] += baz qux" # => s(:op_asgn1, s(:call, nil, :foo), # s(:arglist, s(:call, nil, :bar)), -# :+, -# s(:call, nil, :baz, s(:call, nil, :qux))) -parser.extra_compatible = true - -parser.parse "foo[bar] += baz qux" -# => s(:op_asgn1, s(:call, nil, :foo), -# s(:array, s(:call, nil, :bar)), # :+, # s(:call, nil, :baz, s(:call, nil, :qux))) ``` ## Requirements