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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fed9722692598e0997347a56a67a78f2d01ce935113f518253f5c8ab6cb59fd
|
4
|
+
data.tar.gz: 1584032fc9f18b912a7de65ef1d80eaca6999504023b0b2ae4df5f90cbb97422
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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.
|
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-
|
11
|
+
date: 2024-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|