nuntium_api 0.15 → 0.16

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.
Files changed (2) hide show
  1. data/lib/nuntium.rb +4 -12
  2. metadata +3 -3
data/lib/nuntium.rb CHANGED
@@ -262,9 +262,7 @@ class Nuntium
262
262
  resource = RestClient::Resource.new @url, @options
263
263
  resource = resource[path].get
264
264
  yield resource, nil
265
- rescue RestClient::Exception => ex
266
- yield nil, ex
267
- rescue Errno::ECONNREFUSED => ex
265
+ rescue => ex
268
266
  yield nil, ex
269
267
  end
270
268
 
@@ -290,9 +288,7 @@ class Nuntium
290
288
  resource = RestClient::Resource.new @url, @options
291
289
  resource = resource[path].post(data)
292
290
  yield resource, nil
293
- rescue RestClient::Exception => ex
294
- yield nil, ex
295
- rescue Errno::ECONNREFUSED => ex
291
+ rescue => ex
296
292
  yield nil, ex
297
293
  end
298
294
 
@@ -300,9 +296,7 @@ class Nuntium
300
296
  resource = RestClient::Resource.new @url, @options
301
297
  resource = resource[path].put(data)
302
298
  yield resource, nil
303
- rescue RestClient::Exception => ex
304
- yield nil, ex
305
- rescue Errno::ECONNREFUSED => ex
299
+ rescue => ex
306
300
  yield nil, ex
307
301
  end
308
302
 
@@ -310,9 +304,7 @@ class Nuntium
310
304
  resource = RestClient::Resource.new @url, @options
311
305
  resource = resource[path].delete
312
306
  yield resource, nil
313
- rescue RestClient::Exception => ex
314
- yield nil, ex
315
- rescue Errno::ECONNREFUSED => ex
307
+ rescue => ex
316
308
  yield nil, ex
317
309
  end
318
310
 
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nuntium_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 43
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 15
9
- version: "0.15"
8
+ - 16
9
+ version: "0.16"
10
10
  platform: ruby
11
11
  authors:
12
12
  - InsTEDD