lib/bundler.rb in bundler-1.4.0.pre.2 vs lib/bundler.rb in bundler-1.4.0.rc.1
- old
+ new
@@ -31,10 +31,11 @@
autoload :LazySpecification, 'bundler/lazy_specification'
autoload :LockfileParser, 'bundler/lockfile_parser'
autoload :MatchPlatform, 'bundler/match_platform'
autoload :RemoteSpecification, 'bundler/remote_specification'
autoload :Resolver, 'bundler/resolver'
+ autoload :Retry, 'bundler/retry'
autoload :RubyVersion, 'bundler/ruby_version'
autoload :RubyDsl, 'bundler/ruby_dsl'
autoload :Runtime, 'bundler/runtime'
autoload :Settings, 'bundler/settings'
autoload :SharedHelpers, 'bundler/shared_helpers'
@@ -150,10 +151,17 @@
upgrade_lockfile
Definition.build(default_gemfile, default_lockfile, unlock)
end
end
+ def locked_gems
+ @locked_gems ||= begin
+ lock = Bundler.read_file(Bundler.default_lockfile)
+ LockfileParser.new(lock)
+ end
+ end
+
def ruby_scope
"#{Bundler.rubygems.ruby_engine}/#{Gem::ConfigMap[:ruby_version]}"
end
def user_bundle_path
@@ -341,9 +349,17 @@
end
end
def clear_gemspec_cache
@gemspec_cache = {}
+ end
+
+ def git_present?
+ @git_present ||= Bundler.which("git")
+ end
+
+ def ruby_version
+ @ruby_version ||= SystemRubyVersion.new
end
private
def eval_yaml_gemspec(path, contents)