clapton 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/clapton/engine.rb +1 -1
- data/lib/clapton/test_helper/base.rb +1 -1
- data/lib/clapton/version.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f88a3c4f18d2b7b88414e36366129851c5edf38ce1fdefb0ff17b81a34ff1f1
|
4
|
+
data.tar.gz: 7fa52de397a29a416b48cdc1a50d291618546ba38e0adf014b2907c57eff6982
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55b858f91dc9bef90d79e8ea714ece958e85af9dacb2e6d99a1f3e79e146f2c612c8536d615b21b8fe6d87b3a31f7acfb07f5f9d0c3650f91b3bc0eb57d3b7d6
|
7
|
+
data.tar.gz: 9c2f938f18a19c296bc3d2c2ea513ca8f1f964266c377d00e28c8a51676fbf4dae33c9ef42d5b2a97ba15159e2496bbf4480e54ccd605c030446c19a2835c6c3
|
data/README.md
CHANGED
data/lib/clapton/engine.rb
CHANGED
@@ -49,7 +49,7 @@ module Clapton
|
|
49
49
|
js += "\n"
|
50
50
|
end
|
51
51
|
code = code.gsub(/([^a-zA-Z0-9])c\.(\w+?)\(/, '\1@c.\2(')
|
52
|
-
code = code.gsub(/([^a-zA-Z0-9])c\.(\w+?)
|
52
|
+
code = code.gsub(/([^a-zA-Z0-9])c\.(\w+?)(\.|$)/, '\1@c.\2()\3')
|
53
53
|
js += Ruby2JS.convert(code, preset: true)
|
54
54
|
js += "\n"
|
55
55
|
js += "export { #{File.basename(file, ".rb").camelize} };"
|
@@ -8,7 +8,7 @@ module Clapton
|
|
8
8
|
Dir.glob(Rails.root.join("app", "components", "**", "*.rb")).each do |file|
|
9
9
|
code = File.read(file)
|
10
10
|
code = code.gsub(/([^a-zA-Z0-9])c\.(\w+?)\(/, '\1@c.\2(')
|
11
|
-
code = code.gsub(/([^a-zA-Z0-9])c\.(\w+?)
|
11
|
+
code = code.gsub(/([^a-zA-Z0-9])c\.(\w+?)(\.|$)/, '\1@c.\2()\3')
|
12
12
|
js += Ruby2JS.convert(code, preset: true)
|
13
13
|
js += "\n"
|
14
14
|
end
|
data/lib/clapton/version.rb
CHANGED