bundler 1.6.9 → 1.7.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.

@@ -75,7 +75,6 @@ describe "the lockfile format" do
75
75
 
76
76
  install_gemfile(<<-G, :artifice => "endpoint_strict_basic_authentication", :quiet => true)
77
77
  source "http://localgemserver.test/"
78
- source "http://user:pass@othergemserver.test/"
79
78
 
80
79
  gem "rack-obama", ">= 1.0"
81
80
  G
@@ -83,7 +82,6 @@ describe "the lockfile format" do
83
82
  lockfile_should_be <<-G
84
83
  GEM
85
84
  remote: http://localgemserver.test/
86
- remote: http://user:pass@othergemserver.test/
87
85
  specs:
88
86
  rack (1.0.0)
89
87
  rack-obama (1.0)
@@ -146,7 +144,7 @@ describe "the lockfile format" do
146
144
  G
147
145
  end
148
146
 
149
- it "does not asplode when a platform specific dependency is present and the Gemfile has not been resolved on that platform" do
147
+ it "does not assplode when a platform specific dependency is present and the Gemfile has not been resolved on that platform" do
150
148
  build_lib "omg", :path => lib_path('omg')
151
149
 
152
150
  gemfile <<-G
@@ -287,45 +285,6 @@ describe "the lockfile format" do
287
285
  G
288
286
  end
289
287
 
290
- it "sorts serialized sources by type" do
291
- build_lib "foo"
292
- bar = build_git "bar"
293
-
294
- install_gemfile <<-G
295
- source "file://#{gem_repo1}"
296
-
297
- gem "rack"
298
- gem "foo", :path => "#{lib_path("foo-1.0")}"
299
- gem "bar", :git => "#{lib_path("bar-1.0")}"
300
- G
301
-
302
- lockfile_should_be <<-G
303
- GIT
304
- remote: #{lib_path("bar-1.0")}
305
- revision: #{bar.ref_for('master')}
306
- specs:
307
- bar (1.0)
308
-
309
- PATH
310
- remote: #{lib_path("foo-1.0")}
311
- specs:
312
- foo (1.0)
313
-
314
- GEM
315
- remote: file:#{gem_repo1}/
316
- specs:
317
- rack (1.0.0)
318
-
319
- PLATFORMS
320
- #{generic(Gem::Platform.local)}
321
-
322
- DEPENDENCIES
323
- bar!
324
- foo!
325
- rack
326
- G
327
- end
328
-
329
288
  it "lists gems alphabetically" do
330
289
  install_gemfile <<-G
331
290
  source "file://#{gem_repo1}"
@@ -1,23 +1,10 @@
1
1
  require 'spec_helper'
2
2
  require 'bundler/ssl_certs/certificate_manager'
3
3
 
4
- describe "SSL Certificates", :rubygems_master do
4
+ describe "SSL Certificates", :if => (ENV['RGV'] == "master") do
5
5
  it "are up to date with Rubygems" do
6
6
  rubygems = File.expand_path("../../../tmp/rubygems", __FILE__)
7
7
  manager = Bundler::SSLCerts::CertificateManager.new(rubygems)
8
8
  expect(manager).to be_up_to_date
9
9
  end
10
-
11
- hosts = %w(
12
- d2chzxaqi4y7f8.cloudfront.net
13
- rubygems.org
14
- s3.amazonaws.com
15
- staging.rubygems.org
16
- )
17
-
18
- hosts.each do |host|
19
- it "can securely connect to #{host}", :realworld do
20
- Bundler::SSLCerts::CertificateManager.new.connect_to(host)
21
- end
22
- end
23
10
  end
@@ -46,7 +46,7 @@ describe "The library itself" do
46
46
  actual.empty?
47
47
  end
48
48
 
49
- failure_message do |actual|
49
+ failure_message_for_should do |actual|
50
50
  actual.join("\n")
51
51
  end
52
52
  end
@@ -58,7 +58,7 @@ describe "parallel", :realworld => true do
58
58
  expect(out).to match(/[1-3]: /)
59
59
 
60
60
  bundle "show activesupport"
61
- expect(out).to match(/activesupport-3\.2\.\d+/)
61
+ expect(out).to match(/activesupport-3\.2\.1[3-9]/)
62
62
 
63
63
  bundle "show faker"
64
64
  expect(out).to match(/faker/)
@@ -76,12 +76,6 @@ RSpec.configure do |config|
76
76
  config.filter_run_excluding :rubygems => "2.2"
77
77
  end
78
78
 
79
- if ENV['RGV'] == "master"
80
- config.filter_run :rubygems_master => true
81
- else
82
- config.filter_run_excluding :rubygems_master => true
83
- end
84
-
85
79
  config.filter_run :focused => true unless ENV['CI']
