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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e609b05c7de6d1459547097ca5176c6df58e3be4
4
- data.tar.gz: 6b7e8c73402e5ac7d72f377936fe94cd33bdd2e4
3
+ metadata.gz: 1227db3393d7ebd0e58012b2681595b4bcb503b6
4
+ data.tar.gz: 34d7bfca10d7bc61f828ffa9fca9f16eda3bcac3
5
5
  SHA512:
6
- metadata.gz: cdf51a779fd5e582c9291a905bf4fdd24fa5d1163497e8422291b99230697d7d16d72f8641ba5d4a7719247ff95a58d8f403c0698b7f31eb89140f7205e025d3
7
- data.tar.gz: 2935b8b041a172be54909e83d795b5c7820c0ea8b7d247893c959fba05f01244d22e7232b0acb3d0731bfe1373434aac69342539f7e7efd0699a78851f931215
6
+ metadata.gz: f24e2d0d0780b94d252fdba0a5ea9ab8bf548d27d8a25bc716a83d652f4ca277d8a3614bde9bf97f10d81d0e902b1be6d7c2ae5519f07c88ea7c59083a54dc5d
7
+ data.tar.gz: d06fee68bf940dc454973e54b98074866b6192b83fc361af27d29d6e4827a2ea06216dce75a09f65bb4a408e81caa472c9a03579f42c3a410c101747b8cab42e
data/lib/bitex.rb CHANGED
@@ -10,4 +10,5 @@ module Bitex
10
10
  mattr_accessor :api_key
11
11
  mattr_accessor :sandbox
12
12
  mattr_accessor :debug
13
+ mattr_accessor :ssl_version
13
14
  end
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
- puts "DEBUG SSL #{t}, #{d}"
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
@@ -1,3 +1,3 @@
1
1
  module Bitex
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nubis