1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot_rails.git synced 2022-11-09 11:49:18 -05:00

Add active_storage, action_mailer bootsnap and sass-rails gems

To address these errors:

* Address  undefined method `active_storage'

https://travis-ci.org/yahonda/factory_bot_rails/jobs/567544663#L802

```
+/home/travis/.rvm/gems/ruby-2.4.6/gems/railties-5.2.3/lib/rails/railtie/configuration.rb:97:in `method_missing': undefined method `active_storage' for #<Rails::Application::Configuration:0x000000000417d758> (NoMethodError)
```

* Address undefined_method `action_mailer'

https://travis-ci.org/thoughtbot/factory_bot_rails/jobs/548726224#L1657

```ruby
+/home/travis/.rvm/gems/ruby-2.4.6/gems/railties-5.0.7.2/lib/rails/railtie/configuration.rb:95:in `method_missing': undefined method `action_mailer' for #<Rails::Application::Configuration:0x0000000002807418> (NoMethodError)
```

* Address `undefined method `assets'`

https://travis-ci.org/yahonda/factory_bot_rails/jobs/567544663

```
+/home/travis/.rvm/gems/ruby-2.6.3/gems/railties-5.0.7.2/lib/rails/railtie/configuration.rb:95:in `method_missing': undefined method `assets' for #<Rails::Application::Configuration:0x000000000337e5f8>
+Did you mean?  asset_host (NoMethodError)
```

* Address `can not load such file -- bootsnap/setup (LoadError)`

https://travis-ci.org/thoughtbot/factory_bot_rails/jobs/548726226#L1703

```ruby
+/home/travis/build/thoughtbot/factory_bot_rails/tmp/aruba/testapp/config/boot.rb:4:in `require': cannot load such file -- bootsnap/setup (LoadError)
```

Note: this commit does not address `Bundler could not find compatible versions for gem "bundler":` for Rails 4.2
This commit is contained in:
Yasuo Honda 2019-08-03 15:28:23 +00:00 committed by Daniel Colson
parent 3815aae2b9
commit f1da3aa430
4 changed files with 16 additions and 0 deletions

View file

@ -8,16 +8,24 @@ appraise "rails5.0" do
gem "activerecord", "~> 5.0.7" gem "activerecord", "~> 5.0.7"
gem "railties", "~> 5.0.7" gem "railties", "~> 5.0.7"
gem "sqlite3", "~> 1.3.6" gem "sqlite3", "~> 1.3.6"
gem "actionmailer", "~> 5.0.7"
gem "sass-rails"
end end
appraise "rails5.1" do appraise "rails5.1" do
gem "activerecord", "~> 5.1.7" gem "activerecord", "~> 5.1.7"
gem "railties", "~> 5.1.7" gem "railties", "~> 5.1.7"
gem "actionmailer", "~> 5.1.7"
gem "sass-rails"
end end
appraise "rails5.2" do appraise "rails5.2" do
gem "activerecord", "~> 5.2.3" gem "activerecord", "~> 5.2.3"
gem "railties", "~> 5.2.3" gem "railties", "~> 5.2.3"
gem "actionmailer", "~> 5.2.3"
gem "bootsnap"
gem "activestorage", "~> 5.2.3"
gem "sass-rails"
end end
appraise "rails6.0" do appraise "rails6.0" do

View file

@ -19,5 +19,7 @@ gem "sqlite3", "~> 1.3.6"
gem "rubocop", "0.54", require: false gem "rubocop", "0.54", require: false
gem "activerecord", "~> 5.0.7" gem "activerecord", "~> 5.0.7"
gem "railties", "~> 5.0.7" gem "railties", "~> 5.0.7"
gem "actionmailer", "~> 5.0.7"
gem "sass-rails"
gemspec name: "factory_bot_rails", path: "../" gemspec name: "factory_bot_rails", path: "../"

View file

@ -19,5 +19,7 @@ gem "sqlite3", platforms: :ruby
gem "rubocop", "0.54", require: false gem "rubocop", "0.54", require: false
gem "activerecord", "~> 5.1.7" gem "activerecord", "~> 5.1.7"
gem "railties", "~> 5.1.7" gem "railties", "~> 5.1.7"
gem "actionmailer", "~> 5.1.7"
gem "sass-rails"
gemspec name: "factory_bot_rails", path: "../" gemspec name: "factory_bot_rails", path: "../"

View file

@ -19,5 +19,9 @@ gem "sqlite3", platforms: :ruby
gem "rubocop", "0.54", require: false gem "rubocop", "0.54", require: false
gem "activerecord", "~> 5.2.3" gem "activerecord", "~> 5.2.3"
gem "railties", "~> 5.2.3" gem "railties", "~> 5.2.3"
gem "actionmailer", "~> 5.2.3"
gem "bootsnap"
gem "activestorage", "~> 5.2.3"
gem "sass-rails"
gemspec name: "factory_bot_rails", path: "../" gemspec name: "factory_bot_rails", path: "../"