ruby_box 0.0.0 → 0.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_box/bridging.rb +2 -2
- data/lib/ruby_box/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24712c9c81020b44d9311a1cb883279c29d2cbd2
|
4
|
+
data.tar.gz: a5bdfa62602acb7c577cd4c8f4248ac010fd6f1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c08690552b840b62dc8566d827b2cc218fbb7e4c38803fc3eade15fae4b5d37f08d2eba6bdf421c0ca6f2a4ea57c80ec67091ffcfe2e4d61974817087b479d6
|
7
|
+
data.tar.gz: 743bf09d576224b268caebdd9dc95dd2d54acf2df7fa35c247d746cc1d46cc7960a591ef56351b43af41946b1d2e11e12b7c2357b89fc77409301f8eed76d120
|
data/lib/ruby_box/bridging.rb
CHANGED
@@ -57,7 +57,7 @@ module RubyBox
|
|
57
57
|
serialized_args = args.to_json
|
58
58
|
serialized_value = Native(`#{handle}`).call(serialized_args)
|
59
59
|
|
60
|
-
JSON.parse(serialized_value)
|
60
|
+
JSON.parse(serialized_value, quirks_mode: true)
|
61
61
|
end
|
62
62
|
end
|
63
63
|
RUBY
|
@@ -104,7 +104,7 @@ module RubyBox
|
|
104
104
|
})(eval, #{source.to_json});
|
105
105
|
JAVASCRIPT
|
106
106
|
|
107
|
-
value = JSON.parse(serialized_value) if serialized_value
|
107
|
+
value = JSON.parse(serialized_value, quirks_mode: true) if serialized_value
|
108
108
|
|
109
109
|
if is_caught_value
|
110
110
|
class_name, message = value
|
data/lib/ruby_box/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_box
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0
|
4
|
+
version: 0.0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alec Larsen
|
@@ -198,8 +198,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
198
|
version: '0'
|
199
199
|
requirements: []
|
200
200
|
rubyforge_project:
|
201
|
-
rubygems_version: 2.
|
201
|
+
rubygems_version: 2.4.6
|
202
202
|
signing_key:
|
203
203
|
specification_version: 4
|
204
204
|
summary: RubyBox allows the execution of untrusted Ruby code safely in a sandbox.
|
205
205
|
test_files: []
|
206
|
+
has_rdoc:
|