pocus 0.5.1 → 0.5.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fcc8aee8ffa6b81d4328650db0ff7315ab8e6b8c
4
- data.tar.gz: 622882124f046cbd1f3d0312cbe6031d679ec4e2
3
+ metadata.gz: ec4ee716877d520a41c54a5fad1184af24384d6f
4
+ data.tar.gz: f64d4d3e1508f03ced47a1e46bed216c706f6116
5
5
  SHA512:
6
- metadata.gz: 106e267bdee2c61e5a472d3e0e12306897b687aae7712760c677e99e66a97c3d70e6a13e021bd5a33a9cdbd659dba6d7900d5f67fba65972a02f36b30d976a20
7
- data.tar.gz: bf96e6dad151b44400d7976551d147716f830a3b5f9a87e6207673197a4469fb8b7a5535fa267aa4e4d42c951b6f22b5339bae579e379928fa54b81e58ecccd5
6
+ metadata.gz: 6b757aa52d2f0891b0a6553d704eec16216f3bc57b52dfe6daf84fbad786c47c199756b09b3a2cef647f7ee5f103b6e88116745c97f3786850d76f02da3d4758
7
+ data.tar.gz: 06f090731d8ab60acb362fc3351760d8aee54f97a8786a26d057d211f003a580a965a82bd99bcaa08684f9ac04ea7efd346f7cf77c6e4b2ac71519b153c449a9
@@ -12,7 +12,7 @@ module Pocus
12
12
  end
13
13
 
14
14
  def self.version
15
- '0.5.1'
15
+ '0.5.2'
16
16
  end
17
17
 
18
18
  def self.version_label
@@ -74,7 +74,7 @@ module Pocus
74
74
  def get_multiple(request_path, klass, filters = {})
75
75
  request_data = URI.encode_www_form(camelize_fields filters)
76
76
  response = session.send_request('GET', path + request_path + '?' + request_data)
77
- data = response.fetch(klass.tag_multiple)
77
+ data = response.fetch(klass.tag_multiple) || []
78
78
  resources = data.map { |fields| klass.new(fields.merge(parent: self)) }
79
79
  ResponseArray.new(resources, response['errors'], response['warnings'])
80
80
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pocus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piers Chambers