lib/bundler.rb in bundler-1.12.6 vs lib/bundler.rb in bundler-1.13.0.pre.1
- old
+ new
@@ -36,10 +36,11 @@
autoload :LazySpecification, "bundler/lazy_specification"
autoload :LockfileParser, "bundler/lockfile_parser"
autoload :MatchPlatform, "bundler/match_platform"
autoload :Mirror, "bundler/mirror"
autoload :Mirrors, "bundler/mirror"
+ autoload :Plugin, "bundler/plugin"
autoload :RemoteSpecification, "bundler/remote_specification"
autoload :Resolver, "bundler/resolver"
autoload :Retry, "bundler/retry"
autoload :RubyVersion, "bundler/ruby_version"
autoload :RubyDsl, "bundler/ruby_dsl"
@@ -50,10 +51,11 @@
autoload :StubSpecification, "bundler/stub_specification"
autoload :Source, "bundler/source"
autoload :SourceList, "bundler/source_list"
autoload :RubyGemsGemInstaller, "bundler/rubygems_gem_installer"
autoload :UI, "bundler/ui"
+ autoload :URICredentialsFilter, "bundler/uri_credentials_filter"
class << self
attr_writer :bundle_path
def configure
@@ -83,11 +85,11 @@
path
end
end
def setup(*groups)
- # Just return if all groups are already loaded
+ # Return if all groups are already loaded
return @setup if defined?(@setup)
definition.validate_ruby!
if groups.empty?
@@ -192,12 +194,11 @@
def rm_rf(path)
FileUtils.remove_entry_secure(path) if path && File.exist?(path)
end
def settings
- return @settings if defined?(@settings)
- @settings = Settings.new(app_config_path)
+ @settings ||= Settings.new(app_config_path)
rescue GemfileNotFound
@settings = Settings.new(Pathname.new(".bundle").expand_path)
end
# @return [Hash] Environment present before Bundler was activated
@@ -376,9 +377,11 @@
return @git_present if defined?(@git_present)
@git_present = Bundler.which("git") || Bundler.which("git.exe")
end
def reset!
+ @root = nil
+ @settings = nil
@definition = nil
end
private