bundler 1.3.0.pre → 1.3.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.

@@ -29,6 +29,15 @@ describe "bundle show" do
29
29
  expect(out).to eq(default_bundle_path('gems', 'rails-2.3.2').to_s)
30
30
  end
31
31
 
32
+ it "warns if path no longer exists on disk" do
33
+ FileUtils.rm_rf("#{system_gem_path}/gems/rails-2.3.2")
34
+
35
+ bundle "show rails"
36
+
37
+ expect(out).to match('Warning: The following path to rails no longer exists')
38
+ expect(out).to match(default_bundle_path('gems', 'rails-2.3.2').to_s)
39
+ end
40
+
32
41
  it "prints the path to the running bundler" do
33
42
  bundle "show bundler"
34
43
  expect(out).to eq(File.expand_path('../../../', __FILE__))
@@ -158,6 +158,28 @@ describe "Bundler.require" do
158
158
 
159
159
  expect(err).to eq("ZOMG LOAD ERROR")
160
160
  end
161
+
162
+ it "doesn't swallow the error when the library has an unrelated error" do
163
+ build_lib "load-fuuu", "1.0.0" do |s|
164
+ s.write "lib/load-fuuu.rb", "raise LoadError.new(\"cannot load such file -- load-bar\")"
165
+ end
166
+
167
+ gemfile <<-G
168
+ path "#{lib_path}"
169
+ gem "load-fuuu"
170
+ G
171
+
172
+ cmd = <<-RUBY
173
+ begin
174
+ Bundler.require
175
+ rescue LoadError => e
176
+ $stderr.puts "ZOMG LOAD ERROR: \#{e.message}"
177
+ end
178
+ RUBY
179
+ run(cmd, :expect_err => true)
180
+
181
+ expect(err).to eq("ZOMG LOAD ERROR: cannot load such file -- load-bar")
182
+ end
161
183
  end
162
184
 
163
185
  describe "using bundle exec" do
@@ -839,61 +839,4 @@ describe "Bundler.setup" do
839
839
  end
840
840
  end
841
841
 
842
- context "when using Syck as YAML::Engine", :ruby => "1.9" do
843
- it "should try to eval gemspec after YAML load throws ArgumentError" do
844
- orig_yamler = YAML::ENGINE.yamler
845
- YAML::ENGINE.yamler = 'syck'
846
-
847
- spec_file = tmp.join('temp_gemspec_to_be_loaded_with_yaml_syck')
848
- File.open(spec_file, 'w') do |file|
849
- file << strip_whitespace(<<-S)
850
- --- # -*- encoding: utf-8 -*-
851
- spec = Gem::Specification.new do |s|
852
- s.name = 'test'
853
- s.summary = %q{TODO: Write a gem summary}
854
- s.description = %q{TODO: Write a gem description}
855
- s.add_dependency 'rack', '= 1.0.1'
856
- s.add_development_dependency 'rspec', '1.2'
857
- end
858
- S
859
- end
860
-
861
- # <ArgumentError: syntax error on line 4, col 26: ` s.description = %q{TODO: Write a gem description}'>
862
- # should be thrown here, tried to be evaled and then fail with NoMethodError
863
- expect {
864
- Bundler.load_gemspec_uncached(tmp('temp_gemspec_to_be_loaded_with_yaml_syck'))
865
- }.to raise_error(NoMethodError)
866
-
867
- YAML::ENGINE.yamler = orig_yamler
868
- end
869
- end
870
-
871
- context "when using Psych as YAML::Engine", :ruby => "1.9" do
872
- it "should try to eval gemspec after YAML load throws Psych::SyntaxError" do
873
- orig_yamler = YAML::ENGINE.yamler
874
- YAML::ENGINE.yamler = 'psych'
875
-
876
- spec_file = tmp.join('temp_gemspec_to_be_loaded_with_yaml_psych')
877
- File.open(spec_file, 'w') do |file|
878
- file << strip_whitespace(<<-S)
879
- --- # -*- encoding: utf-8 -*-
880
- Gem::Specification.new do |s|
881
- s.name = 'test'
882
- s.summary = "TODO: Write a gem summary"
883
- s.description = "TODO: Write a gem description"
884
- s.add_dependency 'rack', '= 1.0.1'
885
- s.add_development_dependency 'rspec', '1.2'
886
- end
887
- S
888
- end
889
-
890
- # <Psych::SyntaxError: couldn't parse YAML at line 4 column 23>
891
- # should be thrown here, tried to be evaled and then fail with NoMethodError
892
- expect {
893
- Bundler.load_gemspec_uncached(tmp('temp_gemspec_to_be_loaded_with_yaml_psych'))
894
- }.to raise_error(NoMethodError)
895
-
896
- YAML::ENGINE.yamler = orig_yamler
897
- end
898
- end
899
842
  end
@@ -547,7 +547,7 @@ module Spec
547
547
  _default_files.keys.each do |path|
