alphapoint 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alphapoint/version.rb +1 -1
- data/lib/alphapoint/web_socket.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feeab80a011c0ba94fb2bf20f0cb2d633cb990ca
|
4
|
+
data.tar.gz: 653fbb84a282ae5fce9f69c872e6175b340a259a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de3209989c60a6401fbf3784973c01953ff0909747f6a37ced5c79f69ad36c14f09274158abb9450a8740a6ad06ab8c8dbff16eab7df3f4ccf8aaf9698c386ae
|
7
|
+
data.tar.gz: 19244c73544d7280864cd2e09d7ae68b486fea7528e5e0499a85307bfb36aa2e0619f219d821feda336811be25dfb2facf33784ee15f51a8e7b3ae6c23d81089
|
data/lib/alphapoint/version.rb
CHANGED
@@ -43,11 +43,21 @@ module Alphapoint
|
|
43
43
|
alpha_self.delegate_message(JSON.parse(event.data).with_indifferent_access)
|
44
44
|
end
|
45
45
|
|
46
|
+
@ws.on :error do |event|
|
47
|
+
p [:error, event.inspect]
|
48
|
+
end
|
49
|
+
|
46
50
|
@ws.on :close do |event|
|
47
51
|
p [:close, event.code, event.reason]
|
48
52
|
end
|
49
53
|
end
|
50
54
|
end
|
55
|
+
|
56
|
+
trap(:INT) { EM.stop }
|
57
|
+
trap(:TERM){ EM.stop }
|
58
|
+
|
59
|
+
while not EM.reactor_running?; end
|
60
|
+
while not EM.defers_finished?; end
|
51
61
|
end
|
52
62
|
|
53
63
|
def build_request(function_name, payload,type = 0, &block)
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alphapoint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Miguel Corti
|
8
7
|
- Fabiano Martins
|
9
8
|
- Lucas Pérez
|
9
|
+
- Miguel Corti
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
@@ -156,9 +156,9 @@ dependencies:
|
|
156
156
|
version: 4.7.3
|
157
157
|
description: Alphapoint websocket DSL is to easy request and listen event
|
158
158
|
email:
|
159
|
-
- miguelszcorti@gmail.com
|
160
159
|
- fabiano.paula.martins@gmail.com
|
161
160
|
- lucas@blockchainstudio.com.br
|
161
|
+
- miguelszcorti@gmail.com
|
162
162
|
executables: []
|
163
163
|
extensions: []
|
164
164
|
extra_rdoc_files: []
|