clearwater-hot_loader 0.3.0 → 0.3.1
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 -1
- data/lib/clearwater/hot_loader/version.rb +1 -1
- data/opal/clearwater/hot_loader.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f5d107c5ec54c7e5e0589812fbfbcf318126e3b5758a0e24a6f27bdf9469a62
|
4
|
+
data.tar.gz: 04e047ae417e91e91685a2f25a3591b523ec1160458ace6e4f1ba91c6b1c6e0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f64e7c10fc4ef4599d04d356020804fb7939a12f9309ea16394e90029e216318e9f171f9eaf88faee7820b2285654650d5288d95391cca94c2a82103bc90e8e
|
7
|
+
data.tar.gz: d819b6704345c1fd635d2d51e0fa60e13605ffe723d7d96359768115f671bd105b9a598d56724c6867a0e8cc7de1427ae48eb6c52a2468842afb6ae2457de96d
|
data/README.md
CHANGED
@@ -59,7 +59,7 @@ To connect to the server, simply add this to the top of your Clearwater app:
|
|
59
59
|
|
60
60
|
```ruby
|
61
61
|
require 'clearwater/hot_loader'
|
62
|
-
Clearwater::HotLoader.connect
|
62
|
+
Clearwater::HotLoader.connect
|
63
63
|
```
|
64
64
|
|
65
65
|
Simply replace `port` with the port number on which your app is running. It will be the same port on which your web app is running. For example, if you usually open `localhost:3000` to load your web app in the browser, you'll want to connect to port 3000.
|
@@ -17,6 +17,7 @@ module Clearwater
|
|
17
17
|
def initialize port=nil, path: '/clearwater_hot_loader'
|
18
18
|
@port = port
|
19
19
|
@path = path
|
20
|
+
@app = InitialApp.new
|
20
21
|
Bowser.window.animation_frame do
|
21
22
|
div = Bowser.document.create_element('div')
|
22
23
|
Bowser.document.body.append div
|
@@ -99,5 +100,10 @@ module Clearwater
|
|
99
100
|
}
|
100
101
|
end
|
101
102
|
end
|
103
|
+
|
104
|
+
class InitialApp
|
105
|
+
def render
|
106
|
+
end
|
107
|
+
end
|
102
108
|
end
|
103
109
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clearwater-hot_loader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Gaskins
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clearwater
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.7.
|
139
|
+
rubygems_version: 2.7.3
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: Reload your Clearwater app without refreshing the browser
|