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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d06b08e73589246267426b4e93121d583a168c01
4
- data.tar.gz: b72fcac1cc5956601d781cde42d74bae26516cf6
3
+ metadata.gz: a773f53ac4da0e6ff7845dad8795168836fc3f13
4
+ data.tar.gz: cbf3aa3d376e16a8405675454cfb5eea4249ba62
5
5
  SHA512:
6
- metadata.gz: cc6380715019cb8f27918bca1f673e7164d90631495ae1821fdf57ed31707cf16575dfc7c69c288cc01517447a1866e91a61f69de907c633c3238cfc1c7e7eca
7
- data.tar.gz: d0ae61acb863f50a86df5dca25eb9630c74ceee64bbe6487aef1d54629ef890a045a796014dc4779b461b373e36a112d5964dc1dad1227ff7f1feb8634c06a3b
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
- instance_variables
217
+ instance_variable_defined?
216
218
  instance_variable_get
217
219
  instance_variable_set
218
- instance_variable_defined?
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[
Binary file
@@ -1,3 +1,3 @@
1
1
  module Sandbox
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
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
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-03 00:00:00.000000000 Z
13
+ date: 2017-07-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fakefs