Skip to content

Commit

Permalink
Ruby 3 exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmanuelramallo committed Jan 18, 2021
1 parent 8611ea5 commit 9cd0042
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ namespace :spec do
framework, version = file_name.split(/(\d+)/)
major, minor = version.split(//)

# Ruby 3 exclusions
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.0.0')
# Rails 5 does not support ruby-3.0.0 https://github.com/rails/rails/issues/40938#issuecomment-751569171
# Mongoid gem does not yet support ruby-3.0.0 https://github.com/mongodb/mongoid#compatibility
next if framework == 'mongoid' || (framework == 'rails' && version == "5")
end

frameworks_versions[framework] ||= []
frameworks_versions[framework] << file_name

Expand Down

0 comments on commit 9cd0042

Please sign in to comment.