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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d96826c703ed32f6706b5656dc5d9714fc0ea536ff095ae7eca824c31d84bc4
4
- data.tar.gz: 6dcb8ca8dbbab7cb530dffb4268ac749b9575b3590f32d7f2df97baee39a6a5d
3
+ metadata.gz: 5a69f6b50e12d2656c4e56ea26907b860f49f74c386b33899cb56f987ab63161
4
+ data.tar.gz: c4aa0019acf0fb2573d8bede7112f371c446df08e82d3e88f67889c7a28d3e03
5
5
  SHA512:
6
- metadata.gz: 537013541a4d5ea316e1fe75f0aa771c081fd7a879d14cc98b81d2cfc9d02404439ff79ae969d90a46fe2c943de904082742728c2c819de5ac1947c6d2e9ff13
7
- data.tar.gz: 1528ecd60b20e8f8876ca77c4bfc0c9c8de15fe7cc2773fbcfd2ee97f57facade6258341975f3efc6c3270d0a73da4fd4907b99af126e1c071f2c86be725b8cc
6
+ metadata.gz: 4f714e419f33f1ee5a3a1c9e0a3eadc682d219bb3ba89347dcbee75bb2b70d7b8c123a9abc7d3f6053e7daf874d2a361a4acc7b36b4eab4c857782eb14095106
7
+ data.tar.gz: 59ae4e4669c37a77bfd1c4287af8ecea6704009f7145a35568451c0634efb81de0c5a509b11472ccf159835f063b032cf6d0be2d6711a42bf1b1eaa421f4b981
@@ -16,13 +16,11 @@ module Clapton
16
16
  ActionCable.server.config.logger = Rails.logger
17
17
  end
18
18
 
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"))
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
@@ -1,3 +1,3 @@
1
1
  module Clapton
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.12'
3
3
  end
@@ -1,4 +1,6 @@
1
- # desc "Explaining what the task does"
2
- # task :clapton do
3
- # # Task goes here
4
- # end
1
+ namespace :clapton do
2
+ task compile: :environment do
3
+ Clapton::Engine.compile_components
4
+ puts "Clapton components compiled"
5
+ end
6
+ 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.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moeki Kawakami