xplenty-jruby_sandbox 0.2.6-java → 0.2.7-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a53b8c5b150b3f8869f85839e0f248ac2b24962e
4
- data.tar.gz: c67be1f47c6fe9ab92b1f0b6247250886e3962d7
3
+ metadata.gz: 3683b3d8e20bcab2b793af7b50354bc760127d9c
4
+ data.tar.gz: 7b63748b2a3c43dd8d4eaf98b9ebf9c990516040
5
5
  SHA512:
6
- metadata.gz: 4b6a84730f01587919e12ff6cd200eb39d10dc7b0e3db65daadfcaa4765bead7a0c5fbfd63fa2ddc866825a705358d35a2a49c78d79e4a29ab5e30de51b06d66
7
- data.tar.gz: 4fb479679fe4428bd3d7bf85cd7165eb8ef2658184e54964a2cd97b59211f770c241fd20f9aaf6fda398e38ce58951527a004f760abe07fe7542b9351078469e
6
+ metadata.gz: c6e08b71999b0f55719f09a7fc8f805e495aaec8aae468491c6d161614984cf87512a98578c6740683bac9724687a01fd32f077f07685f3a9f21cc7fddba8a55
7
+ data.tar.gz: ef689f4aeb1489a2153f2bf19a1ab579da77053e162ec63c1b4f33cbd618b4ade6aa1e0918c3359b6b7c628d04538181bec73d3850bf5ff3345a7cb2eab60925
data/lib/sandbox/safe.rb CHANGED
@@ -74,6 +74,8 @@ module Sandbox
74
74
  # We do this here as some of the FakeFs classes require ENV in order to behave..
75
75
  Object.class_eval do
76
76
  remove_const(:ENV)
77
+
78
+ const_set(:ENV, {})
77
79
  end
78
80
 
79
81
  [Dir, File, FileUtils, FileTest].each do |fake_class|
Binary file
@@ -1,3 +1,3 @@
1
1
  module Sandbox
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
data/spec/sandbox_spec.rb CHANGED
@@ -65,9 +65,7 @@ describe Sandbox do
65
65
 
66
66
  subject.activate!
67
67
 
68
- expect{
69
- subject.eval(%{ENV.to_a})
70
- }.to raise_error(Sandbox::SandboxException, /NameError: uninitialized constant ENV/)
68
+ subject.eval(%{ENV.to_a}).should be_empty
71
69
  end
72
70
  end
73
71
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xplenty-jruby_sandbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: java
6
6
  authors:
7
7
  - Dray Lacy