class RubyDep::Warning
Constants
- DISABLING_ENVIRONMENT_VAR
- NOTICE_BUGGY_ALTERNATIVE
- NOTICE_HOW_TO_DISABLE
- NOTICE_OPEN_ISSUE
- NOTICE_RECOMMENDATION
- PREFIX
- WARNING
Public Class Methods
new()
click to toggle source
# File lib/ruby_dep/warning.rb, line 28 def initialize @version = RubyVersion.new(RUBY_VERSION, RUBY_ENGINE) end
Public Instance Methods
show_warnings()
click to toggle source
# File lib/ruby_dep/warning.rb, line 32 def show_warnings return if silenced? return warn_ruby(WARNING[status]) if WARNING.key?(status) return if status == :unknown raise "Unknown problem type: #{problem.inspect}" end
silence!()
click to toggle source
# File lib/ruby_dep/warning.rb, line 39 def silence! ENV[DISABLING_ENVIRONMENT_VAR] = '1' end