bundler 0.9.0.pre2 → 0.9.0.pre3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ require 'yaml'
4
4
  require 'bundler/rubygems'
5
5
 
6
6
  module Bundler
7
- VERSION = "0.9.0.pre2"
7
+ VERSION = "0.9.0.pre3"
8
8
 
9
9
  autoload :Definition, 'bundler/definition'
10
10
  autoload :Dependency, 'bundler/dependency'
@@ -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
@@ -0,0 +1,3 @@
1
+ require 'bundler'
2
+
3
+ Bundler.setup
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.pre2
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