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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f420efd6abefefc796433bad77369a93a3686057519240abf5a9e118758ade2
4
- data.tar.gz: f34d535b066e305f893bd291e464d2dfd231df8fbf837b04668fcbaa0a0b4b84
3
+ metadata.gz: 4f88a3c4f18d2b7b88414e36366129851c5edf38ce1fdefb0ff17b81a34ff1f1
4
+ data.tar.gz: 7fa52de397a29a416b48cdc1a50d291618546ba38e0adf014b2907c57eff6982
5
5
  SHA512:
6
- metadata.gz: '08125a3863fc85cae262381041e72fdacdfc1fe8dd4f677cd4f5f55e658b713b3c8fa6238289c2b0fc1b5e4cc1bbb4e9ead48179eee8af6cde67b26fe5293e30'
7
- data.tar.gz: 6e9a70c6be7c02f4642d44ce4f766ea8a72460962e8a0437f71bafbdaad11df2f0cfbe6fd4c10953a63ab0d324c5720286a17edc5dc66a59ca4637c5ef239258
6
+ metadata.gz: 55b858f91dc9bef90d79e8ea714ece958e85af9dacb2e6d99a1f3e79e146f2c612c8536d615b21b8fe6d87b3a31f7acfb07f5f9d0c3650f91b3bc0eb57d3b7d6
7
+ data.tar.gz: 9c2f938f18a19c296bc3d2c2ea513ca8f1f964266c377d00e28c8a51676fbf4dae33c9ef42d5b2a97ba15159e2496bbf4480e54ccd605c030446c19a2835c6c3
data/README.md CHANGED
@@ -183,7 +183,7 @@ end
183
183
  block_quote = Clapton::BlockQuote.new
184
184
  block_quote.add(Clapton::Text.new("Hello"))
185
185
 
186
- box = **Clapton**::Box.new
186
+ box = Clapton::Box.new
187
187
  box.add(Clapton::Text.new("Hello"))
188
188
 
189
189
  button = Clapton::Button.new
@@ -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+?)\./, '\1@c.\2().')
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+?)\./, '\1@c.\2().')
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
@@ -1,3 +1,4 @@
1
1
  module Clapton
2
- VERSION = '0.0.16'
2
+ VERSION = '0.0.17'
3
3
  end
4
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clapton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moeki Kawakami