clearwater-hot_loader 0.3.0 → 0.3.1

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: 88069316bdc48d8c2d56ae1af915ff36127831e25c3b884e5ec59bebd730428f
4
- data.tar.gz: 96ebbfda995dcf51cfb523eaeefa3d861c087367522db6a46619bc7bc85be8fa
3
+ metadata.gz: 9f5d107c5ec54c7e5e0589812fbfbcf318126e3b5758a0e24a6f27bdf9469a62
4
+ data.tar.gz: 04e047ae417e91e91685a2f25a3591b523ec1160458ace6e4f1ba91c6b1c6e0e
5
5
  SHA512:
6
- metadata.gz: 2aa35a5fa937a07754305a46097f3aa9e24771cc369477beece437cd7156dc774a565658624d72fee52b89ac2ebf5bbbcb54bd23c2ea8da1c68ad1dee9fd92a6
7
- data.tar.gz: 8df849b68d530b6bf8bfb43943a7901890b42c51717ffbcfa62c35a1a2ab9ff8370b4fe6c883b5437ad5b667cc5150ff6df66be9baced83c5d5546c533b386d4
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 port
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.
@@ -1,5 +1,5 @@
1
1
  module Clearwater
2
2
  module HotLoader
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
@@ -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.0
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: 2017-12-17 00:00:00.000000000 Z
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.2
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