bundler 0.9.25 → 0.9.26

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bundler might be problematic. Click here for more details.

@@ -1,9 +1,15 @@
1
+ ## 0.9.26
2
+
3
+ Features:
4
+
5
+ - error nicely on incompatible 0.10 lockfiles
6
+
1
7
  ## 0.9.25 (May 3, 2010)
2
8
 
3
9
  Bugfixes:
4
10
 
5
- - Explicitly coerce Pathname objects to Strings for Ruby 1.9
6
- - Fix some newline weirdness in output from install command
11
+ - explicitly coerce Pathname objects to Strings for Ruby 1.9
12
+ - fix some newline weirdness in output from install command
7
13
 
8
14
  ## 0.9.24 (April 22, 2010)
9
15
 
@@ -72,6 +72,7 @@ module Bundler
72
72
  method_option "relock", :type => :boolean, :banner => "Unlock, install the gems, and relock."
73
73
  method_option "disable-shared-gems", :type => :boolean, :banner => "Do not use any shared gems, such as the system gem repository."
74
74
  method_option "gemfile", :type => :string, :banner => "Use the specified gemfile instead of Gemfile"
75
+ method_option "no-cache", :type => :boolean, :banner => "Don't update the existing gem cache."
75
76
  method_option "no-prune", :type => :boolean, :banner => "Don't remove stale gems from the cache."
76
77
  def install(path = nil)
77
78
  opts = options.dup
@@ -94,7 +95,7 @@ module Bundler
94
95
  end
95
96
 
96
97
  lock if options[:relock]
97
- cache if Bundler.root.join("vendor/cache").exist?
98
+ cache if Bundler.root.join("vendor/cache").exist? && !options[:no_cache]
98
99
  Bundler.ui.confirm "Your bundle is complete! " +
99
100
  "Use `bundle show [gemname]` to see where a bundled gem is installed."
100
101
  rescue GemNotFound => e
@@ -130,7 +131,7 @@ module Bundler
130
131
  end
131
132
  end
132
133
 
133
- desc "show GEM", "Shows all gems that are part of the bundle, or the path to a given gem"
134
+ desc "show [GEM]", "Shows all gems that are part of the bundle, or the path to a given gem"
134
135
  def show(gem_name = nil)
135
136
  if gem_name
136
137
  Bundler.ui.info locate_gem(gem_name)
@@ -13,7 +13,12 @@ module Bundler
13
13
  end
14
14
 
15
15
  def self.from_lock(lockfile)
16
- locked_definition = Locked.new(YAML.load_file(lockfile))
16
+ begin
17
+ locked_definition = Locked.new(YAML.load_file(lockfile))
18
+ rescue ArgumentError
19
+ raise GemfileError, "Your Gemfile.lock was generated by Bundler 0.10.\n" +
20
+ "You must delete it if you wish to use Bundler 0.9."
21
+ end
17
22
 
18
23
  hash = Digest::SHA1.hexdigest(File.read("#{Bundler.root}/Gemfile"))
19
24
  unless locked_definition.hash == hash
@@ -32,7 +32,7 @@ module Bundler
32
32
  Bundler.ui.info "Using #{spec.name} (#{spec.version}) from #{spec.source} "
33
33
  end
34
34
  spec.source.install(spec)
35
- Bundler.ui.info "" unless spec == specs.last
35
+ Bundler.ui.info ""
36
36
  end
37
37
 
38
38
  if locked?
@@ -30,10 +30,6 @@ module Bundler
30
30
  sorted.dup
31
31
  end
32
32
 
33
- def last
34
- sorted.last
35
- end
36
-
37
33
  private
38
34
 
39
35
  def append_subgraph(specs, current)
@@ -1,3 +1,3 @@
1
1
  module Bundler
2
- VERSION = "0.9.25"
2
+ VERSION = "0.9.26"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 25
9
- version: 0.9.25
8
+ - 26
9
+ version: 0.9.26
10
10
  platform: ruby
11
11
  authors:
12
12
  - Carl Lerche
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-05-03 00:00:00 -07:00
19
+ date: 2010-06-08 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency