Sha256: 3b697b4f3f38bcb057ebbb40610ad4175fd17c086c9b7499508b3d8ac6d44aca

Contents?: true

Size: 1.33 KB

Versions: 4

Compression:

Stored size: 1.33 KB

Contents

require 'warning'
require 'rails/version'

case Rails::VERSION::STRING
when /^4\.2\./
  Warning.ignore(%r{lib/(active_support/core_ext|action_dispatch/middleware)/.+: warning: (method redefined|previous definition)})
  Warning.ignore(%r{lib/active_support/core_ext/.+: warning: BigDecimal.new is deprecated})
  Warning.ignore(%r{lib/arel/visitors/informix.rb:\d+: warning: assigned but unused variable})
  Warning.ignore(%r{lib/active_record/connection_adapters/.+: warning: deprecated Object#=~ is called on Integer})
  Warning.ignore(%r{Inheriting from Rack::Session::Abstract::ID is deprecated})
when /^5\.0\./
  Warning.ignore(%r{lib/(active_support/core_ext|action_view)/.+: warning: (method redefined|previous definition)})
  Warning.ignore(%r{lib/arel/visitors/informix.rb:\d+: warning: assigned but unused variable})
  Warning.ignore(%r{lib/action_view/.+: warning: `\*' interpreted as argument prefix})
when /^5\.1\./
  Warning.ignore(%r{lib/(active_support/core_ext)/.+: warning: (method redefined|previous definition)})
  Warning.ignore(%r{lib/arel/visitors/informix.rb:\d+: warning: assigned but unused variable})
  Warning.ignore(%r{lib/active_record/.+/schema_statements.rb:\d+: (warning: in `drop_table': the last argument was passed as a single Hash|warning: although a splat keyword arguments here)})
end

Warning.process do |_warning|
  :raise
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerecord_views-0.1.3 spec/support/silence_warnings.rb
activerecord_views-0.1.2 spec/support/silence_warnings.rb
activerecord_views-0.1.1 spec/support/silence_warnings.rb
activerecord_views-0.1.0 spec/support/silence_warnings.rb