south_african_air_quality_index 0.0.3 → 0.0.4

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
  SHA256:
3
- metadata.gz: a23dbb1a42530463ec42613307c880649753409ab4fcc31d5a6e7ae9a1bb7c41
4
- data.tar.gz: 3a8e0dc764b6c1487477893b5246829be7080f0a22a9ff399eef04cdd65cc8af
3
+ metadata.gz: 4fed9722692598e0997347a56a67a78f2d01ce935113f518253f5c8ab6cb59fd
4
+ data.tar.gz: 1584032fc9f18b912a7de65ef1d80eaca6999504023b0b2ae4df5f90cbb97422
5
5
  SHA512:
6
- metadata.gz: 76ec747444e003f82a48c9ae1cd01ef0a54b2bdade29eb24d683e0b6e5103fc960b08d5c8fabc1c5ded3d299e716b909da7197fd7b31f21742e18461ae299172
7
- data.tar.gz: 5213adc33c04ab0f81757a91592c92c56b4caf11748d53dfd8c6556ae2cc08bce10f8a3b73a21c2d00610d60e04034b729ebeb9a1eb10af7784f344aa0ae56e6
6
+ metadata.gz: dab813e91a783cd81b16be144989e3cd36e14fea44195a1cbfefb29e8a6b4ec81dbe5f3963ddf468ecd642201428f6e8a7764d7947f936fb3f8d13162a55ae85
7
+ data.tar.gz: 7888aa82244e3a1c1a2c36f5b8b6942a744045f234e2acd2ede61d553545bcd5c4f063c00f3611482466157b37f545747ce1a3b4ca9de94cce3f449a5028f319
@@ -86,7 +86,7 @@ module SouthAfricanAirQualityIndex
86
86
  useBackWard: true,
87
87
  unitConversion: false,
88
88
  includeSummary: true,
89
- onlySummary: false,
89
+ onlySummary: false, # TODO: Parameter?
90
90
  }
91
91
 
92
92
  path = "v1/envista/stations/#{station['stationId']}/#{report_type}"
@@ -197,6 +197,8 @@ module SouthAfricanAirQualityIndex
197
197
  JSON.parse(response.body) # Purposely not using HTTParty
198
198
  rescue JSON::ParserError => _e
199
199
  response.body
200
+ rescue TypeError => _e
201
+ nil
200
202
  end
201
203
 
202
204
  def process_params(params)
@@ -1,3 +1,3 @@
1
1
  module SouthAfricanAirQualityIndex
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: south_african_air_quality_index
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - trex22
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-17 00:00:00.000000000 Z
11
+ date: 2024-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty