iron_core 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/iron_core/client.rb +3 -2
- data/lib/iron_core/version.rb +1 -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: ba09e79bea9d04e455973156e8228efa59f2f68b
|
4
|
+
data.tar.gz: b32a0f53d4d69944457f6a840cfa607b8bddc7c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e904f3d8bf8c2676d0a0108ac008fcd2728d03842a34fe9f2cdcaf3352534b0a7c1541697a9d1bf437b20d42bbec6f7942494d6bd3471af792ce02c0e493620
|
7
|
+
data.tar.gz: 503e8f310bd12c23bd5f0c60b9930535997d178b54dcce5a94d230b2adba7dc6e09255ff7e4c146ed3b6ca5456377742fa00cee881da5e473fabcc12abfb6f1b
|
data/lib/iron_core/client.rb
CHANGED
@@ -187,6 +187,7 @@ module IronCore
|
|
187
187
|
end
|
188
188
|
|
189
189
|
def extract_error_msg(ex)
|
190
|
+
IronCore::Logger.debug 'IronCore', "Error returned. code: #{ex.code}"
|
190
191
|
if ex.response && ex.response.body
|
191
192
|
begin
|
192
193
|
bodyparsed = JSON.parse(ex.response.body)
|
@@ -194,7 +195,7 @@ module IronCore
|
|
194
195
|
if msg
|
195
196
|
ex.msg = msg
|
196
197
|
end
|
197
|
-
rescue => ex
|
198
|
+
rescue Exception => ex
|
198
199
|
# ignore
|
199
200
|
end
|
200
201
|
end
|
@@ -209,7 +210,7 @@ module IronCore
|
|
209
210
|
IronCore::Logger.debug 'IronCore', "POST #{base_url + method} with params='#{request_hash.to_s}'"
|
210
211
|
|
211
212
|
begin
|
212
|
-
|
213
|
+
@rest.post(base_url + method, request_hash)
|
213
214
|
rescue Rest::HttpError => ex
|
214
215
|
extract_error_msg(ex)
|
215
216
|
end
|
data/lib/iron_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kirilenko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest
|