execjs 2.0.1 → 2.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8f7414aa0346d1373c1a6d8fdf1317e9a3bc0b5
4
- data.tar.gz: 99bc792e37bd6a417d8e6d79998f1f0c7536ebb5
3
+ metadata.gz: fa9a93a77554f102fc5a3e16c26d5b305c573ffb
4
+ data.tar.gz: 072920c3b99406ac62c0e6aec41a03ef62ecbf31
5
5
  SHA512:
6
- metadata.gz: 3b680d30f6d274913363620387d9bd1c5e9012b44a00bd1b93657c7d07ccde40a6c6e460356644eb53ca84d5db7383f02be9173ac10557fce4a4791b252157c5
7
- data.tar.gz: 5e43430e2502a45bf955a2c3e240511127f022e507e0ab4d296d6d23367330b6b890afb9665b6ed03608162dab85622d6a49628c5cc153f758231a5847060fd8
6
+ metadata.gz: 8f1a9db146000f618fb57bc2af26b2da6e0f6073fa783b9d6984fb00040254a0ef67b6227eb687010a231488a1529801fd22cd8b76974a822606db6da43a4945
7
+ data.tar.gz: 6615b7125a6c6c3e8bd0b436a2d033090d9248db4c63972d1228b673dac43fcf130f93f5c01bd49f1077ba0a28bc4d0f24f2528674f7f7a905409769eb0a2511
@@ -30,7 +30,7 @@ module ExecJS
30
30
  end
31
31
 
32
32
  def call(identifier, *args)
33
- eval "#{identifier}.apply(this, #{::JSON.dump(args)})"
33
+ eval "#{identifier}.apply(this, #{::JSON.generate(args)})"
34
34
  end
35
35
 
36
36
  protected
@@ -50,7 +50,7 @@ module ExecJS
50
50
  end
51
51
  output.sub!('#{encoded_source}') do
52
52
  encoded_source = encode_unicode_codepoints(source)
53
- ::JSON.dump("(function(){ #{encoded_source} })()")
53
+ ::JSON.generate("(function(){ #{encoded_source} })()", :quirks_mode => true)
54
54
  end
55
55
  output.sub!('#{json2_source}') do
56
56
  IO.read(ExecJS.root + "/support/json2.js")
@@ -59,7 +59,7 @@ module ExecJS
59
59
  end
60
60
 
61
61
  def extract_result(output)
62
- status, value = output.empty? ? [] : ::JSON.load(output)
62
+ status, value = output.empty? ? [] : ::JSON.parse(output, :create_additions => false)
63
63
  if status == "ok"
64
64
  value
65
65
  elsif value =~ /SyntaxError:/
@@ -1,3 +1,3 @@
1
1
  module ExecJS
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: execjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Stephenson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-27 00:00:00.000000000 Z
12
+ date: 2013-09-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  version: '0'
73
73
  requirements: []
74
74
  rubyforge_project:
75
- rubygems_version: 2.0.2
75
+ rubygems_version: 2.0.3
76
76
  signing_key:
77
77
  specification_version: 4
78
78
  summary: Run JavaScript code from Ruby