summaryrefslogtreecommitdiff
path: root/lib/bundler/deprecate.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-10-30 19:37:44 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-10-30 19:49:37 -0500
commit1b8facd3410381fc1f6ab7a52e50bf1826a66199 (patch)
tree8a6c03e6eea8d41d5a53a1594e96fe6781df636f /lib/bundler/deprecate.rb
parente3aaf8cdd751f956c1575ae5c39b9bf028c4f6c7 (diff)
downloadbundler-1b8facd3410381fc1f6ab7a52e50bf1826a66199.tar.gz
[Deprecate] Ensure skip is defined before being accessed
Diffstat (limited to 'lib/bundler/deprecate.rb')
-rw-r--r--lib/bundler/deprecate.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bundler/deprecate.rb b/lib/bundler/deprecate.rb
index 23b80b8726..927f827268 100644
--- a/lib/bundler/deprecate.rb
+++ b/lib/bundler/deprecate.rb
@@ -8,7 +8,8 @@ module Bundler
elsif defined? Gem::Deprecate
Deprecate = Gem::Deprecate
else
- class Deprecate; end
+ class Deprecate
+ end
end
unless Deprecate.respond_to?(:skip_during)
@@ -23,7 +24,7 @@ module Bundler
unless Deprecate.respond_to?(:skip)
def Deprecate.skip
- @skip
+ @skip ||= false
end
end