Sha256: 5d132aeb6e4f92fbca85fb24202cbe6e68e278918c9317f78241baee91a368c6

Contents?: true

Size: 580 Bytes

Versions: 36

Compression:

Stored size: 580 Bytes

Contents

# 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
      original = skip
      self.skip = true
      yield
    ensure
      self.skip = original
    end
  end

  unless Deprecate.respond_to?(:skip)
    def Deprecate.skip
      @skip
    end
  end

  unless Deprecate.respond_to?(:skip=)
    def Deprecate.skip=(skip)
      @skip = skip
    end
  end
end

Version data entries

36 entries across 36 versions & 3 rubygems

Version Path
rubygems-update-2.6.14 bundler/lib/bundler/deprecate.rb
rubygems-update-2.6.13 bundler/lib/bundler/deprecate.rb
bundler-1.15.4 lib/bundler/deprecate.rb
bundler-1.15.3 lib/bundler/deprecate.rb
bundler-1.15.2 lib/bundler/deprecate.rb
bundler-1.15.1 lib/bundler/deprecate.rb
bundler-1.15.0 lib/bundler/deprecate.rb
bundler-1.15.0.pre.4 lib/bundler/deprecate.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/bundler-1.14.6/lib/bundler/deprecate.rb
bundler-1.15.0.pre.3 lib/bundler/deprecate.rb
rubygems-update-2.6.12 bundler/lib/bundler/deprecate.rb
bundler-1.15.0.pre.2 lib/bundler/deprecate.rb
bundler-1.15.0.pre.1 lib/bundler/deprecate.rb
rubygems-update-2.6.11 bundler/lib/bundler/deprecate.rb
bundler-1.14.6 lib/bundler/deprecate.rb
bundler-1.14.5 lib/bundler/deprecate.rb
bundler-1.14.4 lib/bundler/deprecate.rb
bundler-1.14.3 lib/bundler/deprecate.rb
rubygems-update-2.6.10 bundler/lib/bundler/deprecate.rb
bundler-1.14.2 lib/bundler/deprecate.rb