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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b331739dcd09b5ccde46291bca7f0dc820d1ac7be8f2f011344b9392c3c0fc2d
4
- data.tar.gz: baa5f5f84d7481634a23608b1861ce7dfef43fc782394aa9e83f71b1968751cb
3
+ metadata.gz: 8136a640f53cb85b72129191cf207e62498bc21ba7d1836817a7291c5019e9d5
4
+ data.tar.gz: 9ae76f589ce44206f061ab760bf5ce19cc9af9603a6cdb3444527eb6b17b6690
5
5
  SHA512:
6
- metadata.gz: 4d87621dd3ec649385cca092fa7b1ad0fdfa2f15ca35b42340fd318690e27fd39e538710059e243d71a863916f9ec7bed123c4838fdc9436c7016ec63a314b6f
7
- data.tar.gz: dc62383232da06a465fae3a2deb718e0c2254501444a1c6f228d14d760d1b5096e4b31a436479fc8f2e7e88f441e8932904ab9178185f6f293e4b6df2f613e32
6
+ metadata.gz: 2d654f3a05875f86ae303183a4faff6cc062d43827d73222946863713ca26f97782c605f7f356efd893081d05342efa72ed3f763fcb2c775ccda55d8adf45f40
7
+ data.tar.gz: 9dd02a165a4e838029ab53899a3dd1ed7c6f8c636769d54783c7415116638082e1257293cffa3189c6a9f5791b9813bf712a7371a986287b8bdd09b5ad6ae816
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # 0.1.1 (09/24/2019)
2
+
3
+ * Certain parameters to the alert endpoint allow array values.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nws-api-alerts (0.1.0)
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.0)
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.2.2)
24
+ mime-types (3.3)
25
25
  mime-types-data (~> 3.2015)
26
- mime-types-data (3.2019.0331)
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.9)
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
@@ -1,7 +1,7 @@
1
1
  module Nws
2
2
  module Api
3
3
  module Alerts
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
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.0
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-19 00:00:00.000000000 Z
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