Skip to content

Commit

Permalink
Workaround for Parser 3.2.2.2 or lower with Ruby 3.3.0dev
Browse files Browse the repository at this point in the history
Follow up ruby/ruby#7877.

Ruby 3.3.0dev is set to promote Racc to a bundled gem. Therefore,
this PR provides a workaround for Parser 3.2.2.2 or lower with Ruby
3.3.0dev to prevents the Ruby 3.3.0dev CI matrix error from rubocop.

refs: rubocop/rubocop#11941
  • Loading branch information
tk0miya committed Jun 13, 2023
1 parent 1df4c97 commit a0ac5fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ gem 'tempfile'
gem "prime"
gem "rdoc", "~> 6.4.0"

# FIXME: Workaround for Parser 3.2.2.2 or lower with Ruby 3.3.0dev.
# When the Praser gem releases a new version of Racc that includes the runtime dependencies,
# it will be able to upgrade the Parser gem dependency and remove the workaround.
gem 'racc', '>= 1.6.2'

# Test gems
gem "rbs-amber", path: "test/assets/test-gem"

Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ GEM
psych (4.0.6)
stringio
public_suffix (5.0.1)
racc (1.7.0)
rainbow (3.1.1)
rake (13.0.6)
rake-compiler (1.2.2)
Expand Down Expand Up @@ -104,6 +105,7 @@ DEPENDENCIES
json-schema
minitest
prime
racc (>= 1.6.2)
rake
rake-compiler
rbs!
Expand Down

0 comments on commit a0ac5fd

Please sign in to comment.