Skip to content

Commit

Permalink
Remove ruby versioning in Appraisal
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Aug 22, 2023
1 parent 4e07eb1 commit 8bdf03b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ if ["true", "y", "yes", "1"].include?(ENV["APPRAISAL_SKIP_BUNDLE_CHECK"])
::Appraisal::Appraisal.prepend(DisableBundleCheck)
end

def ruby_version?(version)
full_version = "#{version}.0" # Turn 2.1 into 2.1.0 otherwise #bump below doesn't work as expected

Gem::Version.new(full_version) <= Gem::Version.new(RUBY_VERSION) &&
Gem::Version.new(RUBY_VERSION) < Gem::Version.new(full_version).bump
end

alias original_appraise appraise

REMOVED_GEMS = {
Expand Down

0 comments on commit 8bdf03b

Please sign in to comment.