binance-ruby 1.2 → 1.2.1
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 +4 -4
- data/lib/binance/api/version.rb +1 -1
- data/lib/binance/websocket.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 124f7e539a6f6e6003bf7c2619ba039a6a930037976815729398e34adb4686a1
|
|
4
|
+
data.tar.gz: a6dc10be4aa7629143663260ce33111b96b8a2f50b64ffef88bd219ed282ca12
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 649dd4131cc420ae5b179616fdc4bc8d5b75e96ff864075c07ad47279b5a0819557f4f246a47a07e9367e1430fb8b48d063aa54ec7474397c065772be49d9481
|
|
7
|
+
data.tar.gz: 68c57f977409d0756df3a982c7a1c92a5b0af26b7c3c1fb3468bba855ac5057f9e0d925e5a81025edc1f78cdb27ac05df2b3d6a08d716e7f42d313014e5fb3db
|
data/lib/binance/api/version.rb
CHANGED
data/lib/binance/websocket.rb
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
module Binance
|
|
2
2
|
class WebSocket < Faye::WebSocket::Client
|
|
3
|
-
def initialize
|
|
3
|
+
def initialize(on_open: nil, on_close: nil)
|
|
4
4
|
super "wss://stream.binance.com:9443/stream", nil, ping: 180
|
|
5
5
|
|
|
6
6
|
@request_id_inc = 0
|
|
7
7
|
|
|
8
8
|
on :open do |event|
|
|
9
|
-
|
|
9
|
+
on_open&.call(event)
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
on :message do |event|
|
|
@@ -14,7 +14,7 @@ module Binance
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
on :close do |event|
|
|
17
|
-
|
|
17
|
+
on_close&.call(event)
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
20
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: binance-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jake Peterson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-04
|
|
11
|
+
date: 2021-05-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: codecov
|
|
@@ -236,5 +236,5 @@ requirements: []
|
|
|
236
236
|
rubygems_version: 3.1.6
|
|
237
237
|
signing_key:
|
|
238
238
|
specification_version: 4
|
|
239
|
-
summary: binance-ruby-1.2
|
|
239
|
+
summary: binance-ruby-1.2.1
|
|
240
240
|
test_files: []
|