Skip to content

Commit

Permalink
Only add base64 to Gemfile for Ruby >= v3.3.0
Browse files Browse the repository at this point in the history
The base64 gem does not support Ruby v2.2 and so the previous commit [1]
was causing a CI build failure [2].

[1]: 8c49314
[2]: https://app.circleci.com/pipelines/github/freerange/mocha/695/workflows/4c622995-5468-4cfc-a3cf-405fecb39cb0/jobs/10161
  • Loading branch information
floehopper committed Dec 24, 2024
1 parent 8c49314 commit a76330d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ source 'https://rubygems.org'

gemspec

gem 'base64'
gem 'introspection', '~> 0.0.1'
gem 'jaro_winkler', '>= 1.5.5'
gem 'minitest'
Expand All @@ -14,6 +13,11 @@ if RUBY_VERSION >= '3.1.0'
gem 'psych', '< 4'
end

# Avoid base64 gem warning about it not being available in Ruby v3.4
if RUBY_VERSION >= '3.3.0'
gem 'base64'
end

if RUBY_ENGINE == 'jruby'
# Workaround for https://github.com/jruby/jruby/issues/8488
gem 'jar-dependencies', '~> 0.4.1'
Expand Down

0 comments on commit a76330d

Please sign in to comment.