bundler08 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/bundler08.rb CHANGED
@@ -19,7 +19,7 @@ require "bundler08/dependency"
19
19
  require "bundler08/remote_specification"
20
20
 
21
21
  module Bundler
22
- VERSION = "0.8.2"
22
+ VERSION = "0.8.3"
23
23
 
24
24
  class << self
25
25
  attr_writer :logger, :mode
@@ -1,4 +1,9 @@
1
- if exec = ARGV.index("exec")
1
+ combined = [File.basename($0)] + ARGV
2
+ gem_i = combined.index("gem")
3
+ exec_i = combined.index("exec")
4
+
5
+ if gem_i && exec_i && gem_i < exec_i
6
+ exec = ARGV.index("exec")
2
7
  $command = ARGV[(exec + 1)..-1]
3
8
  ARGV.replace ARGV[0..exec]
4
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler08
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz