diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-10-30 19:37:44 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-10-30 19:49:37 -0500 |
commit | 1b8facd3410381fc1f6ab7a52e50bf1826a66199 (patch) | |
tree | 8a6c03e6eea8d41d5a53a1594e96fe6781df636f /lib/bundler/deprecate.rb | |
parent | e3aaf8cdd751f956c1575ae5c39b9bf028c4f6c7 (diff) | |
download | bundler-1b8facd3410381fc1f6ab7a52e50bf1826a66199.tar.gz |
[Deprecate] Ensure skip is defined before being accessed
Diffstat (limited to 'lib/bundler/deprecate.rb')
-rw-r--r-- | lib/bundler/deprecate.rb | 5 |
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 |