hey-you 0.1.7 → 0.1.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: 679472ed713fc109350ef9fd2b48880822edf62bf6a53874eb2df9470de2b580
4
- data.tar.gz: 4d4539b92cf5cf8a080b592bcc806a9ec7d51a5f2fbd2f7a66f9e9ae24d55fda
3
+ metadata.gz: 111d968c94f6f51e803d4232f32e335be19897f91d0ab391ce46a85916a3eae0
4
+ data.tar.gz: 9915bfd76064d7c977fab321aa655e66dfb32a4b18a9303b7529c8c115bc991c
5
5
  SHA512:
6
- metadata.gz: 8f60580d1951c4a90463f9c8c51d28854e2b98ec7bed42a5fe5ae5a87a86f7f2321377cad70f2afefc7e24e3aa09c2aa9db46c88dd519d3099bc360eb72516ea
7
- data.tar.gz: 06f1a99454e30a562cdf28eee7caa12d41ab133e57abe4d4fd437bc62149f33919c3dee81f8dd7045238c6c7f5df73055d95aa1711d3db04ceb421efe7ecef7e
6
+ metadata.gz: c31b6441abb8c789a634857200271d92a2f685bc1f4e85c636c13b616d5ddccb30e876dbf2318dfcb2b484cf715ed57bca6bff137bccb5934d09b263d846333b
7
+ data.tar.gz: 54138ca7c7d4f13b6c226273d1fa85d31b9fda63426c3f67f9c20071f71cee2990403ae7d5f7257bfe2cc19053494c498333914bdb370a7bc87375eef521445b
data/README.md CHANGED
@@ -15,6 +15,7 @@ him easy.
15
15
  * [Send notification](#send-notification)
16
16
  * [Sender options](#sender-options)
17
17
  * [Create your own channels](#create-your-own-channels)
18
+ * [Extensions](#extensions)
18
19
 
19
20
 
20
21
  ## Requirements
@@ -357,6 +358,9 @@ in your channel config.
357
358
 
358
359
  Now, when you will send notification, it will be send with your channel too.
359
360
 
361
+ ## Extensions
362
+ * [Slack channel](https://github.com/QNester/hey-you)
363
+ [![Gem Version](https://badge.fury.io/rb/hey-you-slack.svg)](https://badge.fury.io/rb/hey-you-slack)
360
364
 
361
365
  ## Development
362
366
 
@@ -46,8 +46,9 @@ module HeyYou
46
46
  "Send #{ch}-message to #{receive_info[ch][:subject]} with data: #{builder.send(ch).data}" \
47
47
  " and options: #{receive_info[ch][:options]}"
48
48
  )
49
+ receive_options = receive_info[ch].fetch(:options, {}) || {}
49
50
  response[ch] = Channels.const_get(ch.to_s.capitalize).send!(
50
- builder, to: receive_info[ch][:subject], **receive_info[ch][:options]
51
+ builder, to: receive_info[ch][:subject], **receive_options
51
52
  )
52
53
  else
53
54
  config.log("Channel #{ch} not allowed.")
@@ -1,3 +1,3 @@
1
1
  module HeyYou
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hey-you
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Nesterov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-09 00:00:00.000000000 Z
11
+ date: 2019-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fcm