ruby2js 4.0.1 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/lib/ruby2js.rb +13 -2
- data/lib/ruby2js/converter.rb +31 -0
- data/lib/ruby2js/converter/args.rb +1 -1
- data/lib/ruby2js/converter/class.rb +6 -4
- data/lib/ruby2js/converter/class2.rb +4 -4
- data/lib/ruby2js/converter/def.rb +7 -1
- data/lib/ruby2js/converter/dstr.rb +3 -1
- data/lib/ruby2js/converter/for.rb +1 -1
- data/lib/ruby2js/converter/next.rb +10 -2
- data/lib/ruby2js/converter/redo.rb +14 -0
- data/lib/ruby2js/converter/return.rb +1 -1
- data/lib/ruby2js/converter/send.rb +1 -0
- data/lib/ruby2js/converter/taglit.rb +9 -2
- data/lib/ruby2js/converter/while.rb +1 -1
- data/lib/ruby2js/converter/whilepost.rb +1 -1
- data/lib/ruby2js/filter/functions.rb +44 -9
- data/lib/ruby2js/filter/lit-element.rb +202 -0
- data/lib/ruby2js/filter/react.rb +155 -91
- data/lib/ruby2js/filter/stimulus.rb +4 -2
- data/lib/ruby2js/filter/tagged_templates.rb +4 -2
- data/lib/ruby2js/rails.rb +6 -59
- data/lib/ruby2js/serializer.rb +16 -11
- data/lib/ruby2js/sprockets.rb +40 -0
- data/lib/ruby2js/version.rb +2 -2
- data/lib/tasks/README.md +4 -0
- data/lib/tasks/install/app/javascript/elements/index.js +2 -0
- data/lib/tasks/install/config/webpack/loaders/ruby2js.js +20 -0
- data/lib/tasks/install/litelement.rb +9 -0
- data/lib/tasks/install/preact.rb +3 -0
- data/lib/tasks/install/react.rb +2 -0
- data/lib/tasks/install/stimulus-sprockets.rb +32 -0
- data/lib/tasks/install/stimulus-webpacker.rb +5 -0
- data/lib/tasks/install/webpacker.rb +80 -0
- data/lib/tasks/nodetest.js +47 -0
- data/lib/tasks/ruby2js_tasks.rake +47 -0
- data/ruby2js.gemspec +1 -1
- metadata +18 -4
data/ruby2js.gemspec
CHANGED
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: 4.0
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Ruby
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-03-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parser
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 2.
|
34
|
+
version: 2.1.1
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 2.
|
41
|
+
version: 2.1.1
|
42
42
|
description: |2
|
43
43
|
The base package maps Ruby syntax to JavaScript semantics.
|
44
44
|
Filters may be provided to add Ruby-specific or framework specific
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- lib/ruby2js/converter/nthref.rb
|
92
92
|
- lib/ruby2js/converter/opasgn.rb
|
93
93
|
- lib/ruby2js/converter/prototype.rb
|
94
|
+
- lib/ruby2js/converter/redo.rb
|
94
95
|
- lib/ruby2js/converter/regexp.rb
|
95
96
|
- lib/ruby2js/converter/return.rb
|
96
97
|
- lib/ruby2js/converter/self.rb
|
@@ -134,6 +135,7 @@ files:
|
|
134
135
|
- lib/ruby2js/filter/functions.rb
|
135
136
|
- lib/ruby2js/filter/jquery.rb
|
136
137
|
- lib/ruby2js/filter/jsx.rb
|
138
|
+
- lib/ruby2js/filter/lit-element.rb
|
137
139
|
- lib/ruby2js/filter/matchAll.rb
|
138
140
|
- lib/ruby2js/filter/minitest-jasmine.rb
|
139
141
|
- lib/ruby2js/filter/node.rb
|
@@ -152,8 +154,20 @@ files:
|
|
152
154
|
- lib/ruby2js/rails.rb
|
153
155
|
- lib/ruby2js/serializer.rb
|
154
156
|
- lib/ruby2js/sinatra.rb
|
157
|
+
- lib/ruby2js/sprockets.rb
|
155
158
|
- lib/ruby2js/strict.rb
|
156
159
|
- lib/ruby2js/version.rb
|
160
|
+
- lib/tasks/README.md
|
161
|
+
- lib/tasks/install/app/javascript/elements/index.js
|
162
|
+
- lib/tasks/install/config/webpack/loaders/ruby2js.js
|
163
|
+
- lib/tasks/install/litelement.rb
|
164
|
+
- lib/tasks/install/preact.rb
|
165
|
+
- lib/tasks/install/react.rb
|
166
|
+
- lib/tasks/install/stimulus-sprockets.rb
|
167
|
+
- lib/tasks/install/stimulus-webpacker.rb
|
168
|
+
- lib/tasks/install/webpacker.rb
|
169
|
+
- lib/tasks/nodetest.js
|
170
|
+
- lib/tasks/ruby2js_tasks.rake
|
157
171
|
- ruby2js.gemspec
|
158
172
|
homepage: http://github.com/rubys/ruby2js
|
159
173
|
licenses:
|