esprima 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 1.4.1
2
+
3
+ * Convert ConsStrings to Strings in order to support therubyrhino parser
4
+
1
5
  === 1.4.0
2
6
 
3
7
  * Supported different platforms with execjs, which should fix JRuby issues.
@@ -16,4 +20,4 @@
16
20
 
17
21
  === 1.0.0
18
22
 
19
- * Birthday!
23
+ * Birthday!
@@ -26,6 +26,8 @@ module Esprima
26
26
  obj.map { |val| to_ruby_hash(val) }
27
27
  elsif js_type_of?(obj, :object)
28
28
  obj.inject({}) { |ret, (key, val)| ret[key.to_sym] = to_ruby_hash(val); ret }
29
+ elsif js_type_of?(obj, :consstring)
30
+ obj.toString
29
31
  else
30
32
  obj
31
33
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module Esprima
4
- VERSION = "1.4.0"
5
- end
4
+ VERSION = "1.4.1"
5
+ end
metadata CHANGED
@@ -1,115 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esprima
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.4.0
4
+ version: 1.4.1
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Cameron Dutro
9
9
  - Ariya Hidayat
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-12-27 00:00:00.000000000 Z
13
+ date: 2012-12-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: execjs
17
- version_requirements: !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
18
19
  requirements:
19
20
  - - ~>
20
21
  - !ruby/object:Gem::Version
21
22
  version: 1.4.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
22
26
  none: false
23
- requirement: !ruby/object:Gem::Requirement
24
27
  requirements:
25
28
  - - ~>
26
29
  - !ruby/object:Gem::Version
27
30
  version: 1.4.0
28
- none: false
29
- prerelease: false
30
- type: :runtime
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: commonjs
33
- version_requirements: !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
34
35
  requirements:
35
36
  - - ~>
36
37
  - !ruby/object:Gem::Version
37
38
  version: 0.2.6
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
38
42
  none: false
39
- requirement: !ruby/object:Gem::Requirement
40
43
  requirements:
41
44
  - - ~>
42
45
  - !ruby/object:Gem::Version
43
46
  version: 0.2.6
44
- none: false
45
- prerelease: false
46
- type: :runtime
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: escodegen
49
- version_requirements: !ruby/object:Gem::Requirement
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
50
51
  requirements:
51
52
  - - ~>
52
53
  - !ruby/object:Gem::Version
53
54
  version: 1.2.0
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
54
58
  none: false
55
- requirement: !ruby/object:Gem::Requirement
56
59
  requirements:
57
60
  - - ~>
58
61
  - !ruby/object:Gem::Version
59
62
  version: 1.2.0
60
- none: false
61
- prerelease: false
62
- type: :runtime
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: rake
65
- version_requirements: !ruby/object:Gem::Requirement
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
66
67
  requirements:
67
68
  - - ! '>='
68
69
  - !ruby/object:Gem::Version
69
- version: !binary |-
70
- MA==
70
+ version: '0'
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
71
74
  none: false
72
- requirement: !ruby/object:Gem::Requirement
73
75
  requirements:
74
76
  - - ! '>='
75
77
  - !ruby/object:Gem::Version
76
- version: !binary |-
77
- MA==
78
- none: false
79
- prerelease: false
80
- type: :development
78
+ version: '0'
81
79
  - !ruby/object:Gem::Dependency
82
80
  name: rspec
83
- version_requirements: !ruby/object:Gem::Requirement
81
+ requirement: !ruby/object:Gem::Requirement
82
+ none: false
84
83
  requirements:
85
84
  - - ~>
86
85
  - !ruby/object:Gem::Version
87
86
  version: 2.11.0
87
+ type: :development
88
+ prerelease: false
89
+ version_requirements: !ruby/object:Gem::Requirement
88
90
  none: false
89
- requirement: !ruby/object:Gem::Requirement
90
91
  requirements:
91
92
  - - ~>
92
93
  - !ruby/object:Gem::Version
93
94
  version: 2.11.0
94
- none: false
95
- prerelease: false
96
- type: :development
97
95
  - !ruby/object:Gem::Dependency
98
96
  name: rr
99
- version_requirements: !ruby/object:Gem::Requirement
97
+ requirement: !ruby/object:Gem::Requirement
98
+ none: false
100
99
  requirements:
101
100
  - - ~>
102
101
  - !ruby/object:Gem::Version
103
102
  version: 1.0.4
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
104
106
  none: false
105
- requirement: !ruby/object:Gem::Requirement
106
107
  requirements:
107
108
  - - ~>
108
109
  - !ruby/object:Gem::Version
109
110
  version: 1.0.4
110
- none: false
111
- prerelease: false
112
- type: :development
113
111
  description: Ruby wrapper around the Esprima static code analyzer for JavaScript.
114
112
  email:
115
113
  - cdutro@twitter.com
@@ -118,10 +116,10 @@ executables: []
118
116
  extensions: []
119
117
  extra_rdoc_files: []
120
118
  files:
121
- - lib/esprima.rb
122
119
  - lib/esprima/ast.rb
123
120
  - lib/esprima/parser.rb
124
121
  - lib/esprima/version.rb
122
+ - lib/esprima.rb
125
123
  - spec/ast_spec.rb
126
124
  - spec/esprima_spec.rb
127
125
  - spec/parser_spec.rb
@@ -136,28 +134,26 @@ files:
136
134
  - esprima.gemspec
137
135
  homepage: http://esprima.org
138
136
  licenses: []
139
- post_install_message:
137
+ post_install_message:
140
138
  rdoc_options: []
141
139
  require_paths:
142
140
  - lib
143
141
  required_ruby_version: !ruby/object:Gem::Requirement
142
+ none: false
144
143
  requirements:
145
144
  - - ! '>='
146
145
  - !ruby/object:Gem::Version
147
- version: !binary |-
148
- MA==
149
- none: false
146
+ version: '0'
150
147
  required_rubygems_version: !ruby/object:Gem::Requirement
148
+ none: false
151
149
  requirements:
152
150
  - - ! '>='
153
151
  - !ruby/object:Gem::Version
154
- version: !binary |-
155
- MA==
156
- none: false
152
+ version: '0'
157
153
  requirements: []
158
- rubyforge_project:
159
- rubygems_version: 1.8.24
160
- signing_key:
154
+ rubyforge_project:
155
+ rubygems_version: 1.8.23
156
+ signing_key:
161
157
  specification_version: 3
162
158
  summary: Ruby wrapper around the Esprima static code analyzer for JavaScript.
163
159
  test_files: []