Closed kfrz closed 5 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
@siaw23 I simply added config.warnings = false
to my spec_helper.rb
to remove the noise.
carrierwave (1.1.0)
output the same warnings.
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
andspec_helper.rb
added (and a simple test) see example repro repo hereHere's what happens when I add
gem 'carrierwave', '1.2.2'
to myGemfile
and run the spec again.Using
rvm -v 1.29.3
,ruby -v 2.4.3
and Ubuntu 16.04Rolling 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.