548
548
  _default_files[path] << "\n#{Builders.constantize(name)}_PREV_REF = '#{current_ref}'"
549
549
  end
550
- super(options.merge(:path => libpath))
550
+ super(options.merge(:path => libpath, :gemspec => false))
551
551
  `git add *`
552
552
  `git commit -m "BUMP"`
553
553
  end
@@ -12,8 +12,6 @@ module Spec
12
12
  end
13
13
  FileUtils.mkdir_p(tmp)
14
14
  FileUtils.mkdir_p(home)
15
- Gem.sources = ["file://#{gem_repo1}/"]
16
- # Gem.configuration.write
17
15
  end
18
16
 
19
17
  attr_reader :out, :err, :exitstatus
metadata CHANGED
@@ -1,13 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ hash: -3497787290
5
+ prerelease: 6
5
6
  segments:
6
7
  - 1
7
8
  - 3
8
9
  - 0
9
10
  - pre
10
- version: 1.3.0.pre
11
+ - 2
12
+ version: 1.3.0.pre.2
11
13
  platform: ruby
12
14
  authors:
13
15
  - "Andr\xC3\xA9 Arko"
@@ -18,16 +20,17 @@ autorequire:
18
20
  bindir: bin
19
21
  cert_chain: []
20
22
 
21
- date: 2012-11-30 00:00:00 -08:00
22
- default_executable:
23
+ date: 2012-12-10 00:00:00 Z
23
24
  dependencies:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: ronn
26
27
  prerelease: false
27
28
  requirement: &id001 !ruby/object:Gem::Requirement
29
+ none: false
28
30
  requirements:
29
31
  - - ">="
30
32
  - !ruby/object:Gem::Version
33
+ hash: 3
31
34
  segments:
32
35
  - 0
33
36
  version: "0"
@@ -37,9 +40,11 @@ dependencies:
37
40
  name: rspec
38
41
  prerelease: false
39
42
  requirement: &id002 !ruby/object:Gem::Requirement
43
+ none: false
40
44
  requirements:
41
45
  - - ~>
42
46
  - !ruby/object:Gem::Version
47
+ hash: 21
43
48
  segments:
44
49
  - 2
45
50
  - 11
@@ -57,9 +62,11 @@ extra_rdoc_files: []
57
62
 
58
63
  files:
59
64
  - .gitignore
65
+ - .rspec
60
66
  - .travis.yml
61
67
  - CHANGELOG.md
62
68
  - CONTRIBUTE.md
69
+ - CONTRIBUTING.md
63
70
  - ISSUES.md
64
71
  - LICENSE
65
72
  - README.md
@@ -258,23 +265,22 @@ files:
258
265
  - spec/update/gems_spec.rb
259
266
  - spec/update/git_spec.rb
260
267
  - spec/update/source_spec.rb
261
- - lib/bundler/man/bundle
262
- - lib/bundler/man/bundle-config
263
- - lib/bundler/man/bundle-config.txt
264
268
  - lib/bundler/man/bundle-exec
265
- - lib/bundler/man/bundle-exec.txt
269
+ - lib/bundler/man/bundle
266
270
  - lib/bundler/man/bundle-install
267
- - lib/bundler/man/bundle-install.txt
268
- - lib/bundler/man/bundle-package
269
- - lib/bundler/man/bundle-package.txt
271
+ - lib/bundler/man/gemfile.5
270
272
  - lib/bundler/man/bundle-platform
271
- - lib/bundler/man/bundle-platform.txt
273
+ - lib/bundler/man/bundle-package
272
274
  - lib/bundler/man/bundle-update
275
+ - lib/bundler/man/bundle-exec.txt
276
+ - lib/bundler/man/gemfile.5.txt
273
277
  - lib/bundler/man/bundle-update.txt
278
+ - lib/bundler/man/bundle-config
279
+ - lib/bundler/man/bundle-platform.txt
280
+ - lib/bundler/man/bundle-config.txt
274
281
  - lib/bundler/man/bundle.txt
275
- - lib/bundler/man/gemfile.5
276
- - lib/bundler/man/gemfile.5.txt
277
- has_rdoc: true
282
+ - lib/bundler/man/bundle-package.txt
283
+ - lib/bundler/man/bundle-install.txt
278
284
  homepage: http://gembundler.com
279
285
  licenses:
280
286
  - MIT
@@ -284,18 +290,22 @@ rdoc_options: []
284
290
  require_paths:
285
291
  - lib
286
292
  required_ruby_version: !ruby/object:Gem::Requirement
293
+ none: false
287
294
  requirements:
288
295
  - - ">="
289
296
  - !ruby/object:Gem::Version
297
+ hash: 57
290
298
  segments:
291
299
  - 1
292
300
  - 8
293
301
  - 7
294
302
  version: 1.8.7
295
303
  required_rubygems_version: !ruby/object:Gem::Requirement
304
+ none: false
296
305
  requirements:
297
306
  - - ">="
298
307
  - !ruby/object:Gem::Version
308
+ hash: 23
299
309
  segments:
300
310
  - 1
301
311
  - 3
@@ -304,92 +314,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
314
  requirements: []
305
315
 
306
316
  rubyforge_project: bundler
307
- rubygems_version: 1.3.6
317
+ rubygems_version: 1.8.24
308
318
  signing_key:
309
319
  specification_version: 3
310
320
  summary: The best way to manage your application's dependencies
311
- test_files:
312
- - spec/bundler/bundler_spec.rb
313
- - spec/bundler/cli_rspec.rb
314
- - spec/bundler/definition_spec.rb
315
- - spec/bundler/dsl_spec.rb
316
- - spec/bundler/gem_helper_spec.rb
317
- - spec/bundler/psyched_yaml_spec.rb
318
- - spec/bundler/source_spec.rb
319
- - spec/cache/gems_spec.rb
320
- - spec/cache/git_spec.rb
321
- - spec/cache/path_spec.rb
322
- - spec/cache/platform_spec.rb
323
- - spec/install/deploy_spec.rb
324
- - spec/install/gems/c_ext_spec.rb
325
- - spec/install/gems/dependency_api_spec.rb
326
- - spec/install/gems/env_spec.rb
327
- - spec/install/gems/flex_spec.rb
328
- - spec/install/gems/groups_spec.rb
329
- - spec/install/gems/packed_spec.rb
330
- - spec/install/gems/platform_spec.rb
331
- - spec/install/gems/post_install_spec.rb
332
- - spec/install/gems/resolving_spec.rb
333
- - spec/install/gems/simple_case_spec.rb
334
- - spec/install/gems/standalone_spec.rb
335
- - spec/install/gems/sudo_spec.rb
336
- - spec/install/gems/win32_spec.rb
337
- - spec/install/gemspec_spec.rb
338
- - spec/install/git_spec.rb
339
- - spec/install/invalid_spec.rb
340
- - spec/install/path_spec.rb
341
- - spec/install/upgrade_spec.rb
342
- - spec/integration/inject.rb
343
- - spec/lock/git_spec.rb
344
- - spec/lock/lockfile_spec.rb
345
- - spec/other/check_spec.rb
346
- - spec/other/clean_spec.rb
347
- - spec/other/config_spec.rb
348
- - spec/other/console_spec.rb
349
- - spec/other/exec_spec.rb
350
- - spec/other/ext_spec.rb
351
- - spec/other/help_spec.rb
352
- - spec/other/init_spec.rb
353
- - spec/other/newgem_spec.rb
354
- - spec/other/open_spec.rb
355
- - spec/other/outdated_spec.rb
356
- - spec/other/platform_spec.rb
357
- - spec/other/show_spec.rb
358
- - spec/quality_spec.rb
359
- - spec/realworld/dependency_api_spec.rb
360
- - spec/realworld/edgecases_spec.rb
361
- - spec/resolver/basic_spec.rb
362
- - spec/resolver/platform_spec.rb
363
- - spec/runtime/executable_spec.rb
364
- - spec/runtime/load_spec.rb
365
- - spec/runtime/platform_spec.rb
366
- - spec/runtime/require_spec.rb
367
- - spec/runtime/setup_spec.rb
368
- - spec/runtime/with_clean_env_spec.rb
369
- - spec/spec_helper.rb
370
- - spec/support/artifice/endopint_marshal_fail_basic_authentication.rb
371
- - spec/support/artifice/endpoint.rb
372
- - spec/support/artifice/endpoint_500.rb
373
- - spec/support/artifice/endpoint_api_missing.rb
374
- - spec/support/artifice/endpoint_basic_authentication.rb
375
- - spec/support/artifice/endpoint_extra.rb
376
- - spec/support/artifice/endpoint_extra_missing.rb
377
- - spec/support/artifice/endpoint_fallback.rb
378
- - spec/support/artifice/endpoint_marshal_fail.rb
379
- - spec/support/artifice/endpoint_redirect.rb
380
- - spec/support/artifice/endpoint_timeout.rb
381
- - spec/support/builders.rb
382
- - spec/support/fakeweb/rack-1.0.0.marshal
383
- - spec/support/fakeweb/windows.rb
384
- - spec/support/helpers.rb
385
- - spec/support/indexes.rb
386
- - spec/support/matchers.rb
387
- - spec/support/path.rb
388
- - spec/support/platforms.rb
389
- - spec/support/ruby_ext.rb
390
- - spec/support/rubygems_ext.rb
391
- - spec/support/rubygems_hax/platform.rb
392
- - spec/support/sudo.rb
393
- - spec/update/gems_spec.rb
394
- - spec/update/git_spec.rb
395
- - spec/update/source_spec.rb
321
+ test_files: []
322
+