hyper-operation 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hyper-operation/transport/client_drivers.rb +12 -0
- data/lib/hyper-operation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfd3ef8019798c538c9322e0a2f548fdfda69a4d
|
4
|
+
data.tar.gz: b808a717a87a0b049a24dc0fac5557592bed2cbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5183b45ad094763699c77698ddefc0ec81c7533da1c49c39ca8ec6c302f4892540aa1dc156ac59be99073fbed146d6c65c651391c5243df45d791cc20d88daaf
|
7
|
+
data.tar.gz: 0165e51045fb5c275de3bd78630cb9986907013a427ac07feb8c2ba1a2a6dbb517a68626555ba1954e697aa1e95d6df5c847244c875369c95eff112c69459180
|
@@ -153,6 +153,18 @@ module Hyperloop
|
|
153
153
|
|
154
154
|
def self.initialize_client_drivers_on_boot
|
155
155
|
|
156
|
+
if @initialized
|
157
|
+
# 1) skip initialization if already initialized
|
158
|
+
# 2) if running action_cable make sure connection is up after pinging the server_up
|
159
|
+
# action cable closes the connection if files change on the server
|
160
|
+
HTTP.get("#{`window.HyperloopEnginePath`}/server_up") do
|
161
|
+
`#{Hyperloop.action_cable_consumer}.connection.open()`
|
162
|
+
end if Hyperloop.action_cable_consumer
|
163
|
+
return
|
164
|
+
end
|
165
|
+
|
166
|
+
@initialized = true
|
167
|
+
|
156
168
|
if RUBY_ENGINE == 'opal'
|
157
169
|
@opts = Hash.new(`window.HyperloopOpts`)
|
158
170
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyper-operation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- catmando
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mutations
|