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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/modules/read_slack.rb +3 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13056c21b05b860bc02fd736bb34f9ad655b15405631901980f597678bab93bb
4
- data.tar.gz: ff913d5a8c421686edf791cde6cd66bb68ae5c8a4f9ec6e8c5fe7bccb067a68c
3
+ metadata.gz: db9673b9d90e9783080c90a167341201fd6321f29ae7d83b81c77fb473c8c55a
4
+ data.tar.gz: c74a9806cbc5199a96ce844ac5dfe26a1d3983492a91c92d33f2e3cf1e3107da
5
5
  SHA512:
6
- metadata.gz: e1f4851bc699ce46dea0f7814b8525d5cdf0344dca4b638cf64df4aa2eda2478edfdf3e2cf40ca0f55db563ae8aacf978431bec7f364c26d7488254190a3f7e1
7
- data.tar.gz: 837c5f143083eb90ce66c4333fb1738eda1dbbc54dd081a04bcb0d905ea762550f233728ffeb75183d9ff2a3ebe55cc8d05d3da953bfe17aa0b9e51318d90036
6
+ metadata.gz: 49aaf81162154f94d909e4535327bdc56dd458b4e5174cdaeaac586605722ae15ebd24c189096d6c3fca85922211e4d9c94fd8e4c06f8507403a66cc4c9d3e16
7
+ data.tar.gz: 3e7181e3df6e75f5156007bcad9b8a7caaf65c7832e841e37ad250a8f30a5f06663e1b938957f35d975b6af09f8892a06640d4b91b4b917abfc5589a135ccf7b
@@ -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 = 'console')
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baez_slack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luciano Adonis