bundler 1.6.0.pre.1 → 1.6.0.pre.2

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.

Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -3
  3. data/Rakefile +12 -7
  4. data/lib/bundler.rb +3 -3
  5. data/lib/bundler/cli.rb +36 -619
  6. data/lib/bundler/cli/binstubs.rb +36 -0
  7. data/lib/bundler/cli/cache.rb +34 -0
  8. data/lib/bundler/cli/check.rb +35 -0
  9. data/lib/bundler/cli/clean.rb +19 -0
  10. data/lib/bundler/cli/common.rb +54 -0
  11. data/lib/bundler/cli/config.rb +84 -0
  12. data/lib/bundler/cli/console.rb +42 -0
  13. data/lib/bundler/cli/exec.rb +37 -0
  14. data/lib/bundler/cli/gem.rb +61 -0
  15. data/lib/bundler/cli/init.rb +33 -0
  16. data/lib/bundler/cli/inject.rb +33 -0
  17. data/lib/bundler/cli/install.rb +123 -0
  18. data/lib/bundler/cli/open.rb +25 -0
  19. data/lib/bundler/cli/outdated.rb +80 -0
  20. data/lib/bundler/cli/package.rb +36 -0
  21. data/lib/bundler/cli/platform.rb +43 -0
  22. data/lib/bundler/cli/show.rb +44 -0
  23. data/lib/bundler/cli/update.rb +73 -0
  24. data/lib/bundler/cli/viz.rb +27 -0
  25. data/lib/bundler/dsl.rb +46 -26
  26. data/lib/bundler/fetcher.rb +50 -4
  27. data/lib/bundler/installer.rb +1 -1
  28. data/lib/bundler/parallel_workers/worker.rb +1 -1
  29. data/lib/bundler/remote_specification.rb +1 -1
  30. data/lib/bundler/resolver.rb +30 -18
  31. data/lib/bundler/source/git.rb +0 -4
  32. data/lib/bundler/source/git/git_proxy.rb +2 -2
  33. data/lib/bundler/source/rubygems.rb +1 -14
  34. data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +1 -1
  35. data/lib/bundler/vendor/thor/base.rb +1 -1
  36. data/lib/bundler/version.rb +1 -1
  37. data/spec/bundler/bundler_spec.rb +46 -47
  38. data/spec/bundler/{cli_rspec.rb → cli_spec.rb} +0 -1
  39. data/spec/bundler/definition_spec.rb +3 -7
  40. data/spec/bundler/dsl_spec.rb +43 -21
  41. data/spec/bundler/gem_helper_spec.rb +152 -123
  42. data/spec/bundler/retry_spec.rb +6 -7
  43. data/spec/bundler/settings_spec.rb +0 -2
  44. data/spec/bundler/source_spec.rb +4 -4
  45. data/spec/commands/newgem_spec.rb +7 -7
  46. data/spec/commands/outdated_spec.rb +11 -0
  47. data/spec/install/gems/dependency_api_spec.rb +41 -0
  48. data/spec/install/gems/simple_case_spec.rb +1 -17
  49. data/spec/other/ext_spec.rb +1 -1
  50. data/spec/support/artifice/endpoint_strict_basic_authentication.rb +18 -0
  51. data/spec/support/builders.rb +43 -42
  52. data/spec/support/permissions.rb +0 -1
  53. data/spec/update/gems_spec.rb +11 -0
  54. metadata +51 -30
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe "bundle retry" do
3
+ describe Bundler::Retry do
4
4
  it "return successful result if no errors" do
5
5
  attempts = 0
6
6
  result = Bundler::Retry.new(nil, nil, 3).attempt do
@@ -18,7 +18,7 @@ describe "bundle retry" do
18
18
  attempts += 1
19
19
  raise "nope"
20
20
  end
21
- }.to raise_error
21
+ }.to raise_error("nope")
22
22
  expect(attempts).to eq(3)
23
23
  end
24
24
 
@@ -27,22 +27,21 @@ describe "bundle retry" do
27
27
  attempts = 0
