isolate 2.1.0 → 2.1.1
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.
- data/CHANGELOG.rdoc +4 -0
- data/lib/isolate.rb +1 -1
- data/lib/isolate/sandbox.rb +6 -5
- metadata +4 -4
data/CHANGELOG.rdoc
CHANGED
data/lib/isolate.rb
CHANGED
data/lib/isolate/sandbox.rb
CHANGED
@@ -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 !=
|
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
|
152
|
+
dirname = Regexp.escape lib
|
152
153
|
|
153
|
-
unless ENV["RUBYOPT"] =~ /\s+-I\s*#{
|
154
|
-
ENV["RUBYOPT"] = "#{ENV['RUBYOPT']} -I#{
|
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:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 2.1.
|
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-
|
19
|
+
date: 2010-07-08 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|