nuntium_api 0.14 → 0.15

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 +1 -13
  2. metadata +3 -3
data/lib/nuntium.rb CHANGED
@@ -258,18 +258,6 @@ class Nuntium
258
258
  channel['configuration'] = Hash[channel['configuration'].map { |e| [e['name'], e['value']] }]
259
259
  end
260
260
 
261
- def return_channel(response)
262
- return nil if response.class <= String
263
- if response.respond_to?(:response) && response.response.class <= Net::HTTPSuccess
264
- channel = response.parsed_response.with_indifferent_access
265
- read_configuration channel
266
- channel
267
- else
268
- # TODO should wrap in exception
269
- response
270
- end
271
- end
272
-
273
261
  def get(path)
274
262
  resource = RestClient::Resource.new @url, @options
275
263
  resource = resource[path].get
@@ -318,7 +306,7 @@ class Nuntium
318
306
  yield nil, ex
319
307
  end
320
308
 
321
- def delete(path, data)
309
+ def delete(path)
322
310
  resource = RestClient::Resource.new @url, @options
323
311
  resource = resource[path].delete
324
312
  yield resource, nil
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 14
9
- version: "0.14"
8
+ - 15
9
+ version: "0.15"
10
10
  platform: ruby
11
11
  authors:
12
12
  - InsTEDD