bundler 1.0.20.rc → 1.0.20

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.

@@ -1,3 +1,14 @@
1
+ ## 1.0.20 (September 27, 2011)
2
+
3
+ Features:
4
+
5
+ - Add platform :maglev (@timfel, #1444)
6
+
7
+ Bugfixes:
8
+
9
+ - Ensure yaml is required even if psych is found
10
+ - Handle directory names that contain invalid regex characters
11
+
1
12
  ## 1.0.20.rc (September 18, 2011)
2
13
 
3
14
  Features:
@@ -4,8 +4,9 @@ require 'pathname'
4
4
 
5
5
  begin
6
6
  # Pull in Psych if we can, but not if Syck is already loaded
7
- require 'psych' unless defined?(YAML)
7
+ require 'psych' unless defined?(::YAML)
8
8
  rescue LoadError
9
+ ensure
9
10
  require 'yaml'
10
11
  end
11
12
 
@@ -220,7 +220,8 @@ module Bundler
220
220
  Bundler.load.cache if Bundler.root.join("vendor/cache").exist? && !options["no-cache"]
221
221
 
222
222
  if Bundler.settings[:path]
223
- relative_path = File.expand_path(Bundler.settings[:path]).sub(/^#{File.expand_path('.')}/, '.')
223
+ absolute_path = File.expand_path(Bundler.settings[:path])
224
+ relative_path = absolute_path.sub(File.expand_path('.'), '.')
224
225
  Bundler.ui.confirm "Your bundle is complete! " +
225
226
  "It was installed into #{relative_path}"
226
227
  else
@@ -79,7 +79,7 @@ module Bundler
79
79
  private
80
80
 
81
81
  def ruby?
82
- !mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx")
82
+ !mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev")
83
83
  end
84
84
 
85
85
  def ruby_18?
@@ -110,6 +110,10 @@ module Bundler
110
110
  defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
111
111
  end
112
112
 
113
+ def maglev?
114
+ defined?(RUBY_ENGINE) && RUBY_ENGINE == "maglev"
115
+ end
116
+
113
117
  def mswin?
114
118
  Bundler::WINDOWS
115
119
  end
@@ -179,15 +179,15 @@ module Bundler
179
179
  activated[a.name] ? 0 : gems_size(a) ]
180
180
  end
181
181
 
182
- debug { "Activated:\n" + activated.values.map { |a| " #{a.name} (#{a.version})" }.join("\n") }
183
- debug { "Requirements:\n" + reqs.map { |r| " #{r.name} (#{r.requirement})"}.join("\n") }
182
+ debug { "Activated:\n" + activated.values.map {|a| " #{a}" }.join("\n") }
183
+ debug { "Requirements:\n" + reqs.map {|r| " #{r}"}.join("\n") }
184
184
 
185
185
  activated = activated.dup
186
186
 
187
187
  # Pull off the first requirement so that we can resolve it
188
188
  current = reqs.shift
189
189
 
190
- debug { "Attempting:\n #{current.name} (#{current.requirement})"}
190
+ debug { "Attempting:\n #{current}"}
191
191
 
192
192
  # Check if the gem has already been activated, if it has, we will make sure
193
193
  # that the currently activated gem satisfies the requirement.
@@ -186,7 +186,7 @@ module Bundler
186
186
  end
187
187
 
188
188
  def to_s
189
- @dep.to_s
189
+ "#{name} (#{requirement}) #{__platform}"
190
190
  end
191
191
 
192
192
  private
@@ -21,7 +21,7 @@ module Bundler
21
21
 
22
22
  if activated_spec = Bundler.rubygems.loaded_specs(spec.name) and activated_spec.version != spec.version
23
23
  e = Gem::LoadError.new "You have already activated #{activated_spec.name} #{activated_spec.version}, " \
24
- "but your Gemfile requires #{spec.name} #{spec.version}. Consider using bundle exec."
24
+ "but your Gemfile requires #{spec.name} #{spec.version}. Using bundle exec may solve this."
25
25
  e.name = spec.name
26
26
  if e.respond_to?(:requirement=)
27
27
  e.requirement = Gem::Requirement.new(spec.version.to_s)
@@ -2,5 +2,5 @@ module Bundler
2
2
  # We're doing this because we might write tests that deal
3
3
  # with other versions of bundler and we are unsure how to
4
4
  # handle this better.
5
- VERSION = "1.0.20.rc" unless defined?(::Bundler::VERSION)
5
+ VERSION = "1.0.20" unless defined?(::Bundler::VERSION)
6
6
  end
@@ -199,8 +199,8 @@ describe "bundle flex_install" do
199
199
  rack (0.9.1)
200
200
 
201
201
  In Gemfile:
202
- rack-obama (= 2.0) depends on
203
- rack (= 1.2)
202
+ rack-obama (= 2.0) ruby depends on
203
+ rack (= 1.2) ruby
204
204
 
205
205
  Running `bundle update` will rebuild your snapshot from scratch, using only
206
206
  the gems in your Gemfile, which may resolve the conflict.
@@ -471,6 +471,18 @@ describe "bundle install with gem sources" do
471
471
  out.should include "The disable-shared-gem option is no longer available"
472
472
  end
473
473
 
474
+ it "handles paths with regex characters in them" do
475
+ dir = bundled_app("bun++dle")
476
+ dir.mkpath
477
+
478
+ Dir.chdir(dir) do
479
+ bundle "install --path vendor/bundle"
480
+ out.should include("installed into ./vendor/bundle")
481
+ end
482
+
483
+ dir.rmtree
484
+ end
485
+
474
486
  ["install vendor/bundle", "install --path vendor/bundle"].each do |install|
475
487
  if install == "install vendor/bundle"
476
488
  it "displays the deprecation warning for path as an argument to install" do
@@ -624,7 +636,7 @@ describe "bundle install with gem sources" do
624
636
  Fetching source index for file:#{gem_repo2}/
625
637
  Bundler could not find compatible versions for gem "bundler":
626
638
  In Gemfile:
627
- bundler (= 0.9.2)
639
+ bundler (= 0.9.2) ruby
628
640
 
629
641
  Current Bundler version:
630
642
  bundler (#{Bundler::VERSION})
@@ -681,10 +693,10 @@ describe "bundle install with gem sources" do
681
693
  Fetching source index for file:#{gem_repo2}/
682
694
  Bundler could not find compatible versions for gem "activesupport":
683
695
  In Gemfile:
684
- activemerchant depends on
685
- activesupport (>= 2.0.0)
696
+ activemerchant (>= 0) ruby depends on
697
+ activesupport (>= 2.0.0) ruby
686
698
 
687
- rails_fail depends on
699
+ rails_fail (>= 0) ruby depends on
688
700
  activesupport (1.2.3)
689
701
  E
690
702
  out.should == nice_error
@@ -701,8 +713,8 @@ describe "bundle install with gem sources" do
701
713
  Fetching source index for file:#{gem_repo2}/
702
714
  Bundler could not find compatible versions for gem "activesupport":
703
715
  In Gemfile:
704
- rails_fail depends on
705
- activesupport (= 1.2.3)
716
+ rails_fail (>= 0) ruby depends on
717
+ activesupport (= 1.2.3) ruby
706
718
 
707
719
  activesupport (2.3.5)
708
720
  E
@@ -403,7 +403,7 @@ describe "bundle install with git sources" do
403
403
  gem "has_submodule"
404
404
  end
405
405
  G
406
- out.should =~ /could not find gem 'submodule'/i
406
+ out.should =~ /could not find gem 'submodule/i
407
407
 
408
408
  should_not_be_installed "has_submodule 1.0", :expect_err => true
409
409
  end
@@ -450,7 +450,7 @@ describe "Bundler.setup" do
450
450
  end
451
451
  R
452
452
 
453
- out.should == "You have already activated thin 1.1, but your Gemfile requires thin 1.0. Consider using bundle exec."
453
+ out.should == "You have already activated thin 1.1, but your Gemfile requires thin 1.0. Using bundle exec may solve this."
454
454
  end
455
455
 
456
456
  it "version_requirement is now deprecated in rubygems 1.4.0+" do
@@ -1,6 +1,13 @@
1
1
  $:.unshift File.expand_path('..', __FILE__)
2
2
  $:.unshift File.expand_path('../../lib', __FILE__)
3
3
 
4
+ begin
5
+ require 'psych'
6
+ rescue LoadError
7
+ ensure
8
+ require 'yaml'
9
+ end
10
+
4
11
  require 'fileutils'
5
12
  require 'rubygems'
6
13
  require 'bundler'
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7712090
5
- prerelease: true
4
+ hash: 63
5
+ prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 20
10
- - rc
11
- version: 1.0.20.rc
10
+ version: 1.0.20
12
11
  platform: ruby
13
12
  authors:
14
13
  - "Andr\xC3\xA9 Arko"
@@ -19,7 +18,7 @@ autorequire:
19
18
  bindir: bin
20
19
  cert_chain: []
21
20
 
22
- date: 2011-09-19 00:00:00 -07:00
21
+ date: 2011-09-28 00:00:00 -07:00
23
22
  default_executable:
24
23
  dependencies:
25
24
  - !ruby/object:Gem::Dependency