execjs 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ (function(program, execJS) { execJS(program) })(function() {
2
+ return eval(#{encoded_source});
3
+ }, function(program) {
4
+ var output;
5
+ try {
6
+ result = program();
7
+ if (typeof result == 'undefined' && result !== null) {
8
+ print('["ok"]');
9
+ } else {
10
+ try {
11
+ print(JSON.stringify(['ok', result]));
12
+ } catch (err) {
13
+ print('["err"]');
14
+ }
15
+ }
16
+ } catch (err) {
17
+ print(JSON.stringify(['err', '' + err]));
18
+ }
19
+ });
@@ -1,3 +1,3 @@
1
1
  module ExecJS
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
metadata CHANGED
@@ -1,139 +1,132 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: execjs
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.4
4
5
  prerelease:
5
- version: 1.2.3
6
6
  platform: ruby
7
- authors:
8
- - Sam Stephenson
9
- - Josh Peek
7
+ authors:
8
+ - Sam Stephenson
9
+ - Josh Peek
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
+ date: 2011-08-03 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: multi_json
17
+ requirement: &70192476050340 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: '1.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *70192476050340
26
+ - !ruby/object:Gem::Dependency
27
+ name: johnson
28
+ requirement: &70192476049920 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: *70192476049920
37
+ - !ruby/object:Gem::Dependency
38
+ name: mustang
39
+ requirement: &70192476049460 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ type: :development
46
+ prerelease: false
47
+ version_requirements: *70192476049460
48
+ - !ruby/object:Gem::Dependency
49
+ name: rake
50
+ requirement: &70192476078460 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: *70192476078460
59
+ - !ruby/object:Gem::Dependency
60
+ name: therubyracer
61
+ requirement: &70192476078040 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ type: :development
68
+ prerelease: false
69
+ version_requirements: *70192476078040
70
+ - !ruby/object:Gem::Dependency
71
+ name: therubyrhino
72
+ requirement: &70192476077620 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: *70192476077620
81
+ description: ! ' ExecJS lets you run JavaScript code from Ruby.
13
82
 
14
- date: 2011-08-03 00:00:00 -05:00
15
- default_executable:
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
18
- name: multi_json
19
- prerelease: false
20
- requirement: &id001 !ruby/object:Gem::Requirement
21
- none: false
22
- requirements:
23
- - - ~>
24
- - !ruby/object:Gem::Version
25
- version: "1.0"
26
- type: :runtime
27
- version_requirements: *id001
28
- - !ruby/object:Gem::Dependency
29
- name: johnson
30
- prerelease: false
31
- requirement: &id002 !ruby/object:Gem::Requirement
32
- none: false
33
- requirements:
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: "0"
37
- type: :development
38
- version_requirements: *id002
39
- - !ruby/object:Gem::Dependency
40
- name: mustang
41
- prerelease: false
42
- requirement: &id003 !ruby/object:Gem::Requirement
43
- none: false
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: "0"
48
- type: :development
49
- version_requirements: *id003
50
- - !ruby/object:Gem::Dependency
51
- name: rake
52
- prerelease: false
53
- requirement: &id004 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- version: "0"
59
- type: :development
60
- version_requirements: *id004
61
- - !ruby/object:Gem::Dependency
62
- name: therubyracer
63
- prerelease: false
64
- requirement: &id005 !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: "0"
70
- type: :development
71
- version_requirements: *id005
72
- - !ruby/object:Gem::Dependency
73
- name: therubyrhino
74
- prerelease: false
75
- requirement: &id006 !ruby/object:Gem::Requirement
76
- none: false
77
- requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: "0"
81
- type: :development
82
- version_requirements: *id006
83
- description: " ExecJS lets you run JavaScript code from Ruby.\n"
84
- email:
85
- - sstephenson@gmail.com
86
- - josh@joshpeek.com
83
+ '
84
+ email:
85
+ - sstephenson@gmail.com
86
+ - josh@joshpeek.com
87
87
  executables: []
88
-
89
88
  extensions: []
90
-
91
89
  extra_rdoc_files: []
92
-
93
- files:
94
- - lib/execjs.rb
95
- - lib/execjs/external_runtime.rb
96
- - lib/execjs/johnson_runtime.rb
97
- - lib/execjs/module.rb
98
- - lib/execjs/version.rb
99
- - lib/execjs/mustang_runtime.rb
100
- - lib/execjs/ruby_racer_runtime.rb
101
- - lib/execjs/ruby_rhino_runtime.rb
102
- - lib/execjs/runtimes.rb
103
- - lib/execjs/support/basic_runner.js
104
- - lib/execjs/support/jscript_runner.js
105
- - lib/execjs/support/json2.js
106
- - lib/execjs/support/node_runner.js
107
- - lib/execjs/support/which.bat
108
- - LICENSE
109
- - README.md
110
- has_rdoc: true
90
+ files:
91
+ - lib/execjs.rb
92
+ - lib/execjs/external_runtime.rb
93
+ - lib/execjs/johnson_runtime.rb
94
+ - lib/execjs/module.rb
95
+ - lib/execjs/version.rb
96
+ - lib/execjs/mustang_runtime.rb
97
+ - lib/execjs/ruby_racer_runtime.rb
98
+ - lib/execjs/ruby_rhino_runtime.rb
99
+ - lib/execjs/runtimes.rb
100
+ - lib/execjs/support/basic_runner.js
101
+ - lib/execjs/support/jsc_runner.js
102
+ - lib/execjs/support/jscript_runner.js
103
+ - lib/execjs/support/json2.js
104
+ - lib/execjs/support/node_runner.js
105
+ - lib/execjs/support/which.bat
106
+ - LICENSE
107
+ - README.md
111
108
  homepage: https://github.com/sstephenson/execjs
112
109
  licenses: []
113
-
114
110
  post_install_message:
115
111
  rdoc_options: []
116
-
117
- require_paths:
118
- - lib
119
- required_ruby_version: !ruby/object:Gem::Requirement
112
+ require_paths:
113
+ - lib
114
+ required_ruby_version: !ruby/object:Gem::Requirement
120
115
  none: false
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: "0"
125
- required_rubygems_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
126
121
  none: false
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- version: "0"
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
131
126
  requirements: []
132
-
133
127
  rubyforge_project:
134
- rubygems_version: 1.5.1
128
+ rubygems_version: 1.8.6
135
129
  signing_key:
136
130
  specification_version: 3
137
131
  summary: Run JavaScript code from Ruby
138
132
  test_files: []
139
-