south_african_air_quality_index 0.0.7 → 0.0.8
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba61f4523aba024f9b0eb87d029f9d01ec7a5e1dd0cd27c6911f84b79e9be043
|
|
4
|
+
data.tar.gz: 789e93e7f2aaed4d48522bd04292df7d599e136ed06ee77944f662c0e227f27e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2414bf3e6406600ca70906c6ee0f0723309b43d9075a684ae9f13c9501f42c56e6bc041e8b294c5efdc6c8638ae6c5bc0d386b0629fa32311fc2fbce8e2cbe6b
|
|
7
|
+
data.tar.gz: 53f86a33c1e0d1a00742da5cb70c1b8c61ce5ce1d37939cb330a9a990990a27ea0d4bb5e2c54366ff1b14052807136c0edef9616888d10e778ef6b18bf35fb48
|
|
@@ -2,11 +2,12 @@ module SouthAfricanAirQualityIndex
|
|
|
2
2
|
class Client
|
|
3
3
|
include ::SouthAfricanAirQualityIndex::Constants
|
|
4
4
|
|
|
5
|
-
attr_reader :base_path, :port, :stations
|
|
5
|
+
attr_reader :base_path, :port, :stations, :verify_ssl
|
|
6
6
|
|
|
7
|
-
def initialize(base_path: BASE_PATH, port: BASE_PORT)
|
|
7
|
+
def initialize(base_path: BASE_PATH, port: BASE_PORT, verify_ssl: true)
|
|
8
8
|
@base_path = base_path
|
|
9
9
|
@port = port
|
|
10
|
+
@verify_ssl = verify_ssl
|
|
10
11
|
@cookie = authorise
|
|
11
12
|
end
|
|
12
13
|
|
|
@@ -140,7 +141,8 @@ module SouthAfricanAirQualityIndex
|
|
|
140
141
|
body: body,
|
|
141
142
|
headers: headers.merge({ 'Content-Type': 'application/json' }),
|
|
142
143
|
port: port,
|
|
143
|
-
format: :json
|
|
144
|
+
format: :json,
|
|
145
|
+
verify: @verify_ssl
|
|
144
146
|
)
|
|
145
147
|
|
|
146
148
|
end_time = micro_second_time
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- trex22
|
|
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
205
205
|
- !ruby/object:Gem::Version
|
|
206
206
|
version: '0'
|
|
207
207
|
requirements: []
|
|
208
|
-
rubygems_version: 3.
|
|
208
|
+
rubygems_version: 3.7.1
|
|
209
209
|
specification_version: 4
|
|
210
210
|
summary: A client for using the South African Air Quality Index API in Ruby.
|
|
211
211
|
test_files: []
|