tito 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb2bd9699b6ac1cf137c2662036e5654a827e50a
4
- data.tar.gz: 79e56745027ab5bf6f522a685d5c2cfed0d48f3f
3
+ metadata.gz: 6de18101d866ed779e712565fe3945f552c23323
4
+ data.tar.gz: 8000c7dc03eb79d5d7f782d7c9d36bb14fc84b3f
5
5
  SHA512:
6
- metadata.gz: cf20c0ca3e7bd5f69823af3a3fa7430c0afd8bea5789fcce107c059854f041dfd7badb7443087c55174285e71274b4216afea849ea985f15175e1e4a391e801f
7
- data.tar.gz: 0e472a74e96ed8c236f4e5a4525f18361b136a78d2567404a265c2f3b5a378a9927c9decea1b91b9b6182f4db8d0144c68458275541c827780508cbb7142987f
6
+ metadata.gz: a767439654678912608f2a8e60cf7f24fbcbac3d33be8009df65bfbd613efda98e94030ea34f6759f83156bd4d2eeb84ac7441fe36837080806232dd80f86fda
7
+ data.tar.gz: 8abe554268a25d2c017c1d935f0cf295f0cd4574241dd5fd644425c73911d48d5659f0aee38040d7a476e5336c26eb985afd22c2c4a91b12435e0eafdeea5512
@@ -86,7 +86,7 @@ module Tito
86
86
  response = http(api_key: api_key).get(all_url(path_prefix: path_prefix), params: ParamNester.encode(params), ssl_context: ssl_context).parse
87
87
  all_records = response[self.resource_path(:all)]
88
88
  meta = response["meta"]
89
- out = ResponseArray.new(all_records.collect do |record|
89
+ out = ResponseArray.new((all_records || []).collect do |record|
90
90
  new record
91
91
  end)
92
92
  out.meta = meta
@@ -1,3 +1,3 @@
1
1
  module Tito
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Campbell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-21 00:00:00.000000000 Z
11
+ date: 2017-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http