notifiee-ruby 1.0.4 → 1.0.5

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: 128a7daebcabf65462dd4d26567358976630740beede93b633e1003ff20dcaf4
4
- data.tar.gz: 329a14750184e587e72befa229b4ef177aa034bdb490ff6205aa399d3772edff
3
+ metadata.gz: 11f8c6b605beb7d33cf76fb018c51a4a39643da5c9db6420ba746c80f3b5d16f
4
+ data.tar.gz: e17d5d8ab3c9761bc0cc42134fc0a214a08d84265b1c345b827ffed29b428919
5
5
  SHA512:
6
- metadata.gz: c61bfff5a4ed85e5f6398bdb71ad1c50a9423fc342a6656bc609df196612aafb5776caf42b1856a55488bd663abfc3c6648788cc0075994818f251f47b898328
7
- data.tar.gz: 839b6ee9d0035eaa42e576952c9e221b40e1f0ec80a2f1bc2036927c67a31a4f08b9c0ba30a5aea89fc660ea6705f1976865cc9a7f25b64b82bc943d80e2841e
6
+ metadata.gz: 3658303e83bf827bda7fb0f305d668eb1b89338009823c695d3c83d4f29569fbfdcc02f7375f339040dff2eab0b4f6b1ace3821b06dc45901765e6e1adbd5bc8
7
+ data.tar.gz: 822714b391e71a2eb213a1740d632034fe1373d31f71bef3bca96281b2cb12a3cb87c016fd9d2ba9ebeff748afe2bc41155eb242da9f5b1bc726f311593861de
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- notifiee-ruby (1.0.3)
4
+ notifiee-ruby (1.0.4)
5
5
  json
6
6
 
7
7
  GEM
@@ -8,11 +8,14 @@ module NotifieeAPI
8
8
  class << self
9
9
 
10
10
  def notify(notifiee, channels, message, **params)
11
+ channels = [channels].flatten
12
+
11
13
  payload = params.merge(
12
14
  notifiee: notifiee,
13
15
  channels: channels,
14
16
  message: message
15
17
  )
18
+
16
19
  NotifieeAPI::Notifications.create(payload)
17
20
  end
18
21
 
@@ -1,3 +1,3 @@
1
1
  module NotifieeAPI
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiee-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gareth Fuller
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-30 00:00:00.000000000 Z
11
+ date: 2018-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler