baez_slack 0.0.3 → 0.0.4
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 +4 -4
- data/lib/modules/read_slack.rb +3 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db9673b9d90e9783080c90a167341201fd6321f29ae7d83b81c77fb473c8c55a
|
4
|
+
data.tar.gz: c74a9806cbc5199a96ce844ac5dfe26a1d3983492a91c92d33f2e3cf1e3107da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49aaf81162154f94d909e4535327bdc56dd458b4e5174cdaeaac586605722ae15ebd24c189096d6c3fca85922211e4d9c94fd8e4c06f8507403a66cc4c9d3e16
|
7
|
+
data.tar.gz: 3e7181e3df6e75f5156007bcad9b8a7caaf65c7832e841e37ad250a8f30a5f06663e1b938957f35d975b6af09f8892a06640d4b91b4b917abfc5589a135ccf7b
|
data/lib/modules/read_slack.rb
CHANGED
@@ -7,8 +7,7 @@ module ReadSlack
|
|
7
7
|
include ConsoleSlack
|
8
8
|
include DirectiveLookup
|
9
9
|
|
10
|
-
def share_message(data)
|
11
|
-
output = ENV['SLACK_C_OUTPUT'] || @output
|
10
|
+
def share_message(data, output)
|
12
11
|
case output
|
13
12
|
when 'slack'
|
14
13
|
check_type(data)
|
@@ -20,10 +19,9 @@ module ReadSlack
|
|
20
19
|
end
|
21
20
|
end
|
22
21
|
|
23
|
-
def single_client(output = '
|
24
|
-
@output = output
|
22
|
+
def single_client(output = ENV['SLACK_C_OUTPUT'])
|
25
23
|
@time_client.on :message do |data|
|
26
|
-
share_message(data)
|
24
|
+
share_message(data, output)
|
27
25
|
end
|
28
26
|
@time_client.start!
|
29
27
|
end
|