ruby2js 4.1.4 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/ruby2js +4 -0
- data/demo/ruby2js.rb +677 -0
- data/lib/ruby2js/converter/def.rb +3 -1
- data/lib/ruby2js/converter/logical.rb +3 -3
- data/lib/ruby2js/converter/return.rb +1 -1
- data/lib/ruby2js/converter.rb +2 -2
- data/lib/ruby2js/demo.rb +28 -0
- data/lib/ruby2js/filter/active_functions.rb +9 -1
- data/lib/ruby2js/filter/camelCase.rb +2 -2
- data/lib/ruby2js/filter/esm.rb +28 -14
- data/lib/ruby2js/filter/functions.rb +11 -3
- data/lib/ruby2js/filter/lit-element.rb +2 -218
- data/lib/ruby2js/filter/lit.rb +290 -0
- data/lib/ruby2js/filter/react.rb +18 -5
- data/lib/ruby2js/filter/stimulus.rb +2 -2
- data/lib/ruby2js/filter/underscore.rb +23 -17
- data/lib/ruby2js/version.rb +2 -2
- data/lib/tasks/install/{litelement.rb → lit-webpacker.rb} +2 -2
- data/lib/tasks/install/stimulus-rollup.rb +44 -0
- data/lib/tasks/install/stimulus-sprockets.rb +16 -23
- data/lib/tasks/install/stimulus-webpacker.rb +3 -0
- data/lib/tasks/ruby2js_tasks.rake +19 -5
- data/ruby2js.gemspec +3 -1
- metadata +9 -4
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.
|
4
|
+
version: 4.2.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-10-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parser
|
@@ -44,11 +44,14 @@ description: |2
|
|
44
44
|
Filters may be provided to add Ruby-specific or framework specific
|
45
45
|
behavior.
|
46
46
|
email: rubys@intertwingly.net
|
47
|
-
executables:
|
47
|
+
executables:
|
48
|
+
- ruby2js
|
48
49
|
extensions: []
|
49
50
|
extra_rdoc_files: []
|
50
51
|
files:
|
51
52
|
- README.md
|
53
|
+
- bin/ruby2js
|
54
|
+
- demo/ruby2js.rb
|
52
55
|
- lib/ruby2js.rb
|
53
56
|
- lib/ruby2js/cgi.rb
|
54
57
|
- lib/ruby2js/converter.rb
|
@@ -137,6 +140,7 @@ files:
|
|
137
140
|
- lib/ruby2js/filter/jquery.rb
|
138
141
|
- lib/ruby2js/filter/jsx.rb
|
139
142
|
- lib/ruby2js/filter/lit-element.rb
|
143
|
+
- lib/ruby2js/filter/lit.rb
|
140
144
|
- lib/ruby2js/filter/matchAll.rb
|
141
145
|
- lib/ruby2js/filter/minitest-jasmine.rb
|
142
146
|
- lib/ruby2js/filter/node.rb
|
@@ -161,9 +165,10 @@ files:
|
|
161
165
|
- lib/tasks/README.md
|
162
166
|
- lib/tasks/install/app/javascript/elements/index.js
|
163
167
|
- lib/tasks/install/config/webpack/loaders/ruby2js.js
|
164
|
-
- lib/tasks/install/
|
168
|
+
- lib/tasks/install/lit-webpacker.rb
|
165
169
|
- lib/tasks/install/preact.rb
|
166
170
|
- lib/tasks/install/react.rb
|
171
|
+
- lib/tasks/install/stimulus-rollup.rb
|
167
172
|
- lib/tasks/install/stimulus-sprockets.rb
|
168
173
|
- lib/tasks/install/stimulus-webpacker.rb
|
169
174
|
- lib/tasks/install/webpacker.rb
|