Skip to content

Commit

Permalink
Add base64 gem to rails 7.0 and 7.1
Browse files Browse the repository at this point in the history
```
> BUNDLE_GEMFILE=/home/runner/work/loga/loga/gemfiles/rails70.gemfile bundle exec rspec
/home/runner/.rubies/ruby-head/lib/ruby/gems/3.4.0+0/gems/activesupport-7.0.8/lib/active_support/message_verifier.rb:4: warning: base64 was loaded from the standard library, but is not part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.

Failure/Error: require 'rails'

LoadError:
  cannot load such file -- base64
```

This one.. most probably won't work but let's try.

https://stdgems.org/base64/

The root issue is that in old ruby version base64 0.1.1 should be used
and base64 0.2.0 is just for ruby 3.3.0

If 0.2.0 is installed on ruby 3.2, it will just crash..
  • Loading branch information
bliof-fc committed Feb 12, 2024
1 parent d60061a commit 8cdbad6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ end
if Gem::Version.new(RUBY_VERSION) > Gem::Version.new('3.0.0')
appraise 'rails70' do
gem 'rails', '~> 7.0.0'
gem 'base64'
end

appraise 'rails71' do
gem 'rails', '~> 7.1.0'
gem 'base64'
end
end

Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails70.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
source "https://rubygems.org"

gem "rails", "~> 7.0.0"
gem "base64"

group :development do
gem "appraisal"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails71.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
source "https://rubygems.org"

gem "rails", "~> 7.1.0"
gem "base64"

group :development do
gem "appraisal"
Expand Down

0 comments on commit 8cdbad6

Please sign in to comment.