bitex 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bitex.rb +1 -0
- data/lib/bitex/api.rb +4 -1
- data/lib/bitex/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1227db3393d7ebd0e58012b2681595b4bcb503b6
|
4
|
+
data.tar.gz: 34d7bfca10d7bc61f828ffa9fca9f16eda3bcac3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f24e2d0d0780b94d252fdba0a5ea9ab8bf548d27d8a25bc716a83d652f4ca277d8a3614bde9bf97f10d81d0e902b1be6d7c2ae5519f07c88ea7c59083a54dc5d
|
7
|
+
data.tar.gz: d06fee68bf940dc454973e54b98074866b6192b83fc361af27d29d6e4827a2ea06216dce75a09f65bb4a408e81caa472c9a03579f42c3a410c101747b8cab42e
|
data/lib/bitex.rb
CHANGED
data/lib/bitex/api.rb
CHANGED
@@ -7,10 +7,13 @@ module Bitex
|
|
7
7
|
prefix = Bitex.sandbox ? 'sandbox.' : ''
|
8
8
|
|
9
9
|
curl = Curl::Easy.new("https://#{prefix}bitex.la/api-v1/rest#{path}#{query}")
|
10
|
+
curl.ssl_version = Curl::CURL_SSLVERSION_TLSv1
|
10
11
|
|
11
12
|
if Bitex.debug
|
12
13
|
curl.on_debug do |t,d|
|
13
|
-
|
14
|
+
if d.to_s.size < 300
|
15
|
+
puts "DEBUG SSL #{t}, #{d}"
|
16
|
+
end
|
14
17
|
end
|
15
18
|
end
|
16
19
|
|
data/lib/bitex/version.rb
CHANGED