bundler 1.1.5 → 1.2.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 (46) hide show
  1. data/.travis.yml +10 -7
  2. data/CHANGELOG.md +27 -8
  3. data/ISSUES.md +20 -16
  4. data/README.md +2 -0
  5. data/Rakefile +6 -5
  6. data/bin/bundle +5 -3
  7. data/lib/bundler.rb +33 -13
  8. data/lib/bundler/capistrano.rb +1 -1
  9. data/lib/bundler/cli.rb +108 -20
  10. data/lib/bundler/definition.rb +76 -20
  11. data/lib/bundler/deployment.rb +4 -4
  12. data/lib/bundler/dsl.rb +26 -25
  13. data/lib/bundler/fetcher.rb +4 -13
  14. data/lib/bundler/gem_helper.rb +17 -5
  15. data/lib/bundler/graph.rb +10 -10
  16. data/lib/bundler/installer.rb +34 -2
  17. data/lib/bundler/ruby_version.rb +94 -0
  18. data/lib/bundler/runtime.rb +1 -1
  19. data/lib/bundler/settings.rb +18 -13
  20. data/lib/bundler/source.rb +316 -150
  21. data/lib/bundler/templates/newgem/README.md.tt +1 -1
  22. data/lib/bundler/vendor/thor/parser/options.rb +0 -3
  23. data/lib/bundler/vendored_thor.rb +1 -2
  24. data/lib/bundler/version.rb +1 -1
  25. data/man/bundle-config.ronn +8 -0
  26. data/man/bundle-install.ronn +6 -0
  27. data/man/bundle-package.ronn +3 -3
  28. data/man/gemfile.5.ronn +16 -3
  29. data/spec/bundler/dsl_spec.rb +23 -26
  30. data/spec/bundler/gem_helper_spec.rb +31 -0
  31. data/spec/cache/gems_spec.rb +10 -1
  32. data/spec/cache/git_spec.rb +114 -2
  33. data/spec/cache/path_spec.rb +85 -9
  34. data/spec/install/gems/dependency_api_spec.rb +21 -42
  35. data/spec/install/git_spec.rb +149 -1
  36. data/spec/lock/lockfile_spec.rb +1 -1
  37. data/spec/other/config_spec.rb +120 -22
  38. data/spec/other/newgem_spec.rb +2 -0
  39. data/spec/other/platform_spec.rb +881 -0
  40. data/spec/support/helpers.rb +12 -1
  41. data/spec/support/platforms.rb +33 -0
  42. data/spec/support/rubygems_hax/platform.rb +12 -1
  43. data/spec/update/gems_spec.rb +12 -0
  44. metadata +9 -8
  45. data/lib/bundler/vendored_persistent.rb +0 -3
  46. data/spec/install/deprecated_spec.rb +0 -36
@@ -60,7 +60,7 @@ module Spec
60
60
  def bundle(cmd, options = {})
61
61
  expect_err = options.delete(:expect_err)
62
62
  exitstatus = options.delete(:exitstatus)
63
- options["no-color"] = true unless options.key?("no-color") || cmd.to_s[0..3] == "exec"
63
+ options["no-color"] = true unless options.key?("no-color") || %w(exec conf).include?(cmd.to_s[0..3])
64
64
 
65
65
  bundle_bin = File.expand_path('../../../bin/bundle', __FILE__)
66
66
 
@@ -292,6 +292,17 @@ module Spec
292
292
  ENV['BUNDLER_SPEC_PLATFORM'] = old if block_given?
293
293
  end
294
294
 
295
+ def simulate_ruby_engine(engine, version = "1.6.0")
296
+ return if engine == local_ruby_engine
297
+
298
+ old, ENV['BUNDLER_SPEC_RUBY_ENGINE'] = ENV['BUNDLER_SPEC_RUBY_ENGINE'], engine
299
+ old_version, ENV['BUNDLER_SPEC_RUBY_ENGINE_VERSION'] = ENV['BUNDLER_SPEC_RUBY_ENGINE_VERSION'], version
300
+ yield if block_given?
301
+ ensure
302
+ ENV['BUNDLER_SPEC_RUBY_ENGINE'] = old if block_given?
303
+ ENV['BUNDLER_SPEC_RUBY_ENGINE_VERSION'] = old_version if block_given?
304
+ end
305
+
295
306
  def simulate_bundler_version(version)
296
307
  old, ENV['BUNDLER_SPEC_VERSION'] = ENV['BUNDLER_SPEC_VERSION'], version.to_s
297
308
  yield if block_given?
@@ -49,5 +49,38 @@ module Spec
49
49
  def not_local_tag
50
50
  [:ruby, :jruby].find { |tag| tag != local_tag }
51
51
  end
