bundler 0.9.24 → 0.9.25

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,3 +1,10 @@
1
+ ## 0.9.25 (May 3, 2010)
2
+
3
+ Bugfixes:
4
+
5
+ - Explicitly coerce Pathname objects to Strings for Ruby 1.9
6
+ - Fix some newline weirdness in output from install command
7
+
1
8
  ## 0.9.24 (April 22, 2010)
2
9
 
3
10
  Features:
@@ -27,11 +27,12 @@ module Bundler
27
27
  end
28
28
 
29
29
  if [Source::Rubygems, Source::GemCache].include?(spec.source.class)
30
- Bundler.ui.info "Installing #{spec.name} (#{spec.version}) from #{spec.source}"
30
+ Bundler.ui.info "Installing #{spec.name} (#{spec.version}) from #{spec.source} "
31
31
  else
32
- Bundler.ui.info "Using #{spec.name} (#{spec.version}) from #{spec.source}"
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
36
  end
36
37
 
37
38
  if locked?
@@ -82,7 +82,7 @@ module Bundler
82
82
  Bundler.ui.info "Copying .gem files into vendor/cache"
83
83
  specs.each do |spec|
84
84
  next unless spec.source.is_a?(Source::SystemGems) || spec.source.is_a?(Source::Rubygems)
85
- possibilities = Gem.path.map { |p| "#{p}/cache/#{spec.full_name}.gem" }
85
+ possibilities = Gem.path.map { |p| "#{p.to_s}/cache/#{spec.full_name}.gem" }
86
86
  cached_path = possibilities.find { |p| File.exist? p }
87
87
  raise GemNotFound, "Missing gem file '#{spec.full_name}.gem'." unless cached_path
88
88
  Bundler.ui.info " * #{File.basename(cached_path)}"
@@ -93,19 +93,18 @@ module Bundler
93
93
 
94
94
  def prune_cache
95
95
  FileUtils.mkdir_p(cache_path)
96
-
97
96
  Bundler.ui.info "Removing outdated .gem files from vendor/cache"
98
- Pathname.glob(cache_path.join("*.gem")).each do |gem_path|
99
- cached_spec = Gem::Format.from_file_by_path(gem_path).spec
97
+ Pathname.glob(cache_path.join("*.gem").to_s).each do |gem_path|
98
+ cached_spec = Gem::Format.from_file_by_path(gem_path.to_s).spec
100
99
  next unless Gem::Platform.match(cached_spec.platform)
101
100
  unless specs.any?{|s| s.full_name == cached_spec.full_name }
102
- Bundler.ui.info " * #{File.basename(gem_path)}"
101
+ Bundler.ui.info " * #{File.basename(gem_path.to_s)}"
103
102
  gem_path.rmtree
104
103
  end
105
104
  end
106
105
  end
107
106
 
108
- private
107
+ private
109
108
 
110
109
  def load_paths
111
110
  specs.map { |s| s.load_paths }.flatten
@@ -30,6 +30,10 @@ module Bundler
30
30
  sorted.dup
31
31
  end
32
32
 
33
+ def last
34
+ sorted.last
35
+ end
36
+
33
37
  private
34
38
 
35
39
  def append_subgraph(specs, current)
@@ -1,3 +1,3 @@
1
1
  module Bundler
2
- VERSION = "0.9.24"
2
+ VERSION = "0.9.25"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 24
9
- version: 0.9.24
8
+ - 25
9
+ version: 0.9.25
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-04-22 00:00:00 -07:00
19
+ date: 2010-05-03 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency