ruby2js 1.13.1 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +74 -11
- data/lib/ruby2js/converter/send.rb +3 -0
- data/lib/ruby2js/filter/functions.rb +3 -1
- data/lib/ruby2js/filter/react.rb +7 -1
- data/lib/ruby2js/filter/require.rb +4 -0
- data/lib/ruby2js/filter/rubyjs.rb +108 -0
- data/lib/ruby2js/version.rb +2 -2
- data/ruby2js.gemspec +3 -3
- metadata +3 -2
data/README.md
CHANGED
@@ -138,23 +138,23 @@ In general, making use of a filter is as simple as requiring it. If multiple
|
|
138
138
|
filters are selected, they will all be applied in parallel in one pass through
|
139
139
|
the script.
|
140
140
|
|
141
|
-
*
|
141
|
+
* <a id="strict" href="https://github.com/rubys/ruby2js/blob/master/lib/ruby2js/filter/strict.rb">strict</a>
|
142
142
|
adds `'use strict';` to the output.
|
143
143
|
|
144
|
-
*
|
144
|
+
* <a id="return" href="https://github.com/rubys/ruby2js/blob/master/lib/ruby2js/filter/return.rb">return</a>
|
145
145
|
adds `return` to the last expression in functions.
|
146
146
|
|
147
|
-
*
|
147
|
+
* <a id="require" href="https://github.com/rubys/ruby2js/blob/master/lib/ruby2js/filter/require.rb">require</a>
|
148
148
|
supports `require` and `require_relative` statements. Contents of files
|
149
149
|
that are required are converted to JavaScript and expanded inline.
|
150
150
|
`require` function calls in expressions are left alone.
|
151
151
|
|
152
|
-
*
|
152
|
+
* <a id="camelCase" href="https://github.com/rubys/ruby2js/blob/master/lib/ruby2js/filter/camelCase.rb">camelCase</a>
|
153
153
|
converts `underscore_case` to `camelCase`. See
|
154
154
|
[camelCase_spec](https://github.com/rubys/ruby2js/blob/master/spec/camelCase_spec.rb)
|
155
155
|
for examples.
|
156
156
|
|
157
|
-
*
|
157
|
+
* <a id="functions" href="https://github.com/rubys/ruby2js/blob/master/lib/ruby2js/filter/functions.rb">functions</a>
|
158
158
|
|
159
159
|
* `.all?` becomes `.every`
|
160
160
|
* `.any?` becomes `.some`
|
@@ -170,6 +170,7 @@ the script.
|
|
170
170
|
* `.first(n)` becomes `.slice(0, n)`
|
171
171
|
* `.gsub` becomes `replace //g`
|
172
172
|
* `.include?` becomes `.indexOf() != -1`
|
173
|
+
* `.inspect` becomes `JSON.stringify()`
|
173
174
|
* `.keys` becomes `Object.keys()`
|
174
175
|
* `.last` becomes `[*.length-1]`
|
175
176
|
* `.last(n)` becomes `.slice(*.length-1, *.length)`
|
@@ -202,7 +203,69 @@ the script.
|
|
202
203
|
of `Error` instead; and default constructors will be provided
|
203
204
|
* `loop do...end` will be replaced with `while (true) {...}`
|
204
205
|
|
205
|
-
*
|
206
|
+
* <a id="rubyjs" href="https://github.com/rubys/ruby2js/blob/master/spec/rubyjs_spec.rb">rubyjs</a>
|
207
|
+
* `.at()` becomes `_a.at()`
|
208
|
+
* `.between?()` becomes `R().between()`
|
209
|
+
* `.capitalize()` becomes `_s.capitalize()`
|
210
|
+
* `.center()` becomes `_s.center()`
|
211
|
+
* `.chomp()` becomes `_s.chomp()`
|
212
|
+
* `.collect_concat()` becomes `_e.collect_concat()`
|
213
|
+
* `.compact()` becomes `_a.compact()`
|
214
|
+
* `.compact!()` becomes `_a.compact_bang()`
|
215
|
+
* `.count()` becomes `_e.count()`
|
216
|
+
* `.cycle()` becomes `_e.cycle()`
|
217
|
+
* `.delete_at()` becomes `_a.delete_at()`
|
218
|
+
* `.delete_if()` becomes `_a.delete_if()`
|
219
|
+
* `.drop_while()` becomes `_e.drop_while()`
|
220
|
+
* `.each_index()` becomes `_e.each_index()`
|
221
|
+
* `.each_slice()` becomes `_e.each_slice()`
|
222
|
+
* `.each_with_index()` becomes `_e.each_with_index()`
|
223
|
+
* `.each_with_object()` becomes `_e.each_with_object()`
|
224
|
+
* `.find_all()` becomes `_e.find_all()`
|
225
|
+
* `.find()` becomes `_e.find()`
|
226
|
+
* `.flat_map()` becomes `_e.flat_map()`
|
227
|
+
* `.flatten()` becomes `_a.flatten()`
|
228
|
+
* `.grep()` becomes `_e.grep()`
|
229
|
+
* `.group_by()` becomes `_e.group_by()`
|
230
|
+
* `.inject()` becomes `_e.inject()`
|
231
|
+
* `.insert()` becomes `_a.insert()`
|
232
|
+
* `.keep_if()` becomes `_a.keep_if()`
|
233
|
+
* `.ljust()` becomes `_s.ljust()`
|
234
|
+
* `.lstrip()` becomes `_s.lstrip()`
|
235
|
+
* `.map()` becomes `_e.map()`
|
236
|
+
* `.max_by()` becomes `_e.max_by()`
|
237
|
+
* `.min_by()` becomes `_e.min_by()`
|
238
|
+
* `.one?()` becomes `_e.one()`
|
239
|
+
* `.partition()` becomes `_e.partition()`
|
240
|
+
* `.reject()` becomes `_e.reject()`
|
241
|
+
* `.reverse()` becomes `_a.reverse()`
|
242
|
+
* `.reverse!()` becomes `_a.reverse_bang()`
|
243
|
+
* `.reverse_each()` becomes `_e.reverse_each()`
|
244
|
+
* `.rindex()` becomes `_s.rindex()`
|
245
|
+
* `.rjust()` becomes `_s.rjust()`
|
246
|
+
* `.rotate()` becomes `_a.rotate()`
|
247
|
+
* `.rotate!()` becomes `_a.rotate_bang()`
|
248
|
+
* `.rstrip()` becomes `_s.rstrip()`
|
249
|
+
* `.scan()` becomes `_s.scan()`
|
250
|
+
* `.select()` becomes `_a.select()`
|
251
|
+
* `.shift()` becomes `_a.shift()`
|
252
|
+
* `.shuffle()` becomes `_a.shuffle()`
|
253
|
+
* `.shuffle!()` becomes `_a.shuffle_bang()`
|
254
|
+
* `.slice()` becomes `_a.slice()`
|
255
|
+
* `.slice!()` becomes `_a.slice_bang()`
|
256
|
+
* `.sort_by()` becomes `_e.sort_by()`
|
257
|
+
* `.strftime()` becomes `_t.strftime()`
|
258
|
+
* `.swapcase()` becomes `_s.swapcase()`
|
259
|
+
* `.take_while()` becomes `_e.take_while(`)
|
260
|
+
* `.transpose()` becomes `_a.transpose()`
|
261
|
+
* `.tr()` becomes `_s.tr()`
|
262
|
+
* `.union()` becomes `_a.union()`
|
263
|
+
* `.uniq()` becomes `_a.uniq()`
|
264
|
+
* `.uniq!()` becomes `_a.uniq_bang()`
|
265
|
+
* `<=>` becomes `R.Comparable.cmp()`
|
266
|
+
* `(n..m)` becomes `R.Range.new()`
|
267
|
+
|
268
|
+
* <a id="underscore" href="https://github.com/rubys/ruby2js/blob/master/spec/underscore.rb">underscore</a>
|
206
269
|
|
207
270
|
* `.clone()` becomes `_.clone()`
|
208
271
|
* `.compact()` becomes `_.compact()`
|
@@ -240,7 +303,7 @@ the script.
|
|
240
303
|
expression: `reduce`, `sort_by`, `group_by`, `index_by`, `count_by`,
|
241
304
|
`find`, `select`, `reject`.
|
242
305
|
|
243
|
-
*
|
306
|
+
* <a id="jquery" href="https://github.com/rubys/ruby2js/blob/master/spec/jquery.rb">jquery</a>
|
244
307
|
|
245
308
|
* maps Ruby unary operator `~` to jQuery `$` function
|
246
309
|
* maps Ruby attribute syntax to jquery attribute syntax
|
@@ -248,7 +311,7 @@ the script.
|
|
248
311
|
* defaults the fourth parameter of $$.post to `"json"`, allowing Ruby block
|
249
312
|
syntax to be used for the success function.
|
250
313
|
|
251
|
-
*
|
314
|
+
* <a id="angularrb" href="https://github.com/rubys/ruby2js/blob/master/spec/angularrb.rb">angularrb</a>
|
252
315
|
|
253
316
|
* maps Ruby `module` to `angular.module`
|
254
317
|
* maps `filter`, `controller`, `factory`, and `directive` to calls to
|
@@ -269,19 +332,19 @@ the script.
|
|
269
332
|
* maps `timeout` and `interval` calls with a block to `$timeout` and
|
270
333
|
`$interval` calls where the block is passed as the first parameter.
|
271
334
|
|
272
|
-
*
|
335
|
+
* <a id="angular-route" href="https://github.com/rubys/ruby2js/blob/master/lib/ruby2js/filter/angular-routerb.rb">angular-route</a>
|
273
336
|
|
274
337
|
* maps `case` statements on `$routeProvider` to angular.js module
|
275
338
|
configuration.
|
276
339
|
* adds implicit module `use` of `ngRoute` when such a `case` statement
|
277
340
|
is encountered
|
278
341
|
|
279
|
-
*
|
342
|
+
* <a id="angular-resource" href="https://github.com/rubys/ruby2js/blob/master/lib/ruby2js/filter/angular-resource.rb">angular-resource</a>
|
280
343
|
* maps `$resource.new` statements on `$resource` function calls.
|
281
344
|
* adds implicit module `use` of `ngResource` when `$resource.new` calls
|
282
345
|
are encountered
|
283
346
|
|
284
|
-
*
|
347
|
+
* <a id="minitest-jasmine" href="https://github.com/rubys/ruby2js/blob/master/spec/minitest-jasmine.rb">minitest-jasmine</a>
|
285
348
|
* maps subclasses of `Minitest::Test` to `describe` calls
|
286
349
|
* maps `test_` methods inside subclasses of `Minitest::Test` to `it` calls
|
287
350
|
* maps `setup`, `teardown`, `before`, and `after` calls to `beforeEach`
|
@@ -79,6 +79,9 @@ module Ruby2JS
|
|
79
79
|
elsif method == :<< and args.length == 1 and @state == :statement
|
80
80
|
"#{ parse receiver }.push(#{ parse args.first })"
|
81
81
|
|
82
|
+
elsif method == :<=>
|
83
|
+
raise NotImplementedError, "use of <=>"
|
84
|
+
|
82
85
|
elsif OPERATORS.flatten.include?(method) and not LOGICAL.include?(method)
|
83
86
|
"#{ group_receiver ? group(receiver) : parse(receiver) } #{ method } #{ group_target ? group(target) : parse(target) }"
|
84
87
|
|
@@ -198,7 +198,6 @@ module Ruby2JS
|
|
198
198
|
elsif method == :reverse! and node.is_method?
|
199
199
|
# input: a.reverse!
|
200
200
|
# output: a.splice(0, a.length, *a.reverse)
|
201
|
-
target = node.children.first
|
202
201
|
process s(:send, target, :splice, s(:int, 0),
|
203
202
|
s(:attr, target, :length), s(:splat, s(:send, target,
|
204
203
|
:"#{node.children[1].to_s[0..-2]}", *node.children[2..-1])))
|
@@ -206,6 +205,9 @@ module Ruby2JS
|
|
206
205
|
elsif method == :each_with_index
|
207
206
|
process node.updated nil, [target, :forEach, *args]
|
208
207
|
|
208
|
+
elsif method == :inspect and args.length == 0
|
209
|
+
s(:send, s(:const, nil, :JSON), :stringify, process(target))
|
210
|
+
|
209
211
|
else
|
210
212
|
super
|
211
213
|
end
|
data/lib/ruby2js/filter/react.rb
CHANGED
@@ -90,7 +90,13 @@ module Ruby2JS
|
|
90
90
|
|
91
91
|
if node.children[0] == nil and node.children[1] == :_
|
92
92
|
# text nodes
|
93
|
-
|
93
|
+
if @reactApply
|
94
|
+
# if apply is set, emit code that pushes text
|
95
|
+
s(:send, s(:gvar, :$_), :push, node.children[2])
|
96
|
+
else
|
97
|
+
# simple/normal case: simply return the text
|
98
|
+
node.children[2]
|
99
|
+
end
|
94
100
|
|
95
101
|
elsif node.children[0] == nil and node.children[1] =~ /^_\w/
|
96
102
|
# map method calls starting with an underscore to React calls
|
@@ -0,0 +1,108 @@
|
|
1
|
+
require 'ruby2js'
|
2
|
+
|
3
|
+
module Ruby2JS
|
4
|
+
module Filter
|
5
|
+
module RubyJS
|
6
|
+
include SEXP
|
7
|
+
|
8
|
+
def on_send(node)
|
9
|
+
# leave functional style calls alone
|
10
|
+
target = node.children.first
|
11
|
+
return super if target and [:_s, :_a, :_h, :_n, :_i, :_t].
|
12
|
+
include? target.children[1]
|
13
|
+
|
14
|
+
# leave classic ("OO") style call chains alone
|
15
|
+
while target and target.type == :send
|
16
|
+
return super if target.children[1] == :R
|
17
|
+
target = target.children.first
|
18
|
+
end
|
19
|
+
|
20
|
+
if
|
21
|
+
[:capitalize, :center, :chomp, :ljust, :lstrip, :rindex, :rjust,
|
22
|
+
:rstrip, :scan, :swapcase, :tr].include? node.children[1]
|
23
|
+
then
|
24
|
+
# map selected string functions
|
25
|
+
s(:send, s(:lvar, :_s), node.children[1],
|
26
|
+
*process_all([node.children[0], *node.children[2..-1]]))
|
27
|
+
|
28
|
+
elsif
|
29
|
+
[:at, :compact, :compact!, :delete_at, :delete_at, :flatten, :insert,
|
30
|
+
:reverse, :reverse!, :rotate, :rotate, :rotate!, :shift, :shuffle,
|
31
|
+
:shuffle!, :slice, :slice!, :transpose, :union, :uniq, :uniq!]
|
32
|
+
.include? node.children[1]
|
33
|
+
then
|
34
|
+
# map selected array functions
|
35
|
+
s(:send, s(:lvar, :_a), node.children[1].to_s.sub("!", '_bang'),
|
36
|
+
*process_all([node.children[0], *node.children[2..-1]]))
|
37
|
+
|
38
|
+
|
39
|
+
elsif [:strftime].include? node.children[1]
|
40
|
+
# map selected time functions
|
41
|
+
s(:send, s(:lvar, :_t), node.children[1],
|
42
|
+
*process_all([node.children[0], *node.children[2..-1]]))
|
43
|
+
|
44
|
+
elsif node.children[1] == :<=>
|
45
|
+
s(:send, s(:attr, s(:const, nil, :R), :Comparable), :cmp,
|
46
|
+
node.children[0], *node.children[2..-1])
|
47
|
+
|
48
|
+
elsif node.children[1] == :between?
|
49
|
+
s(:send, s(:send, nil, :R, node.children[0]), :between,
|
50
|
+
*node.children[2..-1])
|
51
|
+
|
52
|
+
else
|
53
|
+
super
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def on_block(node)
|
58
|
+
call, args, *block = node.children
|
59
|
+
|
60
|
+
if
|
61
|
+
[:collect_concat, :count, :cycle, :delete_if, :drop_while,
|
62
|
+
:each_index, :each_slice, :each_with_index, :each_with_object,
|
63
|
+
:find, :find_all, :flat_map, :inject, :grep, :group_by, :keep_if,
|
64
|
+
:map, :max_by, :min_by, :one?, :partition, :reject, :reverse_each,
|
65
|
+
:select!, :sort_by, :take_while].include? call.children[1]
|
66
|
+
then
|
67
|
+
if
|
68
|
+
[:collect_concat, :count, :delete_if, :drop_while, :find,
|
69
|
+
:find_all, :flat_map, :grep, :group_by, :keep_if, :map, :max_by,
|
70
|
+
:min_by, :one?, :partition, :reject, :select!, :sort_by,
|
71
|
+
:take_while].include? call.children[1]
|
72
|
+
then
|
73
|
+
block = [ s(:autoreturn, *block) ]
|
74
|
+
end
|
75
|
+
|
76
|
+
lvar = [:each_index, :keep_if, :select!].
|
77
|
+
include?(call.children[1]) ? :_a : :_e
|
78
|
+
|
79
|
+
if call.children[1] == :find and call.children.length == 2
|
80
|
+
call = s(:send, *call.children, s(:nil))
|
81
|
+
elsif call.children[1] == :inject and call.children.length == 3
|
82
|
+
call = s(:send, *call.children, s(:nil))
|
83
|
+
elsif call.children[1] == :select!
|
84
|
+
call = s(:send, call.children.first, :select_bang,
|
85
|
+
*call.children[2..-1])
|
86
|
+
end
|
87
|
+
|
88
|
+
s(:block, s(:send, s(:lvar, lvar), call.children[1],
|
89
|
+
*process_all([call.children[0], *call.children[2..-1]])),
|
90
|
+
args, *block)
|
91
|
+
else
|
92
|
+
super
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
def on_irange(node)
|
97
|
+
s(:send, s(:attr, s(:const, nil, :R), :Range), :new, *node.children)
|
98
|
+
end
|
99
|
+
|
100
|
+
def on_erange(node)
|
101
|
+
s(:send, s(:attr, s(:const, nil, :R), :Range), :new, *node.children,
|
102
|
+
s(:true))
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
DEFAULTS.push RubyJS
|
107
|
+
end
|
108
|
+
end
|
data/lib/ruby2js/version.rb
CHANGED
data/ruby2js.gemspec
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "ruby2js"
|
5
|
-
s.version = "1.
|
5
|
+
s.version = "1.14.0"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Sam Ruby"]
|
9
|
-
s.date = "2015-02-
|
9
|
+
s.date = "2015-02-17"
|
10
10
|
s.description = " The base package maps Ruby syntax to JavaScript semantics.\n Filters may be provided to add Ruby-specific or framework specific\n behavior.\n"
|
11
11
|
s.email = "rubys@intertwingly.net"
|
12
|
-
s.files = ["ruby2js.gemspec", "README.md", "lib/ruby2js", "lib/ruby2js/execjs.rb", "lib/ruby2js/converter.rb", "lib/ruby2js/version.rb", "lib/ruby2js/filter", "lib/ruby2js/filter/jquery.rb", "lib/ruby2js/filter/return.rb", "lib/ruby2js/filter/underscore.rb", "lib/ruby2js/filter/require.rb", "lib/ruby2js/filter/angularrb.rb", "lib/ruby2js/filter/minitest-jasmine.rb", "lib/ruby2js/filter/camelCase.rb", "lib/ruby2js/filter/strict.rb", "lib/ruby2js/filter/functions.rb", "lib/ruby2js/filter/angular-resource.rb", "lib/ruby2js/filter/react.rb", "lib/ruby2js/filter/angular-route.rb", "lib/ruby2js/sinatra.rb", "lib/ruby2js/rails.rb", "lib/ruby2js/cgi.rb", "lib/ruby2js/converter", "lib/ruby2js/converter/self.rb", "lib/ruby2js/converter/arg.rb", "lib/ruby2js/converter/dstr.rb", "lib/ruby2js/converter/xstr.rb", "lib/ruby2js/converter/sym.rb", "lib/ruby2js/converter/return.rb", "lib/ruby2js/converter/break.rb", "lib/ruby2js/converter/for.rb", "lib/ruby2js/converter/defined.rb", "lib/ruby2js/converter/cvasgn.rb", "lib/ruby2js/converter/whilepost.rb", "lib/ruby2js/converter/logical.rb", "lib/ruby2js/converter/args.rb", "lib/ruby2js/converter/def.rb", "lib/ruby2js/converter/prototype.rb", "lib/ruby2js/converter/class.rb", "lib/ruby2js/converter/nthref.rb", "lib/ruby2js/converter/opasgn.rb", "lib/ruby2js/converter/module.rb", "lib/ruby2js/converter/kwbegin.rb", "lib/ruby2js/converter/send.rb", "lib/ruby2js/converter/boolean.rb", "lib/ruby2js/converter/masgn.rb", "lib/ruby2js/converter/hash.rb", "lib/ruby2js/converter/cvar.rb", "lib/ruby2js/converter/ivasgn.rb", "lib/ruby2js/converter/case.rb", "lib/ruby2js/converter/const.rb", "lib/ruby2js/converter/vasgn.rb", "lib/ruby2js/converter/untilpost.rb", "lib/ruby2js/converter/begin.rb", "lib/ruby2js/converter/ivar.rb", "lib/ruby2js/converter/while.rb", "lib/ruby2js/converter/next.rb", "lib/ruby2js/converter/nil.rb", "lib/ruby2js/converter/blockpass.rb", "lib/ruby2js/converter/super.rb", "lib/ruby2js/converter/defs.rb", "lib/ruby2js/converter/array.rb", "lib/ruby2js/converter/block.rb", "lib/ruby2js/converter/if.rb", "lib/ruby2js/converter/until.rb", "lib/ruby2js/converter/regexp.rb", "lib/ruby2js/converter/casgn.rb", "lib/ruby2js/converter/undef.rb", "lib/ruby2js/converter/literal.rb", "lib/ruby2js/converter/var.rb", "lib/ruby2js.rb"]
|
12
|
+
s.files = ["ruby2js.gemspec", "README.md", "lib/ruby2js", "lib/ruby2js/execjs.rb", "lib/ruby2js/converter.rb", "lib/ruby2js/version.rb", "lib/ruby2js/filter", "lib/ruby2js/filter/jquery.rb", "lib/ruby2js/filter/return.rb", "lib/ruby2js/filter/underscore.rb", "lib/ruby2js/filter/require.rb", "lib/ruby2js/filter/angularrb.rb", "lib/ruby2js/filter/minitest-jasmine.rb", "lib/ruby2js/filter/camelCase.rb", "lib/ruby2js/filter/rubyjs.rb", "lib/ruby2js/filter/strict.rb", "lib/ruby2js/filter/functions.rb", "lib/ruby2js/filter/angular-resource.rb", "lib/ruby2js/filter/react.rb", "lib/ruby2js/filter/angular-route.rb", "lib/ruby2js/sinatra.rb", "lib/ruby2js/rails.rb", "lib/ruby2js/cgi.rb", "lib/ruby2js/converter", "lib/ruby2js/converter/self.rb", "lib/ruby2js/converter/arg.rb", "lib/ruby2js/converter/dstr.rb", "lib/ruby2js/converter/xstr.rb", "lib/ruby2js/converter/sym.rb", "lib/ruby2js/converter/return.rb", "lib/ruby2js/converter/break.rb", "lib/ruby2js/converter/for.rb", "lib/ruby2js/converter/defined.rb", "lib/ruby2js/converter/cvasgn.rb", "lib/ruby2js/converter/whilepost.rb", "lib/ruby2js/converter/logical.rb", "lib/ruby2js/converter/args.rb", "lib/ruby2js/converter/def.rb", "lib/ruby2js/converter/prototype.rb", "lib/ruby2js/converter/class.rb", "lib/ruby2js/converter/nthref.rb", "lib/ruby2js/converter/opasgn.rb", "lib/ruby2js/converter/module.rb", "lib/ruby2js/converter/kwbegin.rb", "lib/ruby2js/converter/send.rb", "lib/ruby2js/converter/boolean.rb", "lib/ruby2js/converter/masgn.rb", "lib/ruby2js/converter/hash.rb", "lib/ruby2js/converter/cvar.rb", "lib/ruby2js/converter/ivasgn.rb", "lib/ruby2js/converter/case.rb", "lib/ruby2js/converter/const.rb", "lib/ruby2js/converter/vasgn.rb", "lib/ruby2js/converter/untilpost.rb", "lib/ruby2js/converter/begin.rb", "lib/ruby2js/converter/ivar.rb", "lib/ruby2js/converter/while.rb", "lib/ruby2js/converter/next.rb", "lib/ruby2js/converter/nil.rb", "lib/ruby2js/converter/blockpass.rb", "lib/ruby2js/converter/super.rb", "lib/ruby2js/converter/defs.rb", "lib/ruby2js/converter/array.rb", "lib/ruby2js/converter/block.rb", "lib/ruby2js/converter/if.rb", "lib/ruby2js/converter/until.rb", "lib/ruby2js/converter/regexp.rb", "lib/ruby2js/converter/casgn.rb", "lib/ruby2js/converter/undef.rb", "lib/ruby2js/converter/literal.rb", "lib/ruby2js/converter/var.rb", "lib/ruby2js.rb"]
|
13
13
|
s.homepage = "http://github.com/rubys/ruby2js"
|
14
14
|
s.licenses = ["MIT"]
|
15
15
|
s.require_paths = ["lib"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby2js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.14.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-02-
|
12
|
+
date: 2015-02-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parser
|
@@ -46,6 +46,7 @@ files:
|
|
46
46
|
- lib/ruby2js/filter/angularrb.rb
|
47
47
|
- lib/ruby2js/filter/minitest-jasmine.rb
|
48
48
|
- lib/ruby2js/filter/camelCase.rb
|
49
|
+
- lib/ruby2js/filter/rubyjs.rb
|
49
50
|
- lib/ruby2js/filter/strict.rb
|
50
51
|
- lib/ruby2js/filter/functions.rb
|
51
52
|
- lib/ruby2js/filter/angular-resource.rb
|