28
28
  result = Bundler::Retry.new(nil, nil, 3).attempt do
29
29
  attempts += 1
30
- job = jobs.shift
31
- job.call
30
+ jobs.shift.call
32
31
  end
33
32
  expect(result).to eq(:bar)
34
33
  expect(attempts).to eq(2)
35
34
  end
36
35
 
37
36
  it "raises the last error" do
38
- error = Bundler::GemfileNotFound
37
+ errors = [StandardError, StandardError, StandardError, Bundler::GemfileNotFound]
39
38
  attempts = 0
40
39
  expect {
41
40
  Bundler::Retry.new(nil, nil, 3).attempt do
42
41
  attempts += 1
43
- raise error
42
+ raise errors.shift
44
43
  end
45
- }.to raise_error(error)
44
+ }.to raise_error(Bundler::GemfileNotFound)
46
45
  expect(attempts).to eq(4)
47
46
  end
48
47
 
@@ -2,7 +2,6 @@ require 'spec_helper'
2
2
  require 'bundler/settings'
3
3
 
4
4
  describe Bundler::Settings do
5
-
6
5
  describe "#set_local" do
7
6
  context "when the local config file is not found" do
8
7
  it "raises a GemfileNotFound error with explanation" do
@@ -11,5 +10,4 @@ describe Bundler::Settings do
11
10
  end
12
11
  end
13
12
  end
14
-
15
13
  end
@@ -2,21 +2,21 @@ require 'spec_helper'
2
2
 
3
3
  describe Bundler::Source::Rubygems do
4
4
  before do
5
- Bundler.stub(:root){ Pathname.new("root") }
5
+ allow(Bundler).to receive(:root){ Pathname.new("root") }
6
6
  end
7
7
 
8
8
  describe "caches" do
9
- it "should include Bundler.app_cache" do
9
+ it "includes Bundler.app_cache" do
10
10
  expect(subject.caches).to include(Bundler.app_cache)
11
11
  end
12
12
 
13
- it "should include GEM_PATH entries" do
13
+ it "includes GEM_PATH entries" do
14
14
  Gem.path.each do |path|
15
15
  expect(subject.caches).to include(File.expand_path("#{path}/cache"))
16
16
  end
17
17
  end
18
18
 
19
- it "should be an array of strings or pathnames" do
19
+ it "is an array of strings or pathnames" do
20
20
  subject.caches.each do |cache|
21
21
  expect([String, Pathname]).to include(cache.class)
22
22
  end
@@ -150,11 +150,11 @@ describe "bundle gem" do
150
150
  end
151
151
 
152
152
  it "requires 'test-gem'" do
153
- expect(bundled_app("test_gem/spec/spec_helper.rb").read).to match(/require 'test_gem'/)
153
+ expect(bundled_app("test_gem/spec/spec_helper.rb").read).to include("require 'test_gem'")
154
154
  end
155
155
 
156
156
  it "creates a default test which fails" do
157
- expect(bundled_app("test_gem/spec/test_gem_spec.rb").read).to include('expect(false).to be true')
157
+ expect(bundled_app("test_gem/spec/test_gem_spec.rb").read).to include("expect(false).to eq(true)")
158
158
  end
159
159
  end
160
160
 
@@ -171,15 +171,15 @@ describe "bundle gem" do
171
171
  end
172
172
 
173
173
  it "requires 'test-gem'" do
174
- expect(bundled_app("test_gem/test/minitest_helper.rb").read).to match(/require 'test_gem'/)
174
+ expect(bundled_app("test_gem/test/minitest_helper.rb").read).to include("require 'test_gem'")
175
175
  end
176
176
 
177
177
  it "requires 'minitest_helper'" do
178
- expect(bundled_app("test_gem/test/test_test_gem.rb").read).to match(/require 'minitest_helper'/)
178
+ expect(bundled_app("test_gem/test/test_test_gem.rb").read).to include("require 'minitest_helper'")
179
179
  end
180
180
 
181
181
  it "creates a default test which fails" do
