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 +4 -4
- data/README.md +3 -0
- data/lib/clapton/engine.rb +5 -4
- data/lib/clapton/version.rb +1 -2
- data/lib/clapton.rb +0 -2
- 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: de5da62107c88924d00beff129af9064183ac535a0562b6d643c40b7e31e04ef
|
4
|
+
data.tar.gz: 77fe202f9dc0a04d163e42f876a8d2da74d36fd23f4216ebca8f0acc3997a90a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/clapton/engine.rb
CHANGED
@@ -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
|
data/lib/clapton/version.rb
CHANGED
data/lib/clapton.rb
CHANGED