onering-client 0.0.80 → 0.0.81

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.
@@ -1,5 +1,5 @@
1
1
  module Onering
2
2
  module CLI
3
- VERSION = "0.0.80"
3
+ VERSION = "0.0.81"
4
4
  end
5
5
  end
@@ -6,11 +6,13 @@ module Onering
6
6
  end
7
7
 
8
8
  def get_field(id, field)
9
- get("/devices/#{id}/get/#{field}").response.body
9
+ rv = get("/devices/#{id}/get/#{field}")
10
+ rv.parsed_response rescue rv.response.body
10
11
  end
11
12
 
12
13
  def set_field(id, field, value)
13
- get("/devices/#{id}/set/#{field}/#{value}").response.body
14
+ rv = get("/devices/#{id}/set/#{field}/#{value}")
15
+ rv.parsed_response rescue rv.response.body
14
16
  end
15
17
 
16
18
  def list(field, options={
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onering-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.80
4
+ version: 0.0.81
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: