aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/deprecate.rb
blob: 1ab4de1a2870fb2e6ee60db30e5f8354ec57ac23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true
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