xplenty-jruby_sandbox 0.2.4-java → 0.2.5-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sandbox/safe.rb +8 -6
- data/lib/sandbox/sandbox.jar +0 -0
- data/lib/sandbox/version.rb +1 -1
- data/spec/sandbox_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a773f53ac4da0e6ff7845dad8795168836fc3f13
|
4
|
+
data.tar.gz: cbf3aa3d376e16a8405675454cfb5eea4249ba62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea1a9ff7248e89e44694978a85bbad84766601170d50aeb9933f5ee96987468a13b0f92d759f113778fb3e7626c74a1862f31bf0f08a5f51fe24b65f24c7209c
|
7
|
+
data.tar.gz: 144140607f1432f36fd102c131fe9b1f15a99c4da7089b94079b0298c58695d23061db2b9ad5c80cfab0172f34d1b46c26b5dad66df3a1a487c846f318a33c0c
|
data/lib/sandbox/safe.rb
CHANGED
@@ -153,6 +153,7 @@ module Sandbox
|
|
153
153
|
gsub!
|
154
154
|
Integer
|
155
155
|
iterator?
|
156
|
+
JSON
|
156
157
|
lambda
|
157
158
|
local_variables
|
158
159
|
loop
|
@@ -181,6 +182,7 @@ module Sandbox
|
|
181
182
|
==
|
182
183
|
===
|
183
184
|
=~
|
185
|
+
__send__
|
184
186
|
Array
|
185
187
|
binding
|
186
188
|
block_given?
|
@@ -212,22 +214,23 @@ module Sandbox
|
|
212
214
|
inspect
|
213
215
|
instance_eval
|
214
216
|
instance_of?
|
215
|
-
|
217
|
+
instance_variable_defined?
|
216
218
|
instance_variable_get
|
217
219
|
instance_variable_set
|
218
|
-
|
220
|
+
instance_variables
|
219
221
|
Integer
|
220
222
|
is_a?
|
221
223
|
iterator?
|
224
|
+
JSON
|
222
225
|
kind_of?
|
223
226
|
lambda
|
224
227
|
local_variables
|
225
228
|
loop
|
226
|
-
methods
|
227
229
|
method_missing
|
230
|
+
methods
|
228
231
|
nil?
|
229
|
-
private_methods
|
230
232
|
print
|
233
|
+
private_methods
|
231
234
|
proc
|
232
235
|
protected_methods
|
233
236
|
public_methods
|
@@ -237,10 +240,10 @@ module Sandbox
|
|
237
240
|
respond_to_missing?
|
238
241
|
scan
|
239
242
|
send
|
240
|
-
singleton_methods
|
241
243
|
singleton_method_added
|
242
244
|
singleton_method_removed
|
243
245
|
singleton_method_undefined
|
246
|
+
singleton_methods
|
244
247
|
sleep
|
245
248
|
split
|
246
249
|
sprintf
|
@@ -254,7 +257,6 @@ module Sandbox
|
|
254
257
|
to_s
|
255
258
|
type
|
256
259
|
untaint
|
257
|
-
__send__
|
258
260
|
].freeze
|
259
261
|
|
260
262
|
NILCLASS_METHODS = %w[
|
data/lib/sandbox/sandbox.jar
CHANGED
Binary file
|
data/lib/sandbox/version.rb
CHANGED
data/spec/sandbox_spec.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require "rspec"
|
2
2
|
require "sandbox"
|
3
3
|
require "timeout"
|
4
|
+
require "json"
|
4
5
|
|
5
6
|
describe Sandbox do
|
6
7
|
after(:each) do
|
@@ -126,6 +127,9 @@ describe Sandbox do
|
|
126
127
|
|
127
128
|
it "should allow a range of common operations" do
|
128
129
|
operations = <<-OPS
|
130
|
+
require 'json'
|
131
|
+
JSON({})
|
132
|
+
JSON({ :a => :b })
|
129
133
|
1 + 1
|
130
134
|
"foo".chomp
|
131
135
|
"foo"
|
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.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Dray Lacy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-07-
|
13
|
+
date: 2017-07-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fakefs
|