182
- expect(bundled_app("test_gem/test/test_test_gem.rb").read).to match(/assert false/)
182
+ expect(bundled_app("test_gem/test/test_test_gem.rb").read).to include("assert false")
183
183
  end
184
184
  end
185
185
 
@@ -326,11 +326,11 @@ describe "bundle gem" do
326
326
  end
327
327
 
328
328
  it "requires 'test/gem'" do
329
- expect(bundled_app("test-gem/spec/spec_helper.rb").read).to match(/require 'test\/gem'/)
329
+ expect(bundled_app("test-gem/spec/spec_helper.rb").read).to include("require 'test/gem'")
330
330
  end
331
331
 
332
332
  it "creates a default test which fails" do
333
- expect(bundled_app("test-gem/spec/test/gem_spec.rb").read).to include('expect(false).to be true')
333
+ expect(bundled_app("test-gem/spec/test/gem_spec.rb").read).to include("expect(false).to eq(true)")
334
334
  end
335
335
 
336
336
  it "creates a default rake task to run the specs" do
@@ -129,6 +129,17 @@ describe "bundle outdated" do
129
129
  expect(out).to_not include("activesupport (3.0 > 2.3.5) Gemfile specifies \"= 2.3.5\"")
130
130
  expect(out).to include("weakling (0.0.5 > 0.0.3) Gemfile specifies \"~> 0.0.1\"")
131
131
  end
132
+
133
+ it "only reports gem dependencies when they can actually be updated" do
134
+ install_gemfile <<-G
135
+ source "file://#{gem_repo2}"
136
+ gem "rack_middleware", "1.0"
137
+ G
138
+
139
+ bundle "outdated --strict"
140
+
141
+ expect(out).to_not include("rack (1.2 > 0.9.1)")
142
+ end
132
143
  end
133
144
 
134
145
  describe "with invalid gem name" do
@@ -454,6 +454,47 @@ describe "gemcutter's dependency API" do
454
454
  should_be_installed "rack 1.0.0"
455
455
  end
456
456
 
457
+ describe "with authentication details in bundle config" do
458
+ before do
459
+ gemfile <<-G
460
+ source "#{source_uri}"
461
+ gem "rack"
462
+ G
463
+ end
464
+
465
+ it "reads authentication details from bundle config" do
466
+ # The trailing slash is necessary here; Fetcher canonicalizes the URI.
467
+ bundle "config #{source_uri}/ #{user}:#{password}"
468
+
469
+ bundle :install, :artifice => "endpoint_strict_basic_authentication"
470
+ should_be_installed "rack 1.0.0"
471
+ end
472
+
473
+ it "prefers auth supplied in the source uri" do
474
+ gemfile <<-G
475
+ source "#{basic_auth_source_uri}"
476
+ gem "rack"
477
+ G
478
+
479
+ bundle "config #{source_uri}/ otheruser:wrong"
480
+
481
+ bundle :install, :artifice => "endpoint_strict_basic_authentication"
482
+ should_be_installed "rack 1.0.0"
483
+ end
484
+
485
+ it "shows instructions if auth is not provided for the source" do
486
+ bundle :install, :artifice => "endpoint_strict_basic_authentication"
487
+ expect(out).to include("bundle config #{source_uri}/ username:password")
488
+ end
489
+
490
+ it "fails if authentication has already been provided, but failed" do
491
+ bundle "config #{source_uri}/ #{user}:wrong"
492
+
493
+ bundle :install, :artifice => "endpoint_strict_basic_authentication"
494
+ expect(out).to include("Bad username or password")
495
+ end
496
+ end
497
+
457
498
  describe "with no password" do
458
499
  let(:password) { nil }
459
500
 
@@ -298,7 +298,7 @@ describe "bundle install with gem sources" do
298
298
  install_gemfile <<-G
299
299
  G
300
300
 
301
- expect(File.exists?(bundled_app("Gemfile.lock"))).to be true
301
+ expect(File.exists?(bundled_app("Gemfile.lock"))).to eq(true)
302
302
  end
303
303
 
304
304
  it "gracefully handles error when rubygems server is unavailable" do
@@ -337,22 +337,6 @@ 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
356
340
  end
357
341
 
358
342
  describe "when Bundler root contains regex chars" do
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  describe "Gem::Specification#match_platform" do
4
4
  it "does not match platforms other than the gem platform" do
5
5
  darwin = gem "lol", "1.0", "platform_specific-1.0-x86-darwin-10"
6
- expect(darwin.match_platform(pl('java'))).to be false
6
+ expect(darwin.match_platform(pl('java'))).to eq(false)
7
7
  end
8
8
  end
9
9
 
@@ -0,0 +1,18 @@
1
+ require File.expand_path("../endpoint", __FILE__)
2
+
3
+ Artifice.deactivate
4
+
5
+ class EndpointStrictBasicAuthentication < Endpoint
6
+ before do
7
+ unless env["HTTP_AUTHORIZATION"]
8
+ halt 401, "Authentication info not supplied"
9
+ end
10
+
11
+ # Only accepts password == "password"
12
+ unless env["HTTP_AUTHORIZATION"] == "Basic dXNlcjpwYXNz"
13
+ halt 403, "Authentication failed"
14
+ end
15
+ end
16
+ end
17
+
18
+ Artifice.activate_with(EndpointStrictBasicAuthentication)
@@ -627,53 +627,54 @@ module Spec
627
627
 
628
628
  TEST_CERT=<<CERT
629
629
  -----BEGIN CERTIFICATE-----
630
- MIIDLDCCAhSgAwIBAgIBADANBgkqhkiG9w0BAQUFADA8MRAwDgYDVQQDDAdleGFt
631
- cGxlMRMwEQYKCZImiZPyLGQBGRYDZm9vMRMwEQYKCZImiZPyLGQBGRYDY29tMB4X
632
- DTEzMDIwNDIxMTYzNVoXDTE0MDIwNDIxMTYzNVowPDEQMA4GA1UEAwwHZXhhbXBs
633
- ZTETMBEGCgmSJomT8ixkARkWA2ZvbzETMBEGCgmSJomT8ixkARkWA2NvbTCCASIw
634
- DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANVgibTKM0ux14SXQU9M2Ec2mTHG
635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CggEBANlvFdpN43c4DMS9Jo06
634
+ m0a7k3bQ3HWQ1yrYhZMi77F1F73NpBknYHIzDktQpGn6hs/4QFJT4m4zNEBF47UL
635
+ jHU5nTK5rjkS3niGYUjvh3ZEzVeo9zHUlD/UwflDo4ALl3TSo2KY/KdPS/UTdLXL
636
+ ajkQvaVJtEDgBPE3DPhlj5whp+Ik3mDHej7qpV6F502leAwYaFyOtlEG/ZGNG+nZ
637
+ L0clH0j77HpP42AylHDi+vakEM3xcjo9BeWQ6Vkboic93c9RTt6CWBWxMQP7Nol1
638
+ MOebz9XOSQclxpxWteXNfPRtMdAhmRl76SMI8ywzThNPpa4EH/yz34ftebVOgKyM
639
+ nd0CAwEAAaNpMGcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFA7D
640
+ n9qo0np23qi3aOYuAAPn/5IdMBYGA1UdEQQPMA2BC3lvdUBleGFtcGxlMBYGA1Ud
641
+ EgQPMA2BC3lvdUBleGFtcGxlMA0GCSqGSIb3DQEBBQUAA4IBAQB5N+71KiNX3k0Y
642
+ FWizUHUYOqo+fEk3aBoFbOFcx+M5TXPiA91pH8mgyyD9tVzqiYgCGk7g/UrOv5Ec
643
+ NHjYqsFecNPayj8u2Po07pp2Nbc9aqt9uxoRSENZ72Dzrk3YDStgji7Sk/LZW5Kn
644
+ 4JFTeRof+B7/ZijLZWBEnMfSHSIPaQu0Ig6c19OEhiiuhGOn4WUhGFYCadciKgnj
645
+ PtaUcxKuvXMwRPG3NZqeGZivTlrhAmmf7iPV/E334qzMytvAV8zycZFj2J5hvyLk
646
+ 432zLezmbFGc0uLIUjXDu9bM5WYGy1BOTuzuApyuCs9S1greqz17f8f01J87DX3X
647
+ wJsshs4b
647
648
  -----END CERTIFICATE-----
