nws-api-alerts 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +5 -5
- data/lib/nws/api/alerts/client.rb +6 -0
- data/lib/nws/api/alerts/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8136a640f53cb85b72129191cf207e62498bc21ba7d1836817a7291c5019e9d5
|
4
|
+
data.tar.gz: 9ae76f589ce44206f061ab760bf5ce19cc9af9603a6cdb3444527eb6b17b6690
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d654f3a05875f86ae303183a4faff6cc062d43827d73222946863713ca26f97782c605f7f356efd893081d05342efa72ed3f763fcb2c775ccda55d8adf45f40
|
7
|
+
data.tar.gz: 9dd02a165a4e838029ab53899a3dd1ed7c6f8c636769d54783c7415116638082e1257293cffa3189c6a9f5791b9813bf712a7371a986287b8bdd09b5ad6ae816
|
data/CHANGELOG.md
ADDED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nws-api-alerts (0.1.
|
4
|
+
nws-api-alerts (0.1.1)
|
5
5
|
activesupport
|
6
6
|
httparty
|
7
7
|
|
@@ -16,14 +16,14 @@ GEM
|
|
16
16
|
zeitwerk (~> 2.1, >= 2.1.8)
|
17
17
|
concurrent-ruby (1.1.5)
|
18
18
|
diff-lcs (1.3)
|
19
|
-
httparty (0.17.
|
19
|
+
httparty (0.17.1)
|
20
20
|
mime-types (~> 3.0)
|
21
21
|
multi_xml (>= 0.5.2)
|
22
22
|
i18n (1.6.0)
|
23
23
|
concurrent-ruby (~> 1.0)
|
24
|
-
mime-types (3.
|
24
|
+
mime-types (3.3)
|
25
25
|
mime-types-data (~> 3.2015)
|
26
|
-
mime-types-data (3.2019.
|
26
|
+
mime-types-data (3.2019.0904)
|
27
27
|
minitest (5.11.3)
|
28
28
|
multi_xml (0.6.0)
|
29
29
|
rake (10.5.0)
|
@@ -43,7 +43,7 @@ GEM
|
|
43
43
|
thread_safe (0.3.6)
|
44
44
|
tzinfo (1.2.5)
|
45
45
|
thread_safe (~> 0.1)
|
46
|
-
zeitwerk (2.1.
|
46
|
+
zeitwerk (2.1.10)
|
47
47
|
|
48
48
|
PLATFORMS
|
49
49
|
ruby
|
@@ -20,6 +20,12 @@ module Nws
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def fetch_raw_alerts(message_type: 'alert', status: 'actual', urgency: nil, severity: nil, certainty: nil, limit: nil, path: nil)
|
23
|
+
message_type = message_type.join(',') if message_type.is_a? Array
|
24
|
+
status = status.join(',') if status.is_a? Array
|
25
|
+
urgency = urgency.join(',') if urgency.is_a? Array
|
26
|
+
severity = severity.join(',') if severity.is_a? Array
|
27
|
+
certainty = certainty.join(',') if certainty.is_a? Array
|
28
|
+
|
23
29
|
path ||= "/alerts?message_type=#{message_type}&status=#{status}"
|
24
30
|
path << "&urgency=#{urgency}" if urgency
|
25
31
|
path << "&severity=#{severity}" if severity
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nws-api-alerts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lojistic Dev Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -90,6 +90,7 @@ files:
|
|
90
90
|
- ".gitignore"
|
91
91
|
- ".rspec"
|
92
92
|
- ".travis.yml"
|
93
|
+
- CHANGELOG.md
|
93
94
|
- Gemfile
|
94
95
|
- Gemfile.lock
|
95
96
|
- LICENSE.txt
|