hotwire-spark 0.1.2 → 0.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ac1909ce797a0c5f4dff3b73d18dca2af528b6192446e542eaa417ef72fbb91
|
4
|
+
data.tar.gz: d1ac7ca2ee2249df6512eebb522faa46c4bc64f9b965dc510a55a1ca10353014
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40c56767ac69fc6d214f5b852355d49d2bbc2766f9d22fdcc4935141e83b0c75ac12b86b26352bdb5c17972a97423f2342dc08542ff0fe9496dd7d1e388d26de
|
7
|
+
data.tar.gz: 285a9139a2d615098cbb35d90c31a9401ab9d415f7b66fbcb25524bb604b61e3c14af64599dccb13b37e06f4e5e27c1152d63a54132f9469f70c2b55e4812274
|
data/README.md
CHANGED
@@ -20,7 +20,7 @@ $ bundle
|
|
20
20
|
|
21
21
|
That's it!
|
22
22
|
|
23
|
-
##
|
23
|
+
## How it works
|
24
24
|
|
25
25
|
The system will listen for three kinds of changes and will take action depending on each:
|
26
26
|
|
@@ -39,7 +39,7 @@ config.hotwire.spark.html_paths += %w[ lib ]
|
|
39
39
|
| Name | Description |
|
40
40
|
|------------------|------------------------------------------------------------------------------------------------------------------------------|
|
41
41
|
| `html_paths` | Paths where file changes trigger a content refresh. By default: `app/controllers`, `app/helpers`, `app/models`, `app/views`. |
|
42
|
-
| `css_paths` | Paths where file changes trigger a CSS refresh. By default: `app/assets/stylesheets
|
42
|
+
| `css_paths` | Paths where file changes trigger a CSS refresh. By default: `app/assets/stylesheets` or `app/assets/builds` if exists. |
|
43
43
|
| `stimulus_paths` | Paths where file changes trigger a Stimulus controller refresh. By default: `app/javascript/controllers`. |
|
44
44
|
| `enabled` | Enable or disable live reloading. By default, it's only enabled in `development`. |
|
45
45
|
| `logging` | Show logs in the browser console when reloading happens. It's false by default. |
|
data/lib/hotwire/spark/engine.rb
CHANGED
@@ -8,7 +8,7 @@ module Hotwire::Spark
|
|
8
8
|
config.hotwire.spark = ActiveSupport::OrderedOptions.new
|
9
9
|
config.hotwire.spark.merge! \
|
10
10
|
enabled: Rails.env.development?,
|
11
|
-
css_paths: %w[ app/assets/stylesheets ],
|
11
|
+
css_paths: File.directory?("app/assets/builds") ? %w[ app/assets/builds ] : %w[ app/assets/stylesheets ],
|
12
12
|
html_paths: %w[ app/controllers app/helpers app/models app/views ],
|
13
13
|
stimulus_paths: %w[ app/javascript/controllers ]
|
14
14
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hotwire-spark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge Manrubia
|
@@ -137,7 +137,6 @@ files:
|
|
137
137
|
- lib/hotwire-spark.rb
|
138
138
|
- lib/hotwire/spark/action_cable/persistent_cable_middleware.rb
|
139
139
|
- lib/hotwire/spark/action_cable/persistent_cable_server.rb
|
140
|
-
- lib/hotwire/spark/action_cable/solid_cable_listener_with_safe_reloads.rb
|
141
140
|
- lib/hotwire/spark/engine.rb
|
142
141
|
- lib/hotwire/spark/file_watcher.rb
|
143
142
|
- lib/hotwire/spark/installer.rb
|