We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71cdca9 commit 6bc5294Copy full SHA for 6bc5294
lib/ruby_dep/warning.rb
@@ -43,8 +43,7 @@ def show_warnings
43
44
def check_ruby
45
version = Gem::Version.new(RUBY_VERSION)
46
- info = VERSION_INFO[RUBY_ENGINE] || {}
47
- info.each do |ruby, status|
+ current_ruby_info.each do |ruby, status|
48
return status if version >= Gem::Version.new(ruby)
49
end
50
:insecure
@@ -54,5 +53,9 @@ def silenced?
54
53
value = ENV['RUBY_DEP_GEM_SILENCE_WARNINGS']
55
(value || '0') !~ /^0|false|no|n$/
56
+
57
+ def current_ruby_info
58
+ VERSION_INFO[RUBY_ENGINE] || {}
59
+ end
60
61
0 commit comments