summaryrefslogtreecommitdiff
path: root/lib/bundler/deprecate.rb
blob: 02eb4b09183270fb8688590f43215bad096b3544 (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