hey-you 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/hey_you/sender.rb +2 -1
- data/lib/hey_you/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 111d968c94f6f51e803d4232f32e335be19897f91d0ab391ce46a85916a3eae0
|
4
|
+
data.tar.gz: 9915bfd76064d7c977fab321aa655e66dfb32a4b18a9303b7529c8c115bc991c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/hey_you/sender.rb
CHANGED
@@ -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], **
|
51
|
+
builder, to: receive_info[ch][:subject], **receive_options
|
51
52
|
)
|
52
53
|
else
|
53
54
|
config.log("Channel #{ch} not allowed.")
|
data/lib/hey_you/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fcm
|