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.
- data/lib/nuntium.rb +4 -12
- 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
|
|
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
|
|
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
|
|
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
|
|
314
|
-
yield nil, ex
|
|
315
|
-
rescue Errno::ECONNREFUSED => ex
|
|
307
|
+
rescue => ex
|
|
316
308
|
yield nil, ex
|
|
317
309
|
end
|
|
318
310
|
|
metadata
CHANGED