648
649
  CERT
649
650
 
650
651
  TEST_PKEY=<<PKEY
651
652
  -----BEGIN RSA PRIVATE KEY-----
652
- MIIEogIBAAKCAQEA1WCJtMozS7HXhJdBT0zYRzaZMcaGg8mX/dCr6njARqVPzv8C
653
- xxzYFpPqFdZZ8AnijFF5mc99Win59dlkOC1ULQmKM8K/7kkezkosQbU37DNpUjvb
654
- fzK/g3ra3jxcPnzls+nWZ6JWH3ATaR1rHVsgkHBxGF2DNHmQV+vb47u7+DWc78s3
655
- poBaUoFeqe1SYbTAShYCJtYOqm/gAgmFIavMCrDrjwXlNaI4S8rKvCiEC3shZuaJ
656
- LwKvepP4ZKrq1H0eLogLy8VbSAG93WlJfbmhSN00CleXN/rOSoFPN6T1HsU3pOLK
657
- Zsl8KpozPnms0AZkMNfQM6oki9FNHojYxBJ8mwIDAQABAoIBAD8AD+iXQun4il+V
658
- oSzezYTJNBYkPZcvsHa6Y+gI2wyAxr2hQZq0g4C3D4h/D3L2GDPB4pttTd+PQUQ7
659
- eYG0sIPTq0B5Id4jLLtP3x1PekF9NH2ZOselnjId1f2D6OByVAf45NsYbUE/ABwr
660
- GXNDcqvy5xGAmrqlod6zvurQhUFVWNYw1Ry6MCxD79S54Rky9cv6qzviPAh570y+
661
- aWS+lXJeqVVhmwWnbOUBWu/8dsniJbknassxwOYCShNLGnPMW+gklPaUucOkDF8K
662
- R0xYbOpAowQaIOdm7sQtt/CZOD34pgAWlLMev/J5y7+y6jvdqBMoLKIMAj/YqphW
663
- FqOY4fECgYEA9t5MqdexzOpz5LTQbqUDDiMtVR5mn/7wPbgNCRuAADTuM8QJkREe
664
- JCEG/S9CEmefoa6gr+CyWhq9qbFhLC7rEgBCInW/hL5m8qGVAVcpIUCbpYh7nirN
665
- fHQP6zL2RESmJDo3Y0vLZosR+XR1UDSb3tdTQSXt/MX6p+gjcswnzN0CgYEA3UUY
666
- ew22HjB1dnS7ps/gdsNwlalYYwSkfuBqNkluvMRE56HGbKeDYjEV4egkWZVYUNDJ
667
- P+jVKUTOSfgzXOsR7rKeiaQ3UEZfVpV3iQWtqzS2+BlhWBoQsBLD5CjdP8ykOQGr
668
- NQVNegXAFGhsiRNwm4Mpl5+t+Ap9aqSy1WwAu9cCg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oUEraVWTiyFVNqD81rCdceus9TdBj0ZIK1vUttaRZyrMAwF0uQSfjtxsOpd
677
+ l69BkyvzjgDPkmOHVGiSZDLi3YDvypbUpo6LOy4v5rVg5U2F/A0v
677
678
  -----END RSA PRIVATE KEY-----
678
679
  PKEY
679
680
  end
@@ -8,4 +8,3 @@ module Spec
8
8
  end
9
9
  end
10
10
  end
11
-
@@ -187,4 +187,15 @@ describe "bundle update" do
187
187
  bundle "update"
188
188
  expect(out).to include("Installing activesupport 3.0 (was 2.3.5)")
189
189
  end
190
+
191
+ it "shows error message when Gemfile.lock is not preset and gem is specified" do
192
+ install_gemfile <<-G
193
+ source "file://#{gem_repo2}"
194
+ gem "activesupport"
195
+ G
196
+
197
+ bundle "update nonexisting", :exitstatus => true
198
+ expect(out).to include("This Bundle hasn't been installed yet. Run `bundle install` to update and install the bundled gems.")
199
+ expect(@exitstatus).to eq(22)
200
+ end
190
201
  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.0.pre.1
4
+ version: 1.6.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -11,34 +11,34 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-01-13 00:00:00.000000000 Z
14
+ date: 2014-02-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: ronn
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - ~>
20
+ - - "~>"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 0.7.3
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ~>
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
29
  version: 0.7.3
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rspec
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ~>
34
+ - - "~>"
35
35
  - !ruby/object:Gem::Version
36
36
  version: 2.99.0.beta1
37
37
  type: :development
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ~>
41
+ - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: 2.99.0.beta1
44
44
  description: Bundler manages an application's dependencies through its entire life,
@@ -51,9 +51,9 @@ executables:
51
51
  extensions: []
52
52
  extra_rdoc_files: []
53
53
  files:
54
- - .gitignore
55
- - .rspec
56
- - .travis.yml
54
+ - ".gitignore"
55
+ - ".rspec"
56
+ - ".travis.yml"
57
57
  - CHANGELOG.md
58
58
  - CONTRIBUTING.md
59
59
  - DEVELOPMENT.md
@@ -69,6 +69,25 @@ files:
69
69
  - lib/bundler.rb
70
70
  - lib/bundler/capistrano.rb
71
71
  - lib/bundler/cli.rb
72
+ - lib/bundler/cli/binstubs.rb
73
+ - lib/bundler/cli/cache.rb
74
+ - lib/bundler/cli/check.rb
75
+ - lib/bundler/cli/clean.rb
76
+ - lib/bundler/cli/common.rb
77
+ - lib/bundler/cli/config.rb
78
+ - lib/bundler/cli/console.rb
79
+ - lib/bundler/cli/exec.rb
80
+ - lib/bundler/cli/gem.rb
81
+ - lib/bundler/cli/init.rb
82
+ - lib/bundler/cli/inject.rb
83
+ - lib/bundler/cli/install.rb
84
+ - lib/bundler/cli/open.rb
85
+ - lib/bundler/cli/outdated.rb
86
+ - lib/bundler/cli/package.rb
87
+ - lib/bundler/cli/platform.rb
88
+ - lib/bundler/cli/show.rb
89
+ - lib/bundler/cli/update.rb
90
+ - lib/bundler/cli/viz.rb
72
91
  - lib/bundler/constants.rb
73
92
  - lib/bundler/current_ruby.rb
74
93
  - lib/bundler/definition.rb
@@ -93,6 +112,22 @@ files:
93
112
  - lib/bundler/installer.rb
94
113
  - lib/bundler/lazy_specification.rb
95
114
  - lib/bundler/lockfile_parser.rb
115
+ - lib/bundler/man/bundle
116
+ - lib/bundler/man/bundle-config
117
+ - lib/bundler/man/bundle-config.txt
118
+ - lib/bundler/man/bundle-exec
119
+ - lib/bundler/man/bundle-exec.txt
120
+ - lib/bundler/man/bundle-install
121
+ - lib/bundler/man/bundle-install.txt
122
+ - lib/bundler/man/bundle-package
123
+ - lib/bundler/man/bundle-package.txt
124
+ - lib/bundler/man/bundle-platform
125
+ - lib/bundler/man/bundle-platform.txt
126
+ - lib/bundler/man/bundle-update
127
+ - lib/bundler/man/bundle-update.txt
128
+ - lib/bundler/man/bundle.txt
129
+ - lib/bundler/man/gemfile.5
130
+ - lib/bundler/man/gemfile.5.txt
96
131
  - lib/bundler/match_platform.rb
