vchain_client 1.0.26 → 1.0.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/vchain_client.rb +4 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9d50a1f06584116b6c0abeee2c5d838f4fdc3b8
4
- data.tar.gz: 917e78a2bbde808dc8e521d94b96aa53ab398a82
3
+ metadata.gz: e9a44ad6c64ea0fbc2ddc1a13255998fa284f962
4
+ data.tar.gz: de99abcebfd599013ab542ebe7584233a55c5067
5
5
  SHA512:
6
- metadata.gz: 69ada3aa08c2971904b43d8a6203b5195d2814e8692be213807004906aac2919413aa6db39e6ccc0c35ec2f424a5bd66bcdee7dc81b82d0e562e88b6bba5b47f
7
- data.tar.gz: 17c2cc8b205a890864611f056369c1338aaf03e58fb44fa25ad35ee1b101a996a76ba654861bb9bca19f8ba6e512b5d70c4f5c4222cf58a9b37fbe65bd418d16
6
+ metadata.gz: 2817cf5f35f0a4ab505c0ebc78c75cc9e6cc1030a31f79529dc4a64831b29a8290927f1b6b5dda6291a4a187a120cf737167c914bb9aa6b8ed689ef3218518d9
7
+ data.tar.gz: 65ce56780439d351d80a1f85555b121e94c224ab197826bb90ecf5893aebfdea7a419fc3073dee4bf52d63cf078ba1eb15e7e9ac6a86fe1efff7154ca603e1e9
data/lib/vchain_client.rb CHANGED
@@ -281,8 +281,6 @@ module VChainClient
281
281
 
282
282
  end
283
283
 
284
- puts raw_document
285
-
286
284
  out_document = VChainClient::Client.hash_doc(raw_document)
287
285
 
288
286
  out_document = VChainClient::Client.cut(out_document)
@@ -476,9 +474,10 @@ module VChainClient
476
474
  end
477
475
 
478
476
  begin
479
- req = RestClient.post(api_url,
480
- send_data.to_json,
481
- {'Content-Type' => 'application/json'})
477
+
478
+ res = RestClient::Resource.new api_url, :timeout => nil, :open_timeout => nil
479
+
480
+ req = res.post send_data.to_json, :content_type => 'application/json'
482
481
 
483
482
  if req.code != 200
484
483
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vchain_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.26
4
+ version: 1.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksandr Gorelik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-09 00:00:00.000000000 Z
11
+ date: 2017-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: log4r