clapton 0.0.8 → 0.0.10

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: 046d950b41177907e9ab5aeeecddbed15ba622b5f4af1b68be7931ac5b50ee81
4
- data.tar.gz: 673129d40cb46bbdd4b98083d79d256acfc04c6361ae275c71db2cbc0fc22f6d
3
+ metadata.gz: 6d96826c703ed32f6706b5656dc5d9714fc0ea536ff095ae7eca824c31d84bc4
4
+ data.tar.gz: 6dcb8ca8dbbab7cb530dffb4268ac749b9575b3590f32d7f2df97baee39a6a5d
5
5
  SHA512:
6
- metadata.gz: 922bfbd2feae17c2ae3a040ce2eb573e7a9a1b951f93775c0f24b44bc90569177eb93e95bfb16f2fe515dcaec5d3526c92d976f29779d3a31d4024eeae4b42aa
7
- data.tar.gz: 8157150ab886370b4dbff0cd38fcd064ba9e044422cb45a8d9940b67b77ed3e781679ee38c01604cb000ef59f3e0360c2e785c69d725925e809d2021a4a6aedb
6
+ metadata.gz: 537013541a4d5ea316e1fe75f0aa771c081fd7a879d14cc98b81d2cfc9d02404439ff79ae969d90a46fe2c943de904082742728c2c819de5ac1947c6d2e9ff13
7
+ data.tar.gz: 1528ecd60b20e8f8876ca77c4bfc0c9c8de15fe7cc2773fbcfd2ee97f57facade6258341975f3efc6c3270d0a73da4fd4907b99af126e1c071f2c86be725b8cc
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
@@ -22,11 +22,13 @@ module Clapton
22
22
 
23
23
  compile_components
24
24
 
25
- listener = Listen.to(Rails.root.join("app", "components")) do |modified, added, removed|
26
- compile_components
27
- end
25
+ Rails.env.development? do
26
+ listener = Listen.to(Rails.root.join("app", "components")) do |modified, added, removed|
27
+ compile_components
28
+ end
28
29
 
29
- listener.start
30
+ listener.start
31
+ end
30
32
  end
31
33
 
32
34
  def compile_components
@@ -1,4 +1,3 @@
1
1
  module Clapton
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.10'
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.8
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moeki Kawakami