vchain_client 1.0.10 → 1.0.11
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/vchain_client.rb +12 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e13dad9caf4275a2885df875e8f13edcf5cafcce
|
|
4
|
+
data.tar.gz: 4c39f5d818b4a713d02308ea831ee345eb6a97a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 377991b55385612681708d9e580016b7fc1b19f5c0ee0f26613f30d62dced178a8134808506d4c85e8cbe9b6b958baea64010056917405e99e3a343b4dbad22f
|
|
7
|
+
data.tar.gz: f33f3594188e7a23722fd5f6d88ce062f7ea6d48215cd91b78e240c0d17be0c236c9b2a57bdb869ea9fb608ead4547525ef93143d35a6676482e1619f3691066
|
data/lib/vchain_client.rb
CHANGED
|
@@ -1137,13 +1137,24 @@ module VChainClient
|
|
|
1137
1137
|
if res["status"] == "ERROR" || res["status"] == "error"
|
|
1138
1138
|
|
|
1139
1139
|
if res["error_reason_code"] == "DOCUMENT_POSSIBLE_MISTAKES"
|
|
1140
|
+
|
|
1141
|
+
possible_mistakes_output = {}
|
|
1142
|
+
|
|
1140
1143
|
if res.key?("possible_mistakes")
|
|
1141
1144
|
res["possible_mistakes"].each_with_index { |field,index|
|
|
1142
|
-
|
|
1145
|
+
|
|
1146
|
+
possible_mistakes_output[index] = validated_verifications[index]
|
|
1143
1147
|
|
|
1144
1148
|
validated_verifications.delete_at(index)
|
|
1145
1149
|
}
|
|
1146
1150
|
end
|
|
1151
|
+
|
|
1152
|
+
return {
|
|
1153
|
+
"status" => "error",
|
|
1154
|
+
"possible_mistakes" => possible_mistakes_output,
|
|
1155
|
+
"validated" => validated_verifications,
|
|
1156
|
+
"reason" => res["error_reason_code"]
|
|
1157
|
+
}
|
|
1147
1158
|
end
|
|
1148
1159
|
|
|
1149
1160
|
return {
|
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.
|
|
4
|
+
version: 1.0.11
|
|
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-01-
|
|
11
|
+
date: 2017-01-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: log4r
|