clapton 0.0.11 → 0.0.12

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: de5da62107c88924d00beff129af9064183ac535a0562b6d643c40b7e31e04ef
4
- data.tar.gz: 77fe202f9dc0a04d163e42f876a8d2da74d36fd23f4216ebca8f0acc3997a90a
3
+ metadata.gz: 5a69f6b50e12d2656c4e56ea26907b860f49f74c386b33899cb56f987ab63161
4
+ data.tar.gz: c4aa0019acf0fb2573d8bede7112f371c446df08e82d3e88f67889c7a28d3e03
5
5
  SHA512:
6
- metadata.gz: 82e99e9ccde384bf5a0a6b3645511da0e379bb5bfb49d85c006c852efca41aa987950fcbeb4bb1876220596b74432e1fb64f715a769b057b58ea9a7e1a43a309
7
- data.tar.gz: ce5ad2a40e2f943b403973c392fd6587ed0b401e86f076de0409ba51fe7664616fe20334d2ed6a819a7c2705b6942e48db2afb66c6e9539554a0bae6c0b62c37
6
+ metadata.gz: 4f714e419f33f1ee5a3a1c9e0a3eadc682d219bb3ba89347dcbee75bb2b70d7b8c123a9abc7d3f6053e7daf874d2a361a4acc7b36b4eab4c857782eb14095106
7
+ data.tar.gz: 59ae4e4669c37a77bfd1c4287af8ecea6704009f7145a35568451c0634efb81de0c5a509b11472ccf159835f063b032cf6d0be2d6711a42bf1b1eaa421f4b981
@@ -16,11 +16,8 @@ module Clapton
16
16
  ActionCable.server.config.logger = Rails.logger
17
17
  end
18
18
 
19
- components_path = Rails.root.join("app", "components")
20
-
21
- compile_components if components_path.exist?
22
-
23
- if Rails.env.development?
19
+ if Rails.env.development? || Rails.env.test?
20
+ components_path = Rails.root.join("app", "components")
24
21
  FileUtils.mkdir_p(components_path) unless components_path.exist?
25
22
  FileUtils.touch(components_path.join(".keep"))
26
23
 
@@ -1,3 +1,3 @@
1
1
  module Clapton
2
- VERSION = '0.0.11'
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.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moeki Kawakami