execjs 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -85,21 +85,19 @@ module ExecJS
85
85
  end
86
86
  end
87
87
 
88
- if MultiJson.respond_to?(:load)
88
+ if MultiJson.respond_to?(:dump)
89
89
  def json_decode(obj)
90
90
  MultiJson.load(obj)
91
91
  end
92
- else
93
- def json_decode(obj)
94
- MultiJson.decode(obj)
95
- end
96
- end
97
92
 
98
- if MultiJson.respond_to?(:dump)
99
93
  def json_encode(obj)
100
94
  MultiJson.dump(obj)
101
95
  end
102
96
  else
97
+ def json_decode(obj)
98
+ MultiJson.decode(obj)
99
+ end
100
+
103
101
  def json_encode(obj)
104
102
  MultiJson.encode(obj)
105
103
  end
@@ -1,3 +1,3 @@
1
1
  module ExecJS
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: execjs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 1
10
- version: 1.3.1
9
+ - 2
10
+ version: 1.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sam Stephenson
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-04-26 00:00:00 Z
19
+ date: 2012-05-07 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: multi_json