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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed333eb7617653466a700705cc461b90c8b4e77a
4
- data.tar.gz: ff1c5fd22a09ebb02f4ffa97d0731d8de93ff4e9
3
+ metadata.gz: cfd3ef8019798c538c9322e0a2f548fdfda69a4d
4
+ data.tar.gz: b808a717a87a0b049a24dc0fac5557592bed2cbd
5
5
  SHA512:
6
- metadata.gz: 64601025509975abf0d684edb81d31846bdf87e786d6f53d9d4a0292758b5558eefba1d2b6192e6b2a7e7605066ff9bb9d6e6e668665d6764e1e89d68b0b457c
7
- data.tar.gz: d76e9a3f6315fc1a72ef4cf3fd4986262a11ded58c3d562810efafdb5debe0d28b3f54e1fb73beb89c406ac866497c926a7d4c4fbb77eeac0b8a84fea739ee2c
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
@@ -1,5 +1,5 @@
1
1
  module Hyperloop
2
2
  class Operation
3
- VERSION = '0.5.7'
3
+ VERSION = '0.5.8'
4
4
  end
5
5
  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.7
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-05-23 00:00:00.000000000 Z
11
+ date: 2017-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mutations