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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5013c7153f659b47e120f34b68dc772db996b259
4
- data.tar.gz: f79577ac76028736ec4ee6ef3f56522d7641a217
3
+ metadata.gz: ba09e79bea9d04e455973156e8228efa59f2f68b
4
+ data.tar.gz: b32a0f53d4d69944457f6a840cfa607b8bddc7c9
5
5
  SHA512:
6
- metadata.gz: ae92612105c3a54592aba72fb2e75d8bda8f72d1045220d40a38215afb60d2b1e373c2f0f4eeddee748c0e0e939efc9955c5121d0d6ed40737ad403225f8bd2b
7
- data.tar.gz: 84e1367359268bbb5d1e41a6044110f7d8b49eeca5403d560617283a74f549c7b05926cd1d4e6d242797ac3fb4b775197c9324c9d4e3a14a9a4ca3e643f85120
6
+ metadata.gz: 3e904f3d8bf8c2676d0a0108ac008fcd2728d03842a34fe9f2cdcaf3352534b0a7c1541697a9d1bf437b20d42bbec6f7942494d6bd3471af792ce02c0e493620
7
+ data.tar.gz: 503e8f310bd12c23bd5f0c60b9930535997d178b54dcce5a94d230b2adba7dc6e09255ff7e4c146ed3b6ca5456377742fa00cee881da5e473fabcc12abfb6f1b
@@ -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
- @rest.post(base_url + method, request_hash)
213
+ @rest.post(base_url + method, request_hash)
213
214
  rescue Rest::HttpError => ex
214
215
  extract_error_msg(ex)
215
216
  end
@@ -1,5 +1,5 @@
1
1
  module IronCore
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
 
4
4
  def self.version
5
5
  VERSION
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.2
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: 2013-12-12 00:00:00.000000000 Z
12
+ date: 2014-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest