bundler 1.7.15 → 1.8.0.pre

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 (191) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -14
  3. data/.rspec +1 -0
  4. data/.travis.yml +22 -15
  5. data/CHANGELOG.md +43 -13
  6. data/CODE_OF_CONDUCT.md +40 -0
  7. data/CONTRIBUTING.md +14 -12
  8. data/DEVELOPMENT.md +4 -2
  9. data/ISSUES.md +1 -1
  10. data/README.md +10 -14
  11. data/Rakefile +10 -10
  12. data/bin/bundle +1 -1
  13. data/bundler.gemspec +5 -4
  14. data/lib/bundler.rb +22 -3
  15. data/lib/bundler/anonymizable_uri.rb +24 -8
  16. data/lib/bundler/cli.rb +103 -66
  17. data/lib/bundler/cli/cache.rb +1 -0
  18. data/lib/bundler/cli/clean.rb +11 -4
  19. data/lib/bundler/cli/common.rb +2 -0
  20. data/lib/bundler/cli/console.rb +22 -26
  21. data/lib/bundler/cli/exec.rb +29 -22
  22. data/lib/bundler/cli/gem.rb +125 -37
  23. data/lib/bundler/cli/install.rb +22 -9
  24. data/lib/bundler/cli/outdated.rb +1 -1
  25. data/lib/bundler/cli/package.rb +8 -1
  26. data/lib/bundler/cli/show.rb +29 -3
  27. data/lib/bundler/cli/update.rb +2 -2
  28. data/lib/bundler/cli/viz.rb +1 -1
  29. data/lib/bundler/definition.rb +14 -22
  30. data/lib/bundler/dependency.rb +8 -1
  31. data/lib/bundler/dsl.rb +17 -4
  32. data/lib/bundler/endpoint_specification.rb +1 -1
  33. data/lib/bundler/env.rb +44 -25
  34. data/lib/bundler/fetcher.rb +33 -25
  35. data/lib/bundler/friendly_errors.rb +38 -5
  36. data/lib/bundler/gem_helper.rb +16 -10
  37. data/lib/bundler/gem_helpers.rb +1 -0
  38. data/lib/bundler/graph.rb +4 -1
  39. data/lib/bundler/index.rb +15 -25
  40. data/lib/bundler/installer.rb +6 -6
  41. data/lib/bundler/lockfile_parser.rb +7 -7
  42. data/lib/bundler/resolver.rb +2 -1
  43. data/lib/bundler/ruby_version.rb +1 -1
  44. data/lib/bundler/rubygems_ext.rb +1 -0
  45. data/lib/bundler/rubygems_integration.rb +1 -1
  46. data/lib/bundler/runtime.rb +22 -40
  47. data/lib/bundler/settings.rb +14 -5
  48. data/lib/bundler/setup.rb +2 -1
  49. data/lib/bundler/shared_helpers.rb +56 -4
  50. data/lib/bundler/source.rb +8 -9
  51. data/lib/bundler/source/git.rb +5 -1
  52. data/lib/bundler/source/git/git_proxy.rb +4 -0
  53. data/lib/bundler/source/path.rb +8 -11
  54. data/lib/bundler/source/path/installer.rb +0 -2
  55. data/lib/bundler/source/rubygems.rb +58 -72
  56. data/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +13 -0
  57. data/lib/bundler/templates/newgem/LICENSE.txt.tt +17 -18
  58. data/lib/bundler/templates/newgem/README.md.tt +9 -1
  59. data/lib/bundler/templates/newgem/Rakefile.tt +2 -0
  60. data/lib/bundler/templates/newgem/bin/console.tt +14 -0
  61. data/lib/bundler/templates/newgem/bin/setup.tt +7 -0
  62. data/lib/bundler/templates/newgem/exe/newgem.tt +3 -0
  63. data/lib/bundler/templates/newgem/gitignore.tt +2 -0
  64. data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +1 -1
  65. data/lib/bundler/templates/newgem/newgem.gemspec.tt +17 -13
  66. data/lib/bundler/templates/newgem/test/test_newgem.rb.tt +1 -1
  67. data/lib/bundler/ui/shell.rb +1 -1
  68. data/lib/bundler/version.rb +1 -1
  69. data/lib/bundler/worker.rb +73 -0
  70. data/man/bundle-config.ronn +17 -15
  71. data/man/bundle-install.ronn +102 -93
  72. data/man/bundle-update.ronn +39 -30
  73. data/man/bundle.ronn +6 -0
  74. data/man/gemfile.5.ronn +74 -13
  75. metadata +10 -231
  76. data/lib/bundler/parallel_workers.rb +0 -18
  77. data/lib/bundler/parallel_workers/thread_worker.rb +0 -30
  78. data/lib/bundler/parallel_workers/unix_worker.rb +0 -101
  79. data/lib/bundler/parallel_workers/worker.rb +0 -69
  80. data/lib/bundler/templates/newgem/bin/newgem.tt +0 -3
  81. data/spec/bundler/anonymizable_uri_spec.rb +0 -32
  82. data/spec/bundler/bundler_spec.rb +0 -72
  83. data/spec/bundler/cli_spec.rb +0 -16
  84. data/spec/bundler/definition_spec.rb +0 -22
  85. data/spec/bundler/dsl_spec.rb +0 -82
  86. data/spec/bundler/friendly_errors_spec.rb +0 -13
  87. data/spec/bundler/gem_helper_spec.rb +0 -226
  88. data/spec/bundler/psyched_yaml_spec.rb +0 -8
  89. data/spec/bundler/retry_spec.rb +0 -59
  90. data/spec/bundler/settings_spec.rb +0 -13
  91. data/spec/bundler/source/rubygems_spec.rb +0 -25
  92. data/spec/bundler/source_list_spec.rb +0 -361
  93. data/spec/cache/gems_spec.rb +0 -284
  94. data/spec/cache/git_spec.rb +0 -188
  95. data/spec/cache/path_spec.rb +0 -121
  96. data/spec/cache/platform_spec.rb +0 -57
  97. data/spec/commands/binstubs_spec.rb +0 -219
  98. data/spec/commands/check_spec.rb +0 -278
  99. data/spec/commands/clean_spec.rb +0 -592
  100. data/spec/commands/config_spec.rb +0 -263
  101. data/spec/commands/console_spec.rb +0 -76
  102. data/spec/commands/exec_spec.rb +0 -309
  103. data/spec/commands/help_spec.rb +0 -39
  104. data/spec/commands/init_spec.rb +0 -39
  105. data/spec/commands/inject_spec.rb +0 -78
  106. data/spec/commands/licenses_spec.rb +0 -18
  107. data/spec/commands/newgem_spec.rb +0 -428
  108. data/spec/commands/open_spec.rb +0 -68
  109. data/spec/commands/outdated_spec.rb +0 -156
  110. data/spec/commands/package_spec.rb +0 -114
  111. data/spec/commands/show_spec.rb +0 -125
  112. data/spec/install/binstubs_spec.rb +0 -24
  113. data/spec/install/bundler_spec.rb +0 -146
  114. data/spec/install/deploy_spec.rb +0 -250
  115. data/spec/install/gemfile/gemspec_spec.rb +0 -170
  116. data/spec/install/gemfile/git_spec.rb +0 -967
  117. data/spec/install/gemfile/path_spec.rb +0 -500
  118. data/spec/install/gemfile_spec.rb +0 -44
  119. data/spec/install/gems/c_ext_spec.rb +0 -48
  120. data/spec/install/gems/dependency_api_spec.rb +0 -652
  121. data/spec/install/gems/env_spec.rb +0 -107
  122. data/spec/install/gems/flex_spec.rb +0 -314
  123. data/spec/install/gems/groups_spec.rb +0 -308
  124. data/spec/install/gems/mirror_spec.rb +0 -39
  125. data/spec/install/gems/platform_spec.rb +0 -195
  126. data/spec/install/gems/post_install_spec.rb +0 -121
  127. data/spec/install/gems/resolving_spec.rb +0 -124
  128. data/spec/install/gems/simple_case_spec.rb +0 -377
  129. data/spec/install/gems/sources_spec.rb +0 -386
  130. data/spec/install/gems/standalone_spec.rb +0 -260
  131. data/spec/install/gems/sudo_spec.rb +0 -136
  132. data/spec/install/gems/win32_spec.rb +0 -26
  133. data/spec/install/gemspecs_spec.rb +0 -50
  134. data/spec/install/path_spec.rb +0 -150
  135. data/spec/install/post_bundle_message_spec.rb +0 -142
  136. data/spec/install/prereleases_spec.rb +0 -43
  137. data/spec/install/security_policy_spec.rb +0 -77
  138. data/spec/install/upgrade_spec.rb +0 -26
  139. data/spec/lock/git_spec.rb +0 -34
  140. data/spec/lock/lockfile_spec.rb +0 -924
  141. data/spec/other/bundle_ruby_spec.rb +0 -142
  142. data/spec/other/cli_dispatch_spec.rb +0 -21
  143. data/spec/other/ext_spec.rb +0 -60
  144. data/spec/other/platform_spec.rb +0 -1285
  145. data/spec/other/ssl_cert_spec.rb +0 -23
  146. data/spec/quality_spec.rb +0 -88
  147. data/spec/realworld/dependency_api_spec.rb +0 -60
  148. data/spec/realworld/edgecases_spec.rb +0 -212
  149. data/spec/realworld/parallel_spec.rb +0 -71
  150. data/spec/resolver/basic_spec.rb +0 -66
  151. data/spec/resolver/platform_spec.rb +0 -88
  152. data/spec/runtime/executable_spec.rb +0 -149
  153. data/spec/runtime/load_spec.rb +0 -107
  154. data/spec/runtime/platform_spec.rb +0 -90
  155. data/spec/runtime/require_spec.rb +0 -332
  156. data/spec/runtime/setup_spec.rb +0 -853
  157. data/spec/runtime/with_clean_env_spec.rb +0 -91
  158. data/spec/spec_helper.rb +0 -123
  159. data/spec/support/artifice/endopint_marshal_fail_basic_authentication.rb +0 -13
  160. data/spec/support/artifice/endpoint.rb +0 -71
  161. data/spec/support/artifice/endpoint_500.rb +0 -37
  162. data/spec/support/artifice/endpoint_api_forbidden.rb +0 -11
  163. data/spec/support/artifice/endpoint_api_missing.rb +0 -16
  164. data/spec/support/artifice/endpoint_basic_authentication.rb +0 -13
  165. data/spec/support/artifice/endpoint_creds_diff_host.rb +0 -38
  166. data/spec/support/artifice/endpoint_extra.rb +0 -31
  167. data/spec/support/artifice/endpoint_extra_api.rb +0 -32
  168. data/spec/support/artifice/endpoint_extra_missing.rb +0 -15
  169. data/spec/support/artifice/endpoint_fallback.rb +0 -17
  170. data/spec/support/artifice/endpoint_host_redirect.rb +0 -15
  171. data/spec/support/artifice/endpoint_marshal_fail.rb +0 -11
  172. data/spec/support/artifice/endpoint_redirect.rb +0 -15
  173. data/spec/support/artifice/endpoint_strict_basic_authentication.rb +0 -18
  174. data/spec/support/artifice/endpoint_timeout.rb +0 -13
  175. data/spec/support/builders.rb +0 -693
  176. data/spec/support/fakeweb/rack-1.0.0.marshal +0 -2
  177. data/spec/support/fakeweb/windows.rb +0 -23
  178. data/spec/support/hax.rb +0 -22
  179. data/spec/support/helpers.rb +0 -361
  180. data/spec/support/indexes.rb +0 -280
  181. data/spec/support/matchers.rb +0 -77
  182. data/spec/support/path.rb +0 -85
  183. data/spec/support/permissions.rb +0 -10
  184. data/spec/support/platforms.rb +0 -94
  185. data/spec/support/ruby_ext.rb +0 -20
  186. data/spec/support/rubygems_ext.rb +0 -39
  187. data/spec/support/streams.rb +0 -13
  188. data/spec/support/sudo.rb +0 -16
  189. data/spec/update/gems_spec.rb +0 -201
  190. data/spec/update/git_spec.rb +0 -283
  191. data/spec/update/path_spec.rb +0 -18
@@ -1,23 +0,0 @@
1
- require 'spec_helper'
2
- require 'bundler/ssl_certs/certificate_manager'
3
-
4
- describe "SSL Certificates", :rubygems_master do
5
- it "are up to date with Rubygems" do
6
- rubygems = File.expand_path("../../../tmp/rubygems", __FILE__)
7
- manager = Bundler::SSLCerts::CertificateManager.new(rubygems)
8
- expect(manager).to be_up_to_date
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
- end
@@ -1,88 +0,0 @@
1
- require "spec_helper"
2
-
3
- if defined?(Encoding) && Encoding.default_external != "UTF-8"
4
- Encoding.default_external = "UTF-8"
5
- end
6
-
7
- describe "The library itself" do
8
- def check_for_spec_defs_with_single_quotes(filename)
9
- failing_lines = []
10
-
11
- File.readlines(filename).each_with_index do |line,number|
12
- failing_lines << number + 1 if line =~ /^ *(describe|it|context) {1}'{1}/
13
- end
14
-
15
- unless failing_lines.empty?
16
- "#{filename} uses inconsistent single quotes on lines #{failing_lines.join(', ')}"
17
- end
18
- end
19
-
20
- def check_for_tab_characters(filename)
21
- failing_lines = []
22
- File.readlines(filename).each_with_index do |line,number|
23
- failing_lines << number + 1 if line =~ /\t/
24
- end
25
-
26
- unless failing_lines.empty?
27
- "#{filename} has tab characters on lines #{failing_lines.join(', ')}"
28
- end
29
- end
30
-
31
- def check_for_extra_spaces(filename)
32
- failing_lines = []
33
- File.readlines(filename).each_with_index do |line,number|
34
- next if line =~ /^\s+#.*\s+\n$/
35
- next if %w(LICENCE.md).include?(line)
36
- failing_lines << number + 1 if line =~ /\s+\n$/
37
- end
38
-
39
- unless failing_lines.empty?
40
- "#{filename} has spaces on the EOL on lines #{failing_lines.join(', ')}"
41
- end
42
- end
43
-
44
- RSpec::Matchers.define :be_well_formed do
45
- match do |actual|
46
- actual.empty?
47
- end
48
-
49
- failure_message do |actual|
50
- actual.join("\n")
51
- end
52
- end
53
-
54
- it "has no malformed whitespace" do
55
- exempt = /\.gitmodules|\.marshal|fixtures|vendor|ssl_certs|LICENSE/
56
- error_messages = []
57
- Dir.chdir(File.expand_path("../..", __FILE__)) do
58
- `git ls-files -z`.split("\x0").each do |filename|
59
- next if filename =~ exempt
60
- error_messages << check_for_tab_characters(filename)
61
- error_messages << check_for_extra_spaces(filename)
62
- end
63
- end
64
- expect(error_messages.compact).to be_well_formed
65
- end
66
-
67
- it "uses double-quotes consistently in specs" do
68
- included = /spec/
69
- error_messages = []
70
- Dir.chdir(File.expand_path("../", __FILE__)) do
71
- `git ls-files -z`.split("\x0").each do |filename|
72
- next unless filename =~ included
73
- error_messages << check_for_spec_defs_with_single_quotes(filename)
74
- end
75
- end
76
- expect(error_messages.compact).to be_well_formed
77
- end
78
-
79
- it "can still be built" do
80
- Dir.chdir(root) do
81
- `gem build bundler.gemspec`
82
- expect($?).to eq(0)
83
-
84
- # clean up the .gem generated
85
- system("rm bundler-#{Bundler::VERSION}.gem")
86
- end
87
- end
88
- end
@@ -1,60 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "gemcutter's dependency API", :realworld => true do
4
- def wait_for_server(port, seconds = 15)
5
- tries = 0
6
- TCPSocket.new("127.0.0.1", port)
7
- rescue => e
8
- raise(e) if tries > (seconds * 2)
9
- tries += 1
10
- sleep 0.5
11
- retry
12
- end
13
-
14
- context "when Gemcutter API takes too long to respond" do
15
- before do
16
- # need to hack, so we can require rack
17
- old_gem_home = ENV['GEM_HOME']
18
- ENV['GEM_HOME'] = Spec::Path.base_system_gems.to_s
19
- require 'rack'
20
- ENV['GEM_HOME'] = old_gem_home
21
-
22
- port = 21453
23
- port += 1 while TCPSocket.new("127.0.0.1", port) rescue false
24
- @server_uri = "http://127.0.0.1:#{port}"
25
-
26
- require File.expand_path('../../support/artifice/endpoint_timeout', __FILE__)
27
- require 'thread'
28
- @t = Thread.new {
29
- server = Rack::Server.start(:app => EndpointTimeout,
30
- :Host => '0.0.0.0',
31
- :Port => port,
32
- :server => 'webrick',
33
- :AccessLog => [])
34
- server.start
35
- }
36
- @t.run
37
-
38
- wait_for_server(port)
39
- end
40
-
41
- after do
42
- @t.kill
43
- end
44
-
45
- it "times out and falls back on the modern index" do
46
- gemfile <<-G
47
- source "#{@server_uri}"
48
- gem "rack"
49
-
50
- old_v, $VERBOSE = $VERBOSE, nil
51
- Bundler::Fetcher.api_timeout = 1
52
- $VERBOSE = old_v
53
- G
54
-
55
- bundle :install
56
- expect(out).to include("Fetching source index from #{@server_uri}/")
57
- should_be_installed "rack 1.0.0"
58
- end
59
- end
60
- end
@@ -1,212 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe "real world edgecases", :realworld => true do
4
- # there is no rbx-relative-require gem that will install on 1.9
5
- it "ignores extra gems with bad platforms", :ruby => "1.8" do
6
- install_gemfile <<-G
7
- source :rubygems
8
- gem "linecache", "0.46"
9
- G
10
- expect(err).to eq("")
11
- end
12
-
13
- # https://github.com/bundler/bundler/issues/1202
14
- it "bundle cache works with rubygems 1.3.7 and pre gems", :ruby => "1.8" do
15
- install_gemfile <<-G
16
- source :rubygems
17
- gem "rack", "1.3.0.beta2"
18
- gem "will_paginate", "3.0.pre2"
19
- G
20
- bundle :cache
21
- expect(out).not_to include("Removing outdated .gem files from vendor/cache")
22
- end
23
-
24
- # https://github.com/bundler/bundler/issues/1486
25
- # this is a hash collision that only manifests on 1.8.7
26
- it "finds the correct child versions", :ruby => "1.8" do
27
- install_gemfile <<-G
28
- source :rubygems
29
-
30
- gem 'i18n', '~> 0.6.0'
31
- gem 'activesupport', '~> 3.0'
32
- gem 'activerecord', '~> 3.0'
33
- gem 'builder', '~> 2.1.2'
34
- G
35
- expect(out).to include("activemodel 3.0.5")
36
- end
37
-
38
- it "resolves dependencies correctly", :ruby => "1.9" do
39
- install_gemfile <<-G
40
- source "https://rubygems.org"
41
-
42
- gem 'rails', '~> 3.0'
43
- gem 'capybara', '~> 2.2.0'
44
- G
45
- expect(out).to include("rails 3.2.21")
46
- expect(out).to include("capybara 2.2.1")
47
- end
48
-
49
- it "installs the latest version of gxapi_rails", :ruby => "1.9" do
50
- install_gemfile <<-G
51
- source "https://rubygems.org"
52
-
53
- gem "sass-rails"
54
- gem "rails", "~> 3"
55
- gem "gxapi_rails"
56
- G
57
- expect(out).to include("gxapi_rails 0.0.6")
58
- end
59
-
60
- it "installs the latest version of i18n" do
61
- install_gemfile <<-G
62
- source "https://rubygems.org"
63
-
64
- gem "i18n", "~> 0.6.0"
65
- gem "activesupport", "~> 3.0"
66
- gem "activerecord", "~> 3.0"
67
- gem "builder", "~> 2.1.2"
68
- G
69
- expect(out).to include("i18n 0.6.11")
70
- expect(out).to include("activesupport 3.0.5")
71
- end
72
-
73
- # https://github.com/bundler/bundler/issues/1500
74
- it "does not fail install because of gem plugins" do
75
- realworld_system_gems("open_gem --version 1.4.2", "rake --version 0.9.2")
76
- gemfile <<-G
77
- source :rubygems
78
-
79
- gem 'rack', '1.0.1'
80
- G
81
-
82
- bundle "install --path vendor/bundle", :expect_err => true
83
- expect(err).not_to include("Could not find rake")
84
- expect(err).to be_empty
85
- end
86
-
87
- it "checks out git repos when the lockfile is corrupted" do
88
- gemfile <<-G
89
- source :rubygems
90
-
91
- gem 'activerecord', :github => 'carlhuda/rails-bundler-test', :branch => 'master'
92
- gem 'activesupport', :github => 'carlhuda/rails-bundler-test', :branch => 'master'
93
- gem 'actionpack', :github => 'carlhuda/rails-bundler-test', :branch => 'master'
94
- G
95
-
96
- lockfile <<-L
97
- GIT
98
- remote: git://github.com/carlhuda/rails-bundler-test.git
99
- revision: 369e28a87419565f1940815219ea9200474589d4
100
- branch: master
101
- specs:
102
- actionpack (3.2.2)
103
- activemodel (= 3.2.2)
104
- activesupport (= 3.2.2)
105
- builder (~> 3.0.0)
106
- erubis (~> 2.7.0)
107
- journey (~> 1.0.1)
108
- rack (~> 1.4.0)
109
- rack-cache (~> 1.2)
110
- rack-test (~> 0.6.1)
111
- sprockets (~> 2.1.2)
112
- activemodel (3.2.2)
113
- activesupport (= 3.2.2)
114
- builder (~> 3.0.0)
115
- activerecord (3.2.2)
116
- activemodel (= 3.2.2)
117
- activesupport (= 3.2.2)
118
- arel (~> 3.0.2)
119
- tzinfo (~> 0.3.29)
120
- activesupport (3.2.2)
121
- i18n (~> 0.6)
122
- multi_json (~> 1.0)
123
-
124
- GIT
125
- remote: git://github.com/carlhuda/rails-bundler-test.git
126
- revision: 369e28a87419565f1940815219ea9200474589d4
127
- branch: master
128
- specs:
129
- actionpack (3.2.2)
130
- activemodel (= 3.2.2)
131
- activesupport (= 3.2.2)
132
- builder (~> 3.0.0)
133
- erubis (~> 2.7.0)
134
- journey (~> 1.0.1)
135
- rack (~> 1.4.0)
136
- rack-cache (~> 1.2)
137
- rack-test (~> 0.6.1)
138
- sprockets (~> 2.1.2)
139
- activemodel (3.2.2)
140
- activesupport (= 3.2.2)
141
- builder (~> 3.0.0)
142
- activerecord (3.2.2)
143
- activemodel (= 3.2.2)
144
- activesupport (= 3.2.2)
145
- arel (~> 3.0.2)
146
- tzinfo (~> 0.3.29)
147
- activesupport (3.2.2)
148
- i18n (~> 0.6)
149
- multi_json (~> 1.0)
150
-
151
- GIT
152
- remote: git://github.com/carlhuda/rails-bundler-test.git
153
- revision: 369e28a87419565f1940815219ea9200474589d4
154
- branch: master
155
- specs:
156
- actionpack (3.2.2)
157
- activemodel (= 3.2.2)
158
- activesupport (= 3.2.2)
159
- builder (~> 3.0.0)
160
- erubis (~> 2.7.0)
161
- journey (~> 1.0.1)
162
- rack (~> 1.4.0)
163
- rack-cache (~> 1.2)
164
- rack-test (~> 0.6.1)
165
- sprockets (~> 2.1.2)
166
- activemodel (3.2.2)
167
- activesupport (= 3.2.2)
168
- builder (~> 3.0.0)
169
- activerecord (3.2.2)
170
- activemodel (= 3.2.2)
171
- activesupport (= 3.2.2)
172
- arel (~> 3.0.2)
173
- tzinfo (~> 0.3.29)
174
- activesupport (3.2.2)
175
- i18n (~> 0.6)
176
- multi_json (~> 1.0)
177
-
178
- GEM
179
- remote: https://rubygems.org/
180
- specs:
181
- arel (3.0.2)
182
- builder (3.0.0)
183
- erubis (2.7.0)
184
- hike (1.2.1)
185
- i18n (0.6.0)
186
- journey (1.0.3)
187
- multi_json (1.1.0)
188
- rack (1.4.1)
189
- rack-cache (1.2)
190
- rack (>= 0.4)
191
- rack-test (0.6.1)
192
- rack (>= 1.0)
193
- sprockets (2.1.2)
194
- hike (~> 1.2)
195
- rack (~> 1.0)
196
- tilt (~> 1.1, != 1.3.0)
197
- tilt (1.3.3)
198
- tzinfo (0.3.32)
199
-
200
- PLATFORMS
201
- ruby
202
-
203
- DEPENDENCIES
204
- actionpack!
205
- activerecord!
206
- activesupport!
207
- L
208
-
209
- bundle :install, :exitstatus => true
210
- expect(exitstatus).to eq(0)
211
- end
212
- end
@@ -1,71 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe "parallel", :realworld => true do
4
- it "installs", :ruby => "1.8" do
5
- gemfile <<-G
6
- source "https://rubygems.org"
7
- gem 'activesupport', '~> 3.2.13'
8
- gem 'faker', '~> 1.1.2'
9
- gem 'i18n', '~> 0.6.0' # Because 1.7+ requires Ruby 1.9.3+
10
- G
11
-
12
- bundle :install, :jobs => 4, :env => {"DEBUG" => "1"}
13
- expect(out).to match(/[1-3]: /)
14
-
15
- bundle "show activesupport"
16
- expect(out).to match(/activesupport/)
17
-
18
- bundle "show faker"
19
- expect(out).to match(/faker/)
20
-
21
- bundle "config jobs"
22
- expect(out).to match(/: "4"/)
23
- end
24
-
25
- it "installs even with circular dependency", :ruby => "1.9" do
26
- gemfile <<-G
27
- source 'https://rubygems.org'
28
- gem 'activesupport', '~> 3.2.13'
29
- gem 'mongoid_auto_increment', "0.1.1"
30
- G
31
-
32
- bundle :install, :jobs => 4, :env => {"DEBUG" => "1"}
33
- expect(out).to match(/[1-3]: /)
34
-
35
- bundle "show activesupport"
36
- expect(out).to match(/activesupport/)
37
-
38
- bundle "show mongoid_auto_increment"
39
- expect(out).to match(%r{gems/mongoid_auto_increment})
40
-
41
- bundle "config jobs"
42
- expect(out).to match(/: "4"/)
43
- end
44
-
45
- it "updates" do
46
- install_gemfile <<-G
47
- source "https://rubygems.org"
48
- gem 'activesupport', '3.2.12'
49
- gem 'faker', '~> 1.1.2'
50
- G
51
-
52
- gemfile <<-G
53
- source "https://rubygems.org"
54
- gem 'activesupport', '~> 3.2.12'
55
- gem 'faker', '~> 1.1.2'
56
- gem 'i18n', '~> 0.6.0' # Because 1.7+ requires Ruby 1.9.3+
57
- G
58
-
59
- bundle :update, :jobs => 4, :env => {"DEBUG" => "1"}
60
- expect(out).to match(/[1-3]: /)
61
-
62
- bundle "show activesupport"
63
- expect(out).to match(/activesupport-3\.2\.\d+/)
64
-
65
- bundle "show faker"
66
- expect(out).to match(/faker/)
67
-
68
- bundle "config jobs"
69
- expect(out).to match(/: "4"/)
70
- end
71
- end