clapton 0.0.10 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clapton/engine.rb +4 -6
- data/lib/clapton/version.rb +1 -1
- data/lib/tasks/clapton_tasks.rake +6 -4
- 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: 5a69f6b50e12d2656c4e56ea26907b860f49f74c386b33899cb56f987ab63161
|
4
|
+
data.tar.gz: c4aa0019acf0fb2573d8bede7112f371c446df08e82d3e88f67889c7a28d3e03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f714e419f33f1ee5a3a1c9e0a3eadc682d219bb3ba89347dcbee75bb2b70d7b8c123a9abc7d3f6053e7daf874d2a361a4acc7b36b4eab4c857782eb14095106
|
7
|
+
data.tar.gz: 59ae4e4669c37a77bfd1c4287af8ecea6704009f7145a35568451c0634efb81de0c5a509b11472ccf159835f063b032cf6d0be2d6711a42bf1b1eaa421f4b981
|
data/lib/clapton/engine.rb
CHANGED
@@ -16,13 +16,11 @@ module Clapton
|
|
16
16
|
ActionCable.server.config.logger = Rails.logger
|
17
17
|
end
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
if Rails.env.development? || Rails.env.test?
|
20
|
+
components_path = Rails.root.join("app", "components")
|
21
|
+
FileUtils.mkdir_p(components_path) unless components_path.exist?
|
22
|
+
FileUtils.touch(components_path.join(".keep"))
|
22
23
|
|
23
|
-
compile_components
|
24
|
-
|
25
|
-
Rails.env.development? do
|
26
24
|
listener = Listen.to(Rails.root.join("app", "components")) do |modified, added, removed|
|
27
25
|
compile_components
|
28
26
|
end
|
data/lib/clapton/version.rb
CHANGED