Skip to content

Commit

Permalink
Merge pull request #2310 from andrehjr/method-source-for-earlier-rubies
Browse files Browse the repository at this point in the history
Make sure method_source stays at 1.0.0 for RUBY < 2.3
  • Loading branch information
andrehjr committed Apr 16, 2024
2 parents 02c0be9 + a4706dc commit 6a4d7d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Expand Up @@ -9,6 +9,10 @@ gem 'rspec'

gem "psych", '<= 5.1.0'

if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0')
gem 'method_source', '= 1.0.0'
end

# Rubocop supports only >=2.2.0
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.2.0')
gem 'rubocop', '= 0.66.0', require: false
Expand Down

0 comments on commit 6a4d7d3

Please sign in to comment.