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.
- data/CHANGELOG.md +7 -0
- data/lib/bundler/installer.rb +3 -2
- data/lib/bundler/runtime.rb +5 -6
- data/lib/bundler/spec_set.rb +4 -0
- data/lib/bundler/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG.md
CHANGED
data/lib/bundler/installer.rb
CHANGED
@@ -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?
|
data/lib/bundler/runtime.rb
CHANGED
@@ -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
|
-
|
107
|
+
private
|
109
108
|
|
110
109
|
def load_paths
|
111
110
|
specs.map { |s| s.load_paths }.flatten
|
data/lib/bundler/spec_set.rb
CHANGED
data/lib/bundler/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
version: 0.9.
|
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-
|
19
|
+
date: 2010-05-03 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|