zanox_publisher 0.1.1 → 0.1.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: ef346f6bee84b91e9942b9a7b202a20093949dbd
4
- data.tar.gz: dfa3e8edb4b715c2d31c79688434afaaf56a0ef1
3
+ metadata.gz: ab92ced7fcf9d5180b21687e1ac2a86ed1ab0d32
4
+ data.tar.gz: fc5e95aeade664c599a8acea03a3f6637e027cf9
5
5
  SHA512:
6
- metadata.gz: df2882030e67bade1de18007a69f2a909b07a7febed8f50da9eef6e2ce16bb81e907efb08ae5a28308926635e45e2d8cdff56131a2490fe3489735e173a670e0
7
- data.tar.gz: 94ad2ec17686ffb5c08c79cf543ba5a8b5dfde5be133149fe3e722f47ecd4987fc5e67fb5a3a303a2520fbaebcdea1ba53b67ad7a2c9478d1c6903a49cec9c1a
6
+ metadata.gz: bfc59b69751e3e118750c90a4b18db739e16a98a4f5a7eba835b7826cbb70a5332fbd888729c52dc8b21a16dd8082f0570362c8617fa5acade01ab9a25ae2ca2
7
+ data.tar.gz: fc81389b278d0dc3d946f13fdfbde219314dd3279d832751b59b935b7d46090fd926f2c5ae3f65466e1c9cf8981da400d13381c31f926b6e87c210325d6b6f8a
@@ -179,7 +179,7 @@ module ZanoxPublisher
179
179
  response = self.connection.get(RESOURCE_PATH + "/admedium/#{id}", params)
180
180
  admedium = response.fetch('admediumItem', [])
181
181
 
182
- if admedium.empty?
182
+ if admedium.nil? or admedium.empty?
183
183
  return nil
184
184
  end
185
185
 
@@ -103,7 +103,7 @@ module ZanoxPublisher
103
103
  response = self.connection.signature_get(RESOURCE_PATH + "/adspace/#{id}")
104
104
  adspace = response.fetch('adspaceItem', []).first
105
105
 
106
- if adspace.empty?
106
+ if adspace.nil? or adspace.empty?
107
107
  return nil
108
108
  end
109
109
 
@@ -207,7 +207,7 @@ module ZanoxPublisher
207
207
  response = self.connection.get(RESOURCE_PATH + "/product/#{id.to_i}", params)
208
208
  product = response.fetch('productItem').first
209
209
 
210
- if product.empty?
210
+ if product.nil? or product.empty?
211
211
  return nil
212
212
  end
213
213
 
@@ -140,7 +140,7 @@ module ZanoxPublisher
140
140
  response = self.connection.get(RESOURCE_PATH + "/program/#{id.to_i}")
141
141
  program = response.fetch('programItem', []).first
142
142
 
143
- if program.empty?
143
+ if program.nil? or program.empty?
144
144
  return nil
145
145
  end
146
146
 
@@ -1,3 +1,3 @@
1
1
  module ZanoxPublisher
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zanox_publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Prater