bundler 1.5.0.rc.2 → 1.5.0

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.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b55517eaef946a0c5a55f07662dca965e501bf2
4
- data.tar.gz: f33ad8374b80d75d6b5ec79059f5a61ec707b263
3
+ metadata.gz: d6a1c455597080ee1686b208192bc8bbe28a2f52
4
+ data.tar.gz: 5d5b604070d1790e275b377ee36dab9db0bd9bc7
5
5
  SHA512:
6
- metadata.gz: 130b5844db4c48d724af351e8dec1232456fd5b5a617c05ce87ca246bcf395a71f9e89bc52d0eb23c6edd0503aeae55fafe9f6a869159ab8f70cceccbb0a36d8
7
- data.tar.gz: b47c0b5b410c459374e26d6367ae545327d0a36fe5adda1d236e7cd055ee2d3315be14661c8f88a16e9ea3c37dd4d9c1948f1e6207ede2c74bec42a88f733b91
6
+ metadata.gz: cf54e78895cdfa87d01b0bf83dcf305c2fae930dd099a21f66a640d4bb593a23d10e02e4718a91419c58316ee0e2f196044c1577d3044d0f96e3fdfccf4a9de6
7
+ data.tar.gz: 92c8556d766a72dd65781dc41d09f222b981e3b04d12d883eba03c7e029f5e587076342711ad0c6fdb1446eb75dcbb256c35d30042ddaeeeb04150a3f065f722
@@ -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
- spaces = " " * padding
70
+ buffer = " " * padding
71
+ buffer << message
72
+ buffer << "\n" if force_new_line && !message.end_with?("\n")
72
73
 
73
- if force_new_line
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
- stdout.puts "#{status}#{spaces}#{message}"
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
 
@@ -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.rc.2" unless defined?(::Bundler::VERSION)
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.rc.2
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-19 00:00:00.000000000 Z
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: