Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from Parser::Ruby28 to Parser::Ruby30 for Ruby 3.0 parser #121

Merged
merged 1 commit into from Sep 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,10 @@

## master (unreleased)

### Changes

* [#121](https://github.com/rubocop-hq/rubocop-ast/pull/121): Update from `Parser::Ruby28` to `Parser::Ruby30` for Ruby 3.0 parser (experimental). ([@koic][])

## 0.4.2 (2020-09-18)

### Bug fixes
Expand Down
6 changes: 3 additions & 3 deletions lib/rubocop/ast/processed_source.rb
Expand Up @@ -229,9 +229,9 @@ def parser_class(ruby_version)
when 2.7
require 'parser/ruby27'
Parser::Ruby27
when 2.8
require 'parser/ruby28'
Parser::Ruby28
when 2.8, 3.0
require 'parser/ruby30'
Parser::Ruby30
else
raise ArgumentError,
"RuboCop found unknown Ruby version: #{ruby_version.inspect}"
Expand Down
2 changes: 1 addition & 1 deletion rubocop-ast.gemspec
Expand Up @@ -29,7 +29,7 @@ Gem::Specification.new do |s|
'bug_tracker_uri' => 'https://github.com/rubocop-hq/rubocop-ast/issues'
}

s.add_runtime_dependency('parser', '>= 2.7.1.4')
s.add_runtime_dependency('parser', '>= 2.7.1.5')

s.add_development_dependency('bundler', '>= 1.15.0', '< 3.0')

Expand Down