hotloader 1.0.2 → 1.0.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 +4 -4
- data/README.md +1 -6
- data/lib/hotloader/version.rb +1 -1
- data/lib/hotloader.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d239d8e0131adf3a0b8aa970b4d606e547c4b3f2e8dcb369e053d7cff6557dbe
|
|
4
|
+
data.tar.gz: 9efb7529880db2532140ea38c0acbbfc73b6d8e805bdc6e4ba47733948d0ee91
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be6277848ad3fd5f0df9a9aa336b8c1396f27e98262ccc41adec989f03ff20704fcb6c896a361ac481cc6ae18145e6aa47d8a55ef8fdbb4297aab32e49f53a34
|
|
7
|
+
data.tar.gz: df081fe3ea2958471e939fad0ecef369acff5c5c7c3b917087abf6a4c5c9dc968396c2a774679a1ee6cdabbfebdb7ac9b90648e5ad406ed1f911dc239e43eac7
|
data/README.md
CHANGED
|
@@ -16,17 +16,12 @@ And then execute:
|
|
|
16
16
|
Or install it yourself as:
|
|
17
17
|
|
|
18
18
|
$ gem install hotloader
|
|
19
|
-
|
|
19
|
+
Do this please
|
|
20
20
|
|
|
21
21
|
``` javascript
|
|
22
22
|
//= require hotloader
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
While we wait on Rubygems
|
|
26
|
-
```ruby
|
|
27
|
-
gem "hotloader", :git => "git://github.com/Voxoff/hotloader.git"
|
|
28
|
-
```
|
|
29
|
-
|
|
30
25
|
## Usage
|
|
31
26
|
|
|
32
27
|
Do the above. Everytime you save a a file in your rails app folder, your page will automatically refresh.
|
data/lib/hotloader/version.rb
CHANGED
data/lib/hotloader.rb
CHANGED
|
@@ -13,6 +13,8 @@ module Hotloader
|
|
|
13
13
|
# end
|
|
14
14
|
# app.paths.add "config/cable", with: "config/refesh.yml"
|
|
15
15
|
|
|
16
|
+
app.config.assets.precompile << "hotloader/hotloader.js"
|
|
17
|
+
|
|
16
18
|
listener = Listen.to("app") do
|
|
17
19
|
ActionCable.server.broadcast "refresh_channel", {title: "refresh"}
|
|
18
20
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hotloader
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Voxoff
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-10-
|
|
11
|
+
date: 2018-10-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|