Sha256: a45e1abe93d6ff9e8086a5746a326089b70c24346e3b77f95d79a53b93b2f3db

Contents?: true

Size: 207 Bytes

Versions: 3

Compression:

Stored size: 207 Bytes

Contents

ruby_version = RbConfig::CONFIG['MAJOR'].to_i * 10 + RbConfig::CONFIG['MINOR'].to_i
if ruby_version >= 27
  Warning[:deprecated] = false
  ENV['RUBYOPT'] = '-W:no-deprecated'
else
  ENV['RUBYOPT']="-W0"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sym-3.0.1 lib/ruby_warnings.rb
sym-3.0.0 lib/ruby_warnings.rb
sym-2.10.0 lib/ruby_warnings.rb