bundler 0.9.0.pre2 → 0.9.0.pre3
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/lib/bundler.rb +1 -1
- data/lib/bundler/cli.rb +13 -0
- data/lib/bundler/setup.rb +3 -0
- metadata +2 -1
data/lib/bundler.rb
CHANGED
data/lib/bundler/cli.rb
CHANGED
@@ -8,6 +8,8 @@ Gem.configuration
|
|
8
8
|
|
9
9
|
module Bundler
|
10
10
|
class CLI < Thor
|
11
|
+
ARGV = ::ARGV.dup
|
12
|
+
|
11
13
|
def self.banner(task)
|
12
14
|
task.formatted_usage(self, false)
|
13
15
|
end
|
@@ -73,6 +75,17 @@ module Bundler
|
|
73
75
|
environment.pack
|
74
76
|
end
|
75
77
|
|
78
|
+
desc "exec", "Run the command in context of the bundle"
|
79
|
+
def exec(*)
|
80
|
+
ARGV.delete('exec')
|
81
|
+
ENV["RUBYOPT"] = %W(
|
82
|
+
-I#{File.expand_path('../..', __FILE__)}
|
83
|
+
-rbundler/setup
|
84
|
+
#{ENV["RUBYOPT"]}
|
85
|
+
).compact.join(' ')
|
86
|
+
Kernel.exec *ARGV
|
87
|
+
end
|
88
|
+
|
76
89
|
private
|
77
90
|
|
78
91
|
def with_rescue
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.0.
|
4
|
+
version: 0.9.0.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carl Lerche
|
@@ -35,6 +35,7 @@ files:
|
|
35
35
|
- lib/bundler/remote_specification.rb
|
36
36
|
- lib/bundler/resolver.rb
|
37
37
|
- lib/bundler/rubygems.rb
|
38
|
+
- lib/bundler/setup.rb
|
38
39
|
- lib/bundler/source.rb
|
39
40
|
- lib/bundler/specification.rb
|
40
41
|
- lib/bundler/templates/environment.erb
|