bundler 1.1.2 → 1.1.3

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,9 @@
1
+ ## 1.1.3 (March 23, 2012)
2
+
3
+ Bugfixes:
4
+
5
+ - escape the bundler root path (@tenderlove, #1789)
6
+
1
7
  ## 1.1.2 (March 20, 2012)
2
8
 
3
9
  Bugfixes:
@@ -419,7 +419,7 @@ module Bundler
419
419
  private
420
420
 
421
421
  def relative_path
422
- if path.to_s.match(%r{^#{Bundler.root.to_s}})
422
+ if path.to_s.match(%r{^#{Regexp.escape Bundler.root.to_s}})
423
423
  return path.relative_path_from(Bundler.root)
424
424
  end
425
425
 
@@ -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.1.2" unless defined?(::Bundler::VERSION)
5
+ VERSION = "1.1.3" unless defined?(::Bundler::VERSION)
6
6
  end
@@ -339,6 +339,29 @@ describe "bundle install with gem sources" do
339
339
  end
340
340
  end
341
341
 
342
+ describe "when Bundler root contains regex chars" do
343
+ before do
344
+ root_dir = tmp("foo[]bar")
345
+
346
+ FileUtils.mkdir_p(root_dir)
347
+ in_app_root_custom(root_dir)
348
+ end
349
+
350
+ it "doesn't blow up" do
351
+ build_lib "foo"
352
+ gemfile = <<-G
353
+ gem 'foo', :path => "#{lib_path('foo-1.0')}"
354
+ G
355
+ File.open('Gemfile', 'w') do |file|
356
+ file.puts gemfile
357
+ end
358
+
359
+ bundle :install, :exitstatus => true
360
+
361
+ exitstatus.should == 0
362
+ end
363
+ end
364
+
342
365
  describe "when prerelease gems are available" do
343
366
  it "finds prereleases" do
344
367
  install_gemfile <<-G
@@ -26,6 +26,10 @@ module Spec
26
26
  Dir.chdir(bundled_app2, &blk)
27
27
  end
28
28
 
29
+ def in_app_root_custom(root, &blk)
30
+ Dir.chdir(root, &blk)
31
+ end
32
+
29
33
  def run(cmd, *args)
30
34
  opts = args.last.is_a?(Hash) ? args.pop : {}
31
35
  expect_err = opts.delete(:expect_err)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 2
10
- version: 1.1.2
9
+ - 3
10
+ version: 1.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Andr\xC3\xA9 Arko"
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2012-03-21 00:00:00 Z
21
+ date: 2012-03-24 00:00:00 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: ronn