clapton 0.0.9 → 0.0.11

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: dbc7320b4bfea8d0f2c712ee309bc0c91ffe48b71a12c7508322d4239c1a9d37
4
- data.tar.gz: 999f7025335a37a968146c1a684267afa1ffd294c48e9b79f6a34a256b6f07b2
3
+ metadata.gz: de5da62107c88924d00beff129af9064183ac535a0562b6d643c40b7e31e04ef
4
+ data.tar.gz: 77fe202f9dc0a04d163e42f876a8d2da74d36fd23f4216ebca8f0acc3997a90a
5
5
  SHA512:
6
- metadata.gz: 9dc054781d095b94f2fcde90b62e8d9b97d349566d63285f4e8a3832e8719ed95fab6a171856bea4c07fc4b85287f7edbd4c89a7976c26ce513f4e54eb9086cd
7
- data.tar.gz: 812e6c21b1a09e8b41c8ecab7d2d78d367e156b51c0b9ee56fc7089c72c5ac6a9b1a3fec34c80fc922e81f02b464a2aa714c47f27d9ba011e20fff9910adce56
6
+ metadata.gz: 82e99e9ccde384bf5a0a6b3645511da0e379bb5bfb49d85c006c852efca41aa987950fcbeb4bb1876220596b74432e1fb64f715a769b057b58ea9a7e1a43a309
7
+ data.tar.gz: ce5ad2a40e2f943b403973c392fd6587ed0b401e86f076de0409ba51fe7664616fe20334d2ed6a819a7c2705b6942e48db2afb66c6e9539554a0bae6c0b62c37
data/README.md CHANGED
@@ -269,6 +269,7 @@ end
269
269
 
270
270
  ```ruby
271
271
  # spec/spec_helper.rb
272
+ require "clapton/test_helper/rspec"
272
273
 
273
274
  RSpec.configure do |config|
274
275
  config.include Clapton::TestHelper::RSpec, type: :component
@@ -291,6 +292,8 @@ end
291
292
 
292
293
  ```ruby
293
294
  # test/test_helper.rb
295
+ require "clapton/test_helper/minitest"
296
+
294
297
  class ActiveSupport::TestCase
295
298
  include Clapton::TestHelper::Minitest
296
299
  end
@@ -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,4 +1,3 @@
1
1
  module Clapton
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.11'
3
3
  end
4
-
data/lib/clapton.rb CHANGED
@@ -3,8 +3,6 @@ require "clapton/version"
3
3
  require "clapton/railtie"
4
4
  require "clapton/engine"
5
5
  require "clapton/state"
6
- require "clapton/test_helper/rspec"
7
- require "clapton/test_helper/minitest"
8
6
  require "rails/generators/clapton_generator"
9
7
 
10
8
  module Clapton
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.9
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moeki Kawakami