bundler 0.9.8 → 0.9.9

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.

@@ -118,7 +118,7 @@ The command `bundle lock` will lock the bundle to the current set of
118
118
  resolved gems. This ensures that, until the lock file is removed,
119
119
  `bundle install` and `Bundle.setup` will always activate the same gems.
120
120
 
121
- When you are distributing your application, you should add the Gemfile and
121
+ When you are distributing your application, you should add the Gemfile and
122
122
  Gemfile.lock files to your source control, so that the set of libraries your
123
123
  code will run against are fixed. Simply run `bundle install` after checking
124
124
  out or deploying your code to ensure your libraries are present.
@@ -4,7 +4,7 @@ require 'yaml'
4
4
  require 'bundler/rubygems_ext'
5
5
 
6
6
  module Bundler
7
- VERSION = "0.9.8"
7
+ VERSION = "0.9.9"
8
8
 
9
9
  autoload :Definition, 'bundler/definition'
10
10
  autoload :Dependency, 'bundler/dependency'
@@ -118,8 +118,8 @@ module Bundler
118
118
  ENV['GEM_HOME'] = File.expand_path(bundle_path, root)
119
119
  ENV['GEM_PATH'] = ''
120
120
  else
121
- gem_home, gem_path = Gem.dir, Gem.path
122
- ENV["GEM_PATH"] = [gem_home, gem_path].flatten.compact.join(File::PATH_SEPARATOR)
121
+ paths = [Gem.dir, Gem.path].flatten.compact.reject{|p| p.empty? }
122
+ ENV["GEM_PATH"] = paths.join(File::PATH_SEPARATOR)
123
123
  ENV["GEM_HOME"] = bundle_path.to_s
124
124
  end
125
125
 
@@ -17,13 +17,19 @@ module Gem
17
17
  @groups ||= []
18
18
  end
19
19
 
20
- alias_method :old_dependencies, :dependencies
20
+ module ImplicitRakeDependency
21
+ def dependencies
22
+ original = super
23
+ original << Dependency.new("rake", ">= 0") if implicit_rake_dependency?
24
+ original
25
+ end
21
26
 
22
- def dependencies
23
- original = old_dependencies
24
- original << Dependency.new("rake", ">= 0") if extensions.any? { |e| e =~ /rakefile|mkrf_conf/i }
25
- original
27
+ private
28
+ def implicit_rake_dependency?
29
+ extensions.any? { |e| e =~ /rakefile|mkrf_conf/i }
30
+ end
26
31
  end
32
+ include ImplicitRakeDependency
27
33
  end
28
34
 
29
35
  class Dependency
@@ -78,7 +78,7 @@ module Bundler
78
78
  @specs ||= begin
79
79
  index = Index.new
80
80
 
81
- Gem::SourceIndex.from_installed_gems.reverse_each do |name, spec|
81
+ Gem::SourceIndex.from_installed_gems.to_a.reverse.each do |name, spec|
82
82
  spec.source = self
83
83
  index << spec
84
84
  end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 9
8
+ - 9
9
+ version: 0.9.9
5
10
  platform: ruby
6
11
  authors:
7
12
  - Carl Lerche
@@ -10,8 +15,8 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2010-02-23 00:00:00 -08:00
14
- default_executable: bundle
18
+ date: 2010-02-25 00:00:00 -08:00
19
+ default_executable:
15
20
  dependencies: []
16
21
 
17
22
  description:
@@ -69,10 +74,9 @@ has_rdoc: true
69
74
  homepage: http://github.com/carlhuda/bundler
70
75
  licenses: []
71
76
 
72
- post_install_message: |
77
+ post_install_message: |-
73
78
  Due to a rubygems bug, you must uninstall older versions of the bundler gem for 0.9 to work.
74
79
  If you still need bundler 0.8, install the 'bundler08' gem.
75
-
76
80
  rdoc_options: []
77
81
 
78
82
  require_paths:
@@ -81,18 +85,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
85
  requirements:
82
86
  - - ">="
83
87
  - !ruby/object:Gem::Version
88
+ segments:
89
+ - 0
84
90
  version: "0"
85
- version:
86
91
  required_rubygems_version: !ruby/object:Gem::Requirement
87
92
  requirements:
88
93
  - - ">="
89
94
  - !ruby/object:Gem::Version
95
+ segments:
96
+ - 1
97
+ - 3
98
+ - 5
90
99
  version: 1.3.5
91
- version:
92
100
  requirements: []
93
101
 
94
102
  rubyforge_project:
95
- rubygems_version: 1.3.5
103
+ rubygems_version: 1.3.6
96
104
  signing_key:
97
105
  specification_version: 3
98
106
  summary: Bundles are fun