summaryrefslogtreecommitdiff
path: root/lib/bundler/deprecate.rb
blob: e47d609dbf30263b8045baabd90d54d1d4ac9d0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Bundler

  if defined? ::Deprecate
    Deprecate = ::Deprecate
  elsif defined? Gem::Deprecate
    Deprecate = Gem::Deprecate
  else
    class Deprecate; end
  end

  unless Deprecate.respond_to?(:skip_during)
    def Deprecate.skip_during; yield; end
  end

end