Sha256: 1dfcd6b14ddbd339c7e402a6d27bdbe760fbb6ebc12d40e883d827b5fc7d4e3a

Contents?: true

Size: 446 Bytes

Versions: 77

Compression:

Stored size: 446 Bytes

Contents

# This is a monkey patch
#
# we need a method to reset the global configuration of Bundler. If bundler is already loaded,
# in the case that mortar is run itself through bundler, then we need to reset to allow us to properly
# install the bundle in the correct location.
module Bundler
  class << self
    def nuke_configuration
      [:@bundle_path, :@settings].each { |var|
        self.instance_variable_set var, nil
      }
    end
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
mortar-0.15.53 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.52 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.51 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.50 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.49 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.48 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.47 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.46 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.45 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.44 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.43 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.42 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.41 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.40 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.39 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.38 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.37 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.36 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.35 lib/monkey_patch/bundler/bundler.rb
mortar-0.15.34 lib/monkey_patch/bundler/bundler.rb