86
80
  config.run_all_when_everything_filtered = true
87
81
  config.alias_example_to :fit, :focused => true
@@ -233,4 +233,51 @@ describe "bundle update" do
233
233
  expect(out).to include("Using rails 3.0 (was 2.3.2) from #{lib_path('rails')} (at master)")
234
234
  end
235
235
  end
236
+
237
+ describe "with --source flag" do
238
+ before :each do
239
+ build_repo2
240
+ @git = build_git "foo", :path => lib_path("foo") do |s|
241
+ s.executables = "foobar"
242
+ end
243
+
244
+ install_gemfile <<-G
245
+ source "file://#{gem_repo2}"
246
+ git "#{lib_path('foo')}" do
247
+ gem 'foo'
248
+ end
249
+ gem 'rack'
250
+ G
251
+ end
252
+
253
+ it "updates the source" do
254
+ update_git "foo", :path => @git.path
255
+
256
+ bundle "update --source foo"
257
+
258
+ in_app_root do
259
+ run <<-RUBY
260
+ require 'foo'
261
+ puts "WIN" if defined?(FOO_PREV_REF)
262
+ RUBY
263
+
264
+ expect(out).to eq("WIN")
265
+ end
266
+ end
267
+
268
+ it "unlocks gems that were originally pulled in by the source" do
269
+ update_git "foo", "2.0", :path => @git.path
270
+
271
+ bundle "update --source foo"
272
+ should_be_installed "foo 2.0"
273
+ end
274
+
275
+ it "leaves all other gems frozen" do
276
+ update_repo2
277
+ update_git "foo", :path => @git.path
278
+
279
+ bundle "update --source foo"
280
+ should_be_installed "rack 1.0"
281
+ end
282
+ end
236
283
  end
@@ -0,0 +1,18 @@
1
+ require "spec_helper"
2
+
3
+ describe "path sources" do
4
+ describe "bundle update --source" do
5
+ it "shows the previous version of the gem when updated from path source" do
6
+ build_lib "activesupport", "2.3.5", :path => lib_path("rails/activesupport")
7
+
8
+ install_gemfile <<-G
9
+ gem "activesupport", :path => "#{lib_path('rails/activesupport')}"
10
+ G
11
+
12
+ build_lib "activesupport", "3.0", :path => lib_path("rails/activesupport")
13
+
14
+ bundle "update --source activesupport"
15
+ expect(out).to include("Using activesupport 3.0 (was 2.3.5) from source at #{lib_path('rails/activesupport')}")
16
+ end
17
+ end
18
+ end
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.6.9
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -11,22 +11,8 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-11-12 00:00:00.000000000 Z
14
+ date: 2014-08-14 00:00:00.000000000 Z
15
15
  dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: mustache
18
- requirement: !ruby/object:Gem::Requirement
19
- requirements:
20
- - - '='
21
- - !ruby/object:Gem::Version
22
- version: 0.99.6
23
- type: :development
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - '='
28
- - !ruby/object:Gem::Version
29
- version: 0.99.6
30
16
  - !ruby/object:Gem::Dependency
31
17
  name: rdiscount
32
18
  requirement: !ruby/object:Gem::Requirement
@@ -180,10 +166,9 @@ files:
180
166
  - lib/bundler/source/path.rb
181
167
  - lib/bundler/source/path/installer.rb
182
168
  - lib/bundler/source/rubygems.rb
169
+ - lib/bundler/source_list.rb
183
170
  - lib/bundler/spec_set.rb
184
171
  - lib/bundler/ssl_certs/.document
185
- - lib/bundler/ssl_certs/AddTrustExternalCARoot-2048.pem
186
- - lib/bundler/ssl_certs/AddTrustExternalCARoot.pem
187
172
  - lib/bundler/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem
188
173
  - lib/bundler/ssl_certs/DigiCertHighAssuranceEVRootCA.pem
189
174
  - lib/bundler/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem
@@ -272,7 +257,8 @@ files:
272
257
  - spec/bundler/psyched_yaml_spec.rb
273
258
  - spec/bundler/retry_spec.rb
274
259
  - spec/bundler/settings_spec.rb
275
- - spec/bundler/source_spec.rb
260
+ - spec/bundler/source/rubygems_spec.rb
261
+ - spec/bundler/source_list_spec.rb
276
262
  - spec/cache/gems_spec.rb
277
263
  - spec/cache/git_spec.rb
278
264
  - spec/cache/path_spec.rb
@@ -309,6 +295,7 @@ files:
309
295
  - spec/install/gems/post_install_spec.rb