97
132
  - lib/bundler/parallel_workers.rb
98
133
  - lib/bundler/parallel_workers/thread_worker.rb
@@ -196,7 +231,7 @@ files:
196
231
  - man/gemfile.5.ronn
197
232
  - man/index.txt
198
233
  - spec/bundler/bundler_spec.rb
199
- - spec/bundler/cli_rspec.rb
234
+ - spec/bundler/cli_spec.rb
200
235
  - spec/bundler/definition_spec.rb
201
236
  - spec/bundler/dsl_spec.rb
202
237
  - spec/bundler/friendly_errors_spec.rb
@@ -282,6 +317,7 @@ files:
282
317
  - spec/support/artifice/endpoint_host_redirect.rb
283
318
  - spec/support/artifice/endpoint_marshal_fail.rb
284
319
  - spec/support/artifice/endpoint_redirect.rb
320
+ - spec/support/artifice/endpoint_strict_basic_authentication.rb
285
321
  - spec/support/artifice/endpoint_timeout.rb
286
322
  - spec/support/builders.rb
287
323
  - spec/support/fakeweb/rack-1.0.0.marshal
@@ -300,22 +336,6 @@ files:
300
336
  - spec/update/gems_spec.rb
301
337
  - spec/update/git_spec.rb
302
338
  - spec/update/source_spec.rb
303
- - lib/bundler/man/bundle
304
- - lib/bundler/man/bundle-config
305
- - lib/bundler/man/bundle-config.txt
306
- - lib/bundler/man/bundle-exec
307
- - lib/bundler/man/bundle-exec.txt
308
- - lib/bundler/man/bundle-install
309
- - lib/bundler/man/bundle-install.txt
310
- - lib/bundler/man/bundle-package
311
- - lib/bundler/man/bundle-package.txt
312
- - lib/bundler/man/bundle-platform
313
- - lib/bundler/man/bundle-platform.txt
314
- - lib/bundler/man/bundle-update
315
- - lib/bundler/man/bundle-update.txt
316
- - lib/bundler/man/bundle.txt
317
- - lib/bundler/man/gemfile.5
318
- - lib/bundler/man/gemfile.5.txt
319
339
  homepage: http://bundler.io
320
340
  licenses:
321
341
  - MIT
@@ -326,23 +346,23 @@ require_paths:
326
346
  - lib
327
347
  required_ruby_version: !ruby/object:Gem::Requirement
328
348
  requirements:
329
- - - '>='
349
+ - - ">="
330
350
  - !ruby/object:Gem::Version
331
351
  version: 1.8.7
332
352
  required_rubygems_version: !ruby/object:Gem::Requirement
333
353
  requirements:
334
- - - '>='
354
+ - - ">="
335
355
  - !ruby/object:Gem::Version
336
356
  version: 1.3.6
337
357
  requirements: []
338
358
  rubyforge_project:
339
- rubygems_version: 2.0.14
359
+ rubygems_version: 2.2.0
340
360
  signing_key:
341
361
  specification_version: 4
342
362
  summary: The best way to manage your application's dependencies
343
363
  test_files:
344
364
  - spec/bundler/bundler_spec.rb
345
- - spec/bundler/cli_rspec.rb
365
+ - spec/bundler/cli_spec.rb
346
366
  - spec/bundler/definition_spec.rb
347
367
  - spec/bundler/dsl_spec.rb
348
368
  - spec/bundler/friendly_errors_spec.rb
@@ -428,6 +448,7 @@ test_files:
428
448
  - spec/support/artifice/endpoint_host_redirect.rb
429
449
  - spec/support/artifice/endpoint_marshal_fail.rb
430
450
  - spec/support/artifice/endpoint_redirect.rb
451
+ - spec/support/artifice/endpoint_strict_basic_authentication.rb
431
452
  - spec/support/artifice/endpoint_timeout.rb
432
453
  - spec/support/builders.rb
433
454
  - spec/support/fakeweb/rack-1.0.0.marshal