carrierwaveuploader / carrierwave

Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks
https://github.com/carrierwaveuploader/carrierwave
8.78k stars 1.66k forks source link

Running rspec 3.7 on Rails 5.1.5 with Carrierwave gem results in repetitive method_redefined warning, polluting spec output #2290

Closed kfrz closed 5 years ago

kfrz commented 6 years ago

I've been encountering a rather noisy warning which I don't see reported on this repository but I can't seem to find another point of blame which to address.

Here's what happens when I run rspec on a brand new Rails app with RSpec 3.7, rails_helper.rb and spec_helper.rb added (and a simple test) see example repro repo here

➜ rspec

Randomized with seed 62229
.

Top 1 slowest examples (0.00148 seconds, 23.4% of total time):
  A thing equals should eq 2
    0.00148 seconds ./spec/models/test_this_spec.rb:5

Finished in 0.00635 seconds (files took 2.51 seconds to load)
1 example, 0 failures

Randomized with seed 62229

Here's what happens when I add gem 'carrierwave', '1.2.2' to my Gemfile and run the spec again.

➜ rspec
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/sanitized_file.rb:299: warning: method redefined; discarding old file=
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/processing/rmagick.rb:349: warning: `*' interpreted as argument prefix
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/home/kfurzland/.rvm/gems/ruby-2.4.3@cwave-bug/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here

Randomized with seed 9688
.

Top 1 slowest examples (0.00104 seconds, 22.1% of total time):
  A thing equals should eq 2
    0.00104 seconds ./spec/models/test_this_spec.rb:5

Finished in 0.00473 seconds (files took 2.81 seconds to load)
1 example, 0 failures

Randomized with seed 9688

Using rvm -v 1.29.3, ruby -v 2.4.3 and Ubuntu 16.04

Rolling back to carrierwave 1.0 | 1.1 also shows same warning. I notice a comment in the code, here that mentions issue #1198 but I haven't been able to dig deeper.

Thanks! I'm willing to open a PR if pointed in the right direction to add a suppression or something else.

siaw23-retired commented 6 years ago

I'm getting a similar thing doing performance tests, with the same version of carrierwave

/usr/local/share/bundle/gems/activesupport-5.1.5/lib/active_support/core_ext/hash/slice.rb:21: warning: method redefined; discarding old slice
/usr/local/share/bundle/gems/bootsnap-1.1.8/lib/bootsnap/compile_cache/yaml.rb:48: warning: method redefined; discarding old load_file
/usr/local/lib/ruby/2.5.0/psych.rb:496: warning: previous definition of load_file was here
/usr/local/share/bundle/gems/arel-8.0.0/lib/arel/visitors/informix.rb:21: warning: assigned but unused variable - froms
/usr/local/share/bundle/gems/jmespath-1.3.1/lib/jmespath/nodes/function.rb:210: warning: mismatched indentations at 'end' with 'def' at 195
/usr/local/share/bundle/bundler/gems/beaneater-dcc6a3b0e96a/lib/beaneater/tube/collection.rb:178: warning: assigned but unused variable - last_used
/usr/local/share/bundle/gems/ffi-1.9.18/lib/ffi/library.rb:347: warning: assigned but unused variable - s
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/sanitized_file.rb:299: warning: method redefined; discarding old file=
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/processing/rmagick.rb:349: warning: `*' interpreted as argument prefix
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: method redefined; discarding old eager_load_fog
/usr/local/share/bundle/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:120: warning: previous definition of eager_load_fog was here
kfrz commented 6 years ago

@siaw23 I simply added config.warnings = false to my spec_helper.rb to remove the noise.

xxjapp commented 6 years ago

carrierwave (1.1.0) output the same warnings.

mshibuya commented 5 years ago

Fixed by https://github.com/carrierwaveuploader/carrierwave/commit/5ac94718e565663529e21780bdc358d802cb038b.