clapton 0.0.10 → 0.0.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d96826c703ed32f6706b5656dc5d9714fc0ea536ff095ae7eca824c31d84bc4
4
- data.tar.gz: 6dcb8ca8dbbab7cb530dffb4268ac749b9575b3590f32d7f2df97baee39a6a5d
3
+ metadata.gz: de5da62107c88924d00beff129af9064183ac535a0562b6d643c40b7e31e04ef
4
+ data.tar.gz: 77fe202f9dc0a04d163e42f876a8d2da74d36fd23f4216ebca8f0acc3997a90a
5
5
  SHA512:
6
- metadata.gz: 537013541a4d5ea316e1fe75f0aa771c081fd7a879d14cc98b81d2cfc9d02404439ff79ae969d90a46fe2c943de904082742728c2c819de5ac1947c6d2e9ff13
7
- data.tar.gz: 1528ecd60b20e8f8876ca77c4bfc0c9c8de15fe7cc2773fbcfd2ee97f57facade6258341975f3efc6c3270d0a73da4fd4907b99af126e1c071f2c86be725b8cc
6
+ metadata.gz: 82e99e9ccde384bf5a0a6b3645511da0e379bb5bfb49d85c006c852efca41aa987950fcbeb4bb1876220596b74432e1fb64f715a769b057b58ea9a7e1a43a309
7
+ data.tar.gz: ce5ad2a40e2f943b403973c392fd6587ed0b401e86f076de0409ba51fe7664616fe20334d2ed6a819a7c2705b6942e48db2afb66c6e9539554a0bae6c0b62c37
@@ -17,12 +17,13 @@ module Clapton
17
17
  end
18
18
 
19
19
  components_path = Rails.root.join("app", "components")
20
- FileUtils.mkdir_p(components_path) unless components_path.exist?
21
- FileUtils.touch(components_path.join(".keep"))
22
20
 
23
- compile_components
21
+ compile_components if components_path.exist?
22
+
23
+ if Rails.env.development?
24
+ FileUtils.mkdir_p(components_path) unless components_path.exist?
25
+ FileUtils.touch(components_path.join(".keep"))
24
26
 
25
- Rails.env.development? do
26
27
  listener = Listen.to(Rails.root.join("app", "components")) do |modified, added, removed|
27
28
  compile_components
28
29
  end
@@ -1,3 +1,3 @@
1
1
  module Clapton
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
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.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moeki Kawakami