bundler 1.5.0.rc.2 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bundler might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -1
- data/lib/bundler/source/rubygems.rb +9 -1
- data/lib/bundler/vendor/thor/shell/basic.rb +8 -8
- data/lib/bundler/version.rb +1 -1
- data/spec/install/gems/simple_case_spec.rb +16 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6a1c455597080ee1686b208192bc8bbe28a2f52
|
4
|
+
data.tar.gz: 5d5b604070d1790e275b377ee36dab9db0bd9bc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf54e78895cdfa87d01b0bf83dcf305c2fae930dd099a21f66a640d4bb593a23d10e02e4718a91419c58316ee0e2f196044c1577d3044d0f96e3fdfccf4a9de6
|
7
|
+
data.tar.gz: 92c8556d766a72dd65781dc41d09f222b981e3b04d12d883eba03c7e029f5e587076342711ad0c6fdb1446eb75dcbb256c35d30042ddaeeeb04150a3f065f722
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## 1.5.0 (2013-12-26)
|
2
|
+
|
3
|
+
Features:
|
4
|
+
|
5
|
+
- install missing gems if their specs are present (@hone)
|
6
|
+
|
7
|
+
Bugfixes:
|
8
|
+
|
9
|
+
- use print for "Installing…" so messages are thread-safe (@TimMoore)
|
10
|
+
|
1
11
|
## 1.5.0.rc.2 (2013-12-18)
|
2
12
|
|
3
13
|
"Features":
|
@@ -8,7 +18,6 @@
|
|
8
18
|
"Bugfixes":
|
9
19
|
|
10
20
|
- Try to catch gem installation race conditions
|
11
|
-
|
12
21
|
|
13
22
|
## 1.5.0.rc.1 (2013-11-09)
|
14
23
|
|
@@ -68,7 +68,7 @@ module Bundler
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def install(spec)
|
71
|
-
if installed_specs[spec].any?
|
71
|
+
if installed_specs[spec].any? && gem_dir_exists?(spec)
|
72
72
|
return ["Using #{spec.name} (#{spec.version})", nil]
|
73
73
|
end
|
74
74
|
|
@@ -276,6 +276,14 @@ module Bundler
|
|
276
276
|
Bundler.rubygems.sources = old
|
277
277
|
end
|
278
278
|
end
|
279
|
+
|
280
|
+
def gem_dir_exists?(spec)
|
281
|
+
if spec.name == "bundler"
|
282
|
+
true
|
283
|
+
else
|
284
|
+
File.directory?(spec.full_gem_path)
|
285
|
+
end
|
286
|
+
end
|
279
287
|
end
|
280
288
|
|
281
289
|
end
|
@@ -65,16 +65,13 @@ class Thor
|
|
65
65
|
#
|
66
66
|
def say(message="", color=nil, force_new_line=(message.to_s !~ /( |\t)\Z/))
|
67
67
|
message = message.to_s
|
68
|
-
|
69
68
|
message = set_color(message, *color) if color && can_display_colors?
|
70
69
|
|
71
|
-
|
70
|
+
buffer = " " * padding
|
71
|
+
buffer << message
|
72
|
+
buffer << "\n" if force_new_line && !message.end_with?("\n")
|
72
73
|
|
73
|
-
|
74
|
-
stdout.puts(spaces + message)
|
75
|
-
else
|
76
|
-
stdout.print(spaces + message)
|
77
|
-
end
|
74
|
+
stdout.print(buffer)
|
78
75
|
stdout.flush
|
79
76
|
end
|
80
77
|
|
@@ -91,7 +88,10 @@ class Thor
|
|
91
88
|
status = status.to_s.rjust(12)
|
92
89
|
status = set_color status, color, true if color
|
93
90
|
|
94
|
-
|
91
|
+
buffer = "#{status}#{spaces}#{message}"
|
92
|
+
buffer << "\n" unless buffer.end_with?("\n")
|
93
|
+
|
94
|
+
stdout.print(buffer)
|
95
95
|
stdout.flush
|
96
96
|
end
|
97
97
|
|
data/lib/bundler/version.rb
CHANGED
@@ -2,5 +2,5 @@ module Bundler
|
|
2
2
|
# We're doing this because we might write tests that deal
|
3
3
|
# with other versions of bundler and we are unsure how to
|
4
4
|
# handle this better.
|
5
|
-
VERSION = "1.5.0
|
5
|
+
VERSION = "1.5.0" unless defined?(::Bundler::VERSION)
|
6
6
|
end
|
@@ -337,6 +337,22 @@ describe "bundle install with gem sources" do
|
|
337
337
|
G
|
338
338
|
expect(exitstatus).to eq(0)
|
339
339
|
end
|
340
|
+
|
341
|
+
it "reinstalls the gem if the gem dir is missing but the specification file exists" do
|
342
|
+
gemfile(<<-G)
|
343
|
+
source "file://#{gem_repo1}"
|
344
|
+
|
345
|
+
gem 'foo'
|
346
|
+
G
|
347
|
+
|
348
|
+
bundle "install --path vendor/bundle"
|
349
|
+
|
350
|
+
FileUtils.rm_rf(vendored_gems('gems/foo-1.0'))
|
351
|
+
|
352
|
+
bundle "install"
|
353
|
+
|
354
|
+
expect(vendored_gems('gems/foo-1.0')).to exist
|
355
|
+
end
|
340
356
|
end
|
341
357
|
|
342
358
|
describe "when Bundler root contains regex chars" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.0
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Arko
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-12-
|
14
|
+
date: 2013-12-26 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: ronn
|
@@ -436,3 +436,4 @@ test_files:
|
|
436
436
|
- spec/update/gems_spec.rb
|
437
437
|
- spec/update/git_spec.rb
|
438
438
|
- spec/update/source_spec.rb
|
439
|
+
has_rdoc:
|