alphapoint 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab8940b218436b9659bc40f42b9067ec91b82798
4
- data.tar.gz: 3173cff1946b7680a95496b1fb3bf836e9c6df78
3
+ metadata.gz: feeab80a011c0ba94fb2bf20f0cb2d633cb990ca
4
+ data.tar.gz: 653fbb84a282ae5fce9f69c872e6175b340a259a
5
5
  SHA512:
6
- metadata.gz: 821bf5ae725f4b7d7b4de14030f2a12ada9cdf32af07d926a406481cc8e9e7971eb6ed21398c1c2c954c0aac7fec5806c2d68e9f4dbf83bfd91b2e12f84d455b
7
- data.tar.gz: 34e7fd356199c03f46ebe8d2aab474c8736322efcbc6e3932b8c368bdd0f7e4fdf765d7890545af48000694d47423cb838aec9fc34077ea8f17088f228aadd61
6
+ metadata.gz: de3209989c60a6401fbf3784973c01953ff0909747f6a37ced5c79f69ad36c14f09274158abb9450a8740a6ad06ab8c8dbff16eab7df3f4ccf8aaf9698c386ae
7
+ data.tar.gz: 19244c73544d7280864cd2e09d7ae68b486fea7528e5e0499a85307bfb36aa2e0619f219d821feda336811be25dfb2facf33784ee15f51a8e7b3ae6c23d81089
@@ -1,3 +1,3 @@
1
1
  module Alphapoint
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -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.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: []