Skip to content

Commit

Permalink
fix for LoadError: cannot load such file -- net/smtp
Browse files Browse the repository at this point in the history
  • Loading branch information
hank-spokeo committed Mar 15, 2022
1 parent e9072e6 commit e0fb98a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gemfiles/Gemfile.rails60
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ gem 'mime-types', '~> 3.0'
gem 'rails-controller-testing'
gem 'rspec-rails', '~> 5.0'

# net-smtp not included by default in Ruby 3.1
# Will be fixed by https://github.com/mikel/mail/pull/1439
if Gem.ruby_version >= Gem::Version.new("3.1.0")
gem 'net-smtp', require: false
end

gem 'test_engine', path: '../spec/dummy/components/test_engine', group: :test
6 changes: 6 additions & 0 deletions gemfiles/Gemfile.rails61
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ gem 'mime-types', '~> 3.0'
gem 'rails-controller-testing'
gem 'rspec-rails', '~> 5.0'

# net-smtp not included by default in Ruby 3.1
# Will be fixed by https://github.com/mikel/mail/pull/1439
if Gem.ruby_version >= Gem::Version.new("3.1.0")
gem 'net-smtp', require: false
end

gem 'test_engine', path: '../spec/dummy/components/test_engine', group: :test

0 comments on commit e0fb98a

Please sign in to comment.