blob: d3dd685d314192a7cccd5797cb414d2ef00d7433 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# frozen_string_literal: true
require_relative "rubygems_version_manager"
RubygemsVersionManager.new(ENV["RGV"]).switch
if ENV["BUNDLER_SPEC_IGNORE_DEFAULT_BUNDLER_GEM"]
module NoBundlerStubs
def default_stubs(pattern = "*.gemspec")
super(pattern).reject {|s| s.name == "bundler" }
end
end
Gem::Specification.singleton_class.prepend(NoBundlerStubs)
end
|