310
296
  - spec/install/gems/resolving_spec.rb
311
297
  - spec/install/gems/simple_case_spec.rb
298
+ - spec/install/gems/sources_spec.rb
312
299
  - spec/install/gems/standalone_spec.rb
313
300
  - spec/install/gems/sudo_spec.rb
314
301
  - spec/install/gems/win32_spec.rb
@@ -368,7 +355,7 @@ files:
368
355
  - spec/support/sudo.rb
369
356
  - spec/update/gems_spec.rb
370
357
  - spec/update/git_spec.rb
371
- - spec/update/source_spec.rb
358
+ - spec/update/path_spec.rb
372
359
  homepage: http://bundler.io
373
360
  licenses:
374
361
  - MIT
@@ -403,7 +390,8 @@ test_files:
403
390
  - spec/bundler/psyched_yaml_spec.rb
404
391
  - spec/bundler/retry_spec.rb
405
392
  - spec/bundler/settings_spec.rb
406
- - spec/bundler/source_spec.rb
393
+ - spec/bundler/source/rubygems_spec.rb
394
+ - spec/bundler/source_list_spec.rb
407
395
  - spec/cache/gems_spec.rb
408
396
  - spec/cache/git_spec.rb
409
397
  - spec/cache/path_spec.rb
@@ -440,6 +428,7 @@ test_files:
440
428
  - spec/install/gems/post_install_spec.rb
441
429
  - spec/install/gems/resolving_spec.rb
442
430
  - spec/install/gems/simple_case_spec.rb
431
+ - spec/install/gems/sources_spec.rb
443
432
  - spec/install/gems/standalone_spec.rb
444
433
  - spec/install/gems/sudo_spec.rb
445
434
  - spec/install/gems/win32_spec.rb
@@ -499,4 +488,4 @@ test_files:
499
488
  - spec/support/sudo.rb
500
489
  - spec/update/gems_spec.rb
501
490
  - spec/update/git_spec.rb
502
- - spec/update/source_spec.rb
491
+ - spec/update/path_spec.rb
@@ -1,25 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEU
3
- MBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFs
4
- IFRUUCBOZXR3b3JrMSIwIAYDVQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290
5
- MB4XDTAwMDUzMDEw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cqsQugsv5
29
- B5a6SE2Q8pTIqXOi6wZ7I53eovNNVZ96YUWYGGjHXkBrI/V5eu+MtWuLt29G9Hvx
30
- PUsE2JOAWVrgQSQdso8VYFhH2+9uRv0V9dlfmrPb2LjkQLPNlzmuhbsdjrzch5vR
31
- pu/xO28QOG8=
32
- -----END CERTIFICATE-----
@@ -1,63 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "bundle update --source" do
4
- describe "git sources" do
5
- before :each do
6
- build_repo2
7
- @git = build_git "foo", :path => lib_path("foo") do |s|
8
- s.executables = "foobar"
9
- end
10
-
11
- install_gemfile <<-G
12
- source "file://#{gem_repo2}"
13
- git "#{lib_path('foo')}" do
14
- gem 'foo'
15
- end
16
- gem 'rack'
17
- G
18
- end
19
-
20
- it "updates the source" do
21
- update_git "foo", :path => @git.path
22
-
23
- bundle "update --source foo"
24
-
25
- in_app_root do
26
- run <<-RUBY
27
- require 'foo'
28
- puts "WIN" if defined?(FOO_PREV_REF)
29
- RUBY
30
-
31
- expect(out).to eq("WIN")
32
- end
33
- end
34
-
35
- it "unlocks gems that were originally pulled in by the source" do
36
- update_git "foo", "2.0", :path => @git.path
37
-
38
- bundle "update --source foo"
39
- should_be_installed "foo 2.0"
40
- end
41
-
42
- it "leaves all other gems frozen" do
43
- update_repo2
44
- update_git "foo", :path => @git.path
45
-
46
- bundle "update --source foo"
47
- should_be_installed "rack 1.0"
48
- end
49
-
50
- it "shows the previous version of the gem when updated from path source" do
51
- build_lib "activesupport", "2.3.5", :path => lib_path("rails/activesupport")
52
-
53
- install_gemfile <<-G
54
- gem "activesupport", :path => "#{lib_path('rails/activesupport')}"
55
- G
56
-
57
- build_lib "activesupport", "3.0", :path => lib_path("rails/activesupport")
58
-
59
- bundle "update --source activesupport"
60
- expect(out).to include("Using activesupport 3.0 (was 2.3.5) from source at #{lib_path('rails/activesupport')}")
61
- end
62
- end
63
- end