bundler 1.1.rc.2 → 1.1.rc.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.
- data/CHANGELOG.md +8 -1
- data/lib/bundler/cli.rb +15 -22
- data/lib/bundler/source.rb +1 -1
- data/lib/bundler/version.rb +1 -1
- data/spec/other/outdated_spec.rb +1 -1
- data/spec/runtime/setup_spec.rb +25 -0
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 1.1.rc.3 (Dec 8, 2011)
|
2
|
+
|
3
|
+
Bugfixes:
|
4
|
+
|
5
|
+
- fix relative_path so it checks Bundler.root is actually in the beginning of the path (#1582)
|
6
|
+
- fix bundle outdated doesn't list all gems (@joelmoss, #1521)
|
7
|
+
|
1
8
|
## 1.1.rc.2 (Dec 6, 2011)
|
2
9
|
|
3
10
|
Features:
|
@@ -7,7 +14,7 @@ Features:
|
|
7
14
|
|
8
15
|
Bugfixes:
|
9
16
|
|
10
|
-
- only auto-namespace requires for implied requires (#1531)
|
17
|
+
- only auto-namespace requires for implied requires (#1531)
|
11
18
|
- fix bundle clean output for git repos (#1473)
|
12
19
|
- use Gem.bindir for bundle clean (#1544, #1532)
|
13
20
|
- use `Gem.load_env_plugins` instead of `Gem.load_env_plugins` (#1500, #1543)
|
data/lib/bundler/cli.rb
CHANGED
@@ -330,35 +330,28 @@ module Bundler
|
|
330
330
|
end
|
331
331
|
|
332
332
|
out_count = 0
|
333
|
-
|
334
|
-
|
333
|
+
# Loop through the current specs
|
334
|
+
current_specs.each do |current_spec|
|
335
|
+
next if !gems.empty? && !gems.include?(current_spec.name)
|
335
336
|
|
336
|
-
|
337
|
+
active_spec = definition.index[current_spec.name].sort_by { |b| b.version }
|
337
338
|
|
338
|
-
if
|
339
|
-
|
340
|
-
next if current.nil?
|
341
|
-
else
|
342
|
-
current = spec
|
343
|
-
spec = definition.index[current.name].sort_by{|b| b.version }
|
344
|
-
|
345
|
-
if !current.version.prerelease? && !options[:pre] && spec.size > 1
|
346
|
-
spec = spec.delete_if{|b| b.respond_to?(:version) && b.version.prerelease? }
|
347
|
-
end
|
348
|
-
|
349
|
-
spec = spec.last
|
350
|
-
next if spec.nil?
|
339
|
+
if !current_spec.version.prerelease? && !options[:pre] && active_spec.size > 1
|
340
|
+
active_spec = active_spec.delete_if { |b| b.respond_to?(:version) && b.version.prerelease? }
|
351
341
|
end
|
352
342
|
|
353
|
-
|
354
|
-
|
343
|
+
active_spec = active_spec.last
|
344
|
+
next if active_spec.nil?
|
345
|
+
|
346
|
+
gem_outdated = Gem::Version.new(active_spec.version) > Gem::Version.new(current_spec.version)
|
347
|
+
git_outdated = current_spec.git_version != active_spec.git_version
|
355
348
|
if gem_outdated || git_outdated
|
356
|
-
spec_version = "#{
|
357
|
-
current_version = "#{
|
358
|
-
Bundler.ui.info " * #{
|
349
|
+
spec_version = "#{active_spec.version}#{active_spec.git_version}"
|
350
|
+
current_version = "#{current_spec.version}#{current_spec.git_version}"
|
351
|
+
Bundler.ui.info " * #{active_spec.name} (#{spec_version} > #{current_version})"
|
359
352
|
out_count += 1
|
360
353
|
end
|
361
|
-
Bundler.ui.debug "from #{
|
354
|
+
Bundler.ui.debug "from #{active_spec.loaded_from}"
|
362
355
|
end
|
363
356
|
|
364
357
|
Bundler.ui.info " Your bundle is up to date!" if out_count < 1
|
data/lib/bundler/source.rb
CHANGED
data/lib/bundler/version.rb
CHANGED
@@ -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.rc.
|
5
|
+
VERSION = "1.1.rc.3" unless defined?(::Bundler::VERSION)
|
6
6
|
end
|
data/spec/other/outdated_spec.rb
CHANGED
data/spec/runtime/setup_spec.rb
CHANGED
@@ -567,6 +567,31 @@ describe "Bundler.setup" do
|
|
567
567
|
end
|
568
568
|
err.should == ""
|
569
569
|
end
|
570
|
+
|
571
|
+
it "should make sure the Bundler.root is really included in the path relative to the Gemfile" do
|
572
|
+
relative_path = File.join('vendor', Dir.pwd[1..-1], 'foo')
|
573
|
+
absolute_path = bundled_app(relative_path)
|
574
|
+
FileUtils.mkdir_p(absolute_path)
|
575
|
+
build_lib "foo", :path => absolute_path
|
576
|
+
|
577
|
+
# If the .gemspec exists, then Bundler handles the path differently.
|
578
|
+
# See Source::Path.load_spec_files for details.
|
579
|
+
FileUtils.rm(File.join(absolute_path, 'foo.gemspec'))
|
580
|
+
|
581
|
+
gemfile <<-G
|
582
|
+
gem 'foo', '1.2.3', :path => '#{relative_path}'
|
583
|
+
G
|
584
|
+
|
585
|
+
bundle :install
|
586
|
+
|
587
|
+
Dir.chdir(bundled_app.parent) do
|
588
|
+
run <<-R, :env => {"BUNDLE_GEMFILE" => bundled_app('Gemfile')}
|
589
|
+
require 'foo'
|
590
|
+
R
|
591
|
+
end
|
592
|
+
|
593
|
+
err.should == ""
|
594
|
+
end
|
570
595
|
end
|
571
596
|
|
572
597
|
describe "with git gems that don't have gemspecs" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15424251
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
9
|
- rc
|
10
|
-
-
|
11
|
-
version: 1.1.rc.
|
10
|
+
- 3
|
11
|
+
version: 1.1.rc.3
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- "Andr\xC3\xA9 Arko"
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2011-12-
|
22
|
+
date: 2011-12-08 00:00:00 -08:00
|
23
23
|
default_executable:
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|