isolate 3.1.0.pre.2 → 3.1.0.pre.3

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.
Files changed (3) hide show
  1. data/lib/isolate.rb +1 -1
  2. data/lib/isolate/sandbox.rb +3 -1
  3. metadata +2 -2
data/lib/isolate.rb CHANGED
@@ -8,7 +8,7 @@ module Isolate
8
8
 
9
9
  # Duh.
10
10
 
11
- VERSION = "3.1.0.pre.2"
11
+ VERSION = "3.1.0.pre.3"
12
12
 
13
13
  # Disable Isolate. If a block is provided, isolation will be
14
14
  # disabled for the scope of the block.
@@ -156,13 +156,15 @@ module Isolate
156
156
  end
157
157
 
158
158
  paths = (ENV["GEM_PATH"] || "").split File::PATH_SEPARATOR
159
+ paths.push Gem.dir
160
+
159
161
  paths.clear unless system?
160
162
  paths.push path
161
163
 
162
164
  Gem.clear_paths
163
165
 
164
166
  ENV["GEM_HOME"] = path
165
- ENV["GEM_PATH"] = paths.join File::PATH_SEPARATOR
167
+ ENV["GEM_PATH"] = paths.uniq.join File::PATH_SEPARATOR
166
168
  ENV["ISOLATED"] = path
167
169
 
168
170
  Gem.refresh
metadata CHANGED
@@ -7,8 +7,8 @@ version: !ruby/object:Gem::Version
7
7
  - 1
8
8
  - 0
9
9
  - pre
10
- - 2
11
- version: 3.1.0.pre.2
10
+ - 3
11
+ version: 3.1.0.pre.3
12
12
  platform: ruby
13
13
  authors:
14
14
  - John Barnette