52
+
53
+ def local_ruby_engine
54
+ ENV["BUNDLER_SPEC_RUBY_ENGINE"] || (defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby")
55
+ end
56
+
57
+ def local_engine_version
58
+ return ENV["BUNDLER_SPEC_RUBY_ENGINE_VERSION"] if ENV["BUNDLER_SPEC_RUBY_ENGINE_VERSION"]
59
+
60
+ case local_ruby_engine
61
+ when "ruby"
62
+ RUBY_VERSION
63
+ when "rbx"
64
+ Rubinius::VERSION
65
+ when "jruby"
66
+ JRUBY_VERSION
67
+ else
68
+ raise BundlerError, "That RUBY_ENGINE is not recognized"
69
+ nil
70
+ end
71
+ end
72
+
73
+ def not_local_engine_version
74
+ case not_local_tag
75
+ when :ruby
76
+ not_local_ruby_version
77
+ when :jruby
78
+ "1.6.1"
79
+ end
80
+ end
81
+
82
+ def not_local_ruby_version
83
+ "1.12"
84
+ end
52
85
  end
53
86
  end
@@ -8,4 +8,15 @@ if ENV['BUNDLER_SPEC_VERSION']
8
8
  module Bundler
9
9
  VERSION = ENV['BUNDLER_SPEC_VERSION'].dup
10
10
  end
11
- end
11
+ end
12
+
13
+ class Object
14
+ if ENV['BUNDLER_SPEC_RUBY_ENGINE']
15
+ remove_const :RUBY_ENGINE if defined?(RUBY_ENGINE)
16
+ RUBY_ENGINE = ENV['BUNDLER_SPEC_RUBY_ENGINE']
17
+
18
+ if RUBY_ENGINE == "jruby"
19
+ JRUBY_VERSION = ENV["BUNDLER_SPEC_RUBY_ENGINE_VERSION"]
20
+ end
21
+ end
22
+ end
@@ -33,6 +33,18 @@ describe "bundle update" do
33
33
  end
34
34
  end
35
35
 
36
+ describe "--quiet argument" do
37
+ it 'shows UI messages without --quiet argument' do
38
+ bundle "update"
39
+ out.should include("Fetching source")
40
+ end
41
+
42
+ it 'does not show UI messages with --quiet argument' do
43
+ bundle "update --quiet"
44
+ out.should_not include("Fetching source")
45
+ end
46
+ end
47
+
36
48
  describe "with a top level dependency" do
37
49
  it "unlocks all child dependencies that are unrelated to other locked dependencies" do
38
50
  update_repo2 do
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease:
4
+ hash: 481461827
5
+ prerelease: 6
6
6
  segments:
7
7
  - 1
8
- - 1
9
- - 5
10
- version: 1.1.5
8
+ - 2
9
+ - 0
10
+ - pre
11
+ version: 1.2.0.pre
11
12
  platform: ruby
12
13
  authors:
13
14
  - "Andr\xC3\xA9 Arko"
@@ -18,7 +19,7 @@ autorequire:
18
19
  bindir: bin
19
20
  cert_chain: []
20
21
 
21
- date: 2012-07-17 00:00:00 Z
22
+ date: 2012-05-04 00:00:00 Z
22
23
  dependencies:
23
24
  - !ruby/object:Gem::Dependency
24
25
  name: ronn
@@ -93,6 +94,7 @@ files:
93
94
  - lib/bundler/psyched_yaml.rb
94
95
  - lib/bundler/remote_specification.rb
95
96
  - lib/bundler/resolver.rb
97
+ - lib/bundler/ruby_version.rb
96
98
  - lib/bundler/rubygems_ext.rb
97
99
  - lib/bundler/rubygems_integration.rb
98
100
  - lib/bundler/runtime.rb
@@ -145,7 +147,6 @@ files:
145
147
  - lib/bundler/vendor/thor/task.rb
146
148
  - lib/bundler/vendor/thor/util.rb
147
149
  - lib/bundler/vendor/thor/version.rb
148
- - lib/bundler/vendored_persistent.rb
149
150
  - lib/bundler/vendored_thor.rb
150
151
  - lib/bundler/version.rb
151
152
  - lib/bundler/vlad.rb
@@ -165,7 +166,6 @@ files:
165
166
  - spec/cache/path_spec.rb
166
167
  - spec/cache/platform_spec.rb
167
168
  - spec/install/deploy_spec.rb
168
- - spec/install/deprecated_spec.rb
169
169
  - spec/install/gems/c_ext_spec.rb
170
170
  - spec/install/gems/dependency_api_spec.rb
171
171
  - spec/install/gems/env_spec.rb
@@ -197,6 +197,7 @@ files:
197
197
  - spec/other/newgem_spec.rb
198
198
  - spec/other/open_spec.rb
199
199
  - spec/other/outdated_spec.rb
200
+ - spec/other/platform_spec.rb
200
201
  - spec/other/show_spec.rb
201
202
  - spec/quality_spec.rb
202
203
  - spec/realworld/edgecases_spec.rb
@@ -1,3 +0,0 @@
1
- vendor = File.expand_path('../vendor', __FILE__)
2
- $:.unshift(vendor) unless $:.include?(vendor)
3
- require 'net/http/persistent'
@@ -1,36 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe "bundle install with deprecated features" do
4
- before :each do
5
- in_app_root
6
- end
7
-
8
- %w().each do |deprecated|
9
-
10
- it "reports that #{deprecated} is deprecated" do
11
- gemfile <<-G
12
- #{deprecated}
13
- G
14
-
15
- bundle :install
16
- out.should =~ /'#{deprecated}' has been removed/
17
- out.should =~ /See the README for more information/
18
- end
19
-
20
- end
21
-
22
-
23
- %w().each do |deprecated|
24
-
25
- it "reports that :#{deprecated} is deprecated" do
26
- gemfile <<-G
27
- gem "rack", :#{deprecated} => true
28
- G
29
-
30
- bundle :install
31
- out.should =~ /Please replace :#{deprecated}|The :#{deprecated} option is no longer supported/
32
- end
33
-
34
- end
35
-
36
- end