isolate 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 2.1.1 / 2010-07-08
2
+
3
+ * Fix $LOAD_PATH filtering bug when system is false.
4
+
1
5
  === 2.1.0 / 2010-07-01
2
6
 
3
7
  * Pass self to event hooks. Speculative coding FTL.
@@ -8,7 +8,7 @@ module Isolate
8
8
 
9
9
  # Duh.
10
10
 
11
- VERSION = "2.1.0"
11
+ VERSION = "2.1.1"
12
12
 
13
13
  # Disable Isolate. If a block is provided, isolation will be
14
14
  # disabled for the scope of the block.
@@ -138,20 +138,21 @@ module Isolate
138
138
  FileUtils.mkdir_p path
139
139
  ENV["GEM_HOME"] = path
140
140
 
141
+ lib = File.expand_path "../..", __FILE__
142
+
141
143
  unless system?
142
144
  $LOAD_PATH.reject! do |p|
143
- p != File.dirname(__FILE__) &&
144
- Gem.path.any? { |gp| p.include?(gp) }
145
+ p != lib && Gem.path.any? { |gp| p.include?(gp) }
145
146
  end
146
147
 
147
148
  # HACK: Gotta keep isolate explicitly in the LOAD_PATH in
148
149
  # subshells, and the only way I can think of to do that is by
149
150
  # abusing RUBYOPT.
150
151
 
151
- dirname = Regexp.escape File.dirname(__FILE__)
152
+ dirname = Regexp.escape lib
152
153
 
153
- unless ENV["RUBYOPT"] =~ /\s+-I\s*#{dirname}\b/
154
- ENV["RUBYOPT"] = "#{ENV['RUBYOPT']} -I#{File.dirname(__FILE__)}"
154
+ unless ENV["RUBYOPT"] =~ /\s+-I\s*#{lib}\b/
155
+ ENV["RUBYOPT"] = "#{ENV['RUBYOPT']} -I#{lib}"
155
156
  end
156
157
 
157
158
  ENV["GEM_PATH"] = path
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isolate
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 0
10
- version: 2.1.0
9
+ - 1
10
+ version: 2.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Barnette
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-07-01 00:00:00 -07:00
19
+ date: 2010-07-08 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency