lita-slack-standup 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +15 -10
- data/lib/lita/handlers/slack_standup.rb +0 -1
- data/lita-slack-standup.gemspec +1 -1
- data/spec/lita/handlers/{standup_spec.rb → slack_standup_spec.rb} +5 -5
- data/spec/spec_helper.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 372b83c82f687449d7f5fd37fb3def9854f62c58
|
4
|
+
data.tar.gz: dafa991a290ec6cecf33845d996aae15bf9f596d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92c6ea2b8b66cc07d86245e4fc6e74caba356e851011864b462db5e28898fe0879e174709a68a232ad27ef8f51135e1ce8c41e8800cbd92eb5be5f7a383d7e75
|
7
|
+
data.tar.gz: 476920eb200651d8e6f3b42628a800ed2d25c481aed1542e97f47f858ce914fcce59a8562806bf73bd96c2f569f051a05011e891bbf08e5926c0d2790db6d652
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
# lita-
|
1
|
+
# lita-lack-tandup
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
lita-slack-standup is a gem for Lita (https://www.lita.io/), a chat bot written in ruby.
|
4
|
+
It handles standup meetings on slack (the sentences are in french for now).
|
5
5
|
|
6
6
|
## Installation
|
7
7
|
|
@@ -17,19 +17,24 @@ In your lita configuration file (lita_config.rb), add the lines :
|
|
17
17
|
``` ruby
|
18
18
|
Lita.congifure do |config|
|
19
19
|
## standup
|
20
|
-
config.handlers.
|
20
|
+
config.handlers.slack_standup.channel = ENV['STANDUP_CHANNEL']
|
21
21
|
end
|
22
22
|
```
|
23
23
|
|
24
24
|
And set the environment variable STANDUP_CHANNEL, with the name of the channel where you want to held the standup.
|
25
25
|
|
26
|
+
## Test
|
27
|
+
|
28
|
+
We used VCR generated by real standups on slack.
|
29
|
+
We had to delete them for privacy reasons.
|
30
|
+
|
26
31
|
## Usage
|
27
32
|
|
28
|
-
!start standup : launches the standup, prints the standups already filled and asks for someone else to report
|
29
|
-
!next standup : skips the current user and asks the next user to do his standup report
|
30
|
-
!standup <some standup report> : saves your standup. If you do it before the start of the standup, you won't be asked to report. The bot will displays your standup in your stead
|
31
|
-
!ignore <some user> : ignores an user for the standups
|
32
|
-
!unignore <some user> : unignores an user
|
33
|
-
!list ignore : list all ignored users
|
33
|
+
- !start standup : launches the standup, prints the standups already filled and asks for someone else to report
|
34
|
+
- !next standup : skips the current user and asks the next user to do his standup report
|
35
|
+
- !standup <some standup report> : saves your standup. If you do it before the start of the standup, you won't be asked to report. The bot will displays your standup in your stead
|
36
|
+
- !ignore <some user> : ignores an user for the standups
|
37
|
+
- !unignore <some user> : unignores an user
|
38
|
+
- !list ignore : list all ignored users
|
34
39
|
|
35
40
|
The standup stops when everyone has done his report or has been skipped.
|
data/lita-slack-standup.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
describe Lita::Handlers::
|
3
|
+
describe Lita::Handlers::SlackStandup, lita_handler: true do
|
4
4
|
|
5
5
|
let(:channel) { "#jambot-test" }
|
6
6
|
let(:robot_name) { "jambot-test" }
|
@@ -12,25 +12,25 @@ describe Lita::Handlers::Standup, lita_handler: true do
|
|
12
12
|
config.token = ENV['SLACK_LITA_TOKEN']
|
13
13
|
end
|
14
14
|
Lita.configure do |config|
|
15
|
-
config.handlers.
|
15
|
+
config.handlers.slack_standup.channel = '#jambot-test'
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
19
|
let(:registry) do
|
20
20
|
reg = Lita::Registry.new
|
21
|
-
reg.register_handler(Lita::Handlers::
|
21
|
+
reg.register_handler(Lita::Handlers::SlackStandup)
|
22
22
|
reg.configure do |config|
|
23
23
|
config.robot.name = robot_name
|
24
24
|
config.robot.alias = "!"
|
25
25
|
config.robot.adapter = :slack
|
26
|
-
config.handlers.
|
26
|
+
config.handlers.slack_standup.channel = channel
|
27
27
|
end
|
28
28
|
|
29
29
|
reg
|
30
30
|
end
|
31
31
|
|
32
32
|
before do
|
33
|
-
standup = Lita::Handlers::
|
33
|
+
standup = Lita::Handlers::SlackStandup.new(robot)
|
34
34
|
standup.send(:standup_members).clear
|
35
35
|
standup.send(:ids_to_members).clear
|
36
36
|
standup.send(:ignored_members).clear
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-slack-standup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sybil Deboin
|
@@ -181,7 +181,7 @@ files:
|
|
181
181
|
- lib/slack_client.rb
|
182
182
|
- lita-slack-standup.gemspec
|
183
183
|
- locales/en.yml
|
184
|
-
- spec/lita/handlers/
|
184
|
+
- spec/lita/handlers/slack_standup_spec.rb
|
185
185
|
- spec/spec_helper.rb
|
186
186
|
- templates/.gitkeep
|
187
187
|
homepage: https://github.com/blackbirdco/lita-slack-standup
|
@@ -210,6 +210,6 @@ signing_key:
|
|
210
210
|
specification_version: 4
|
211
211
|
summary: ''
|
212
212
|
test_files:
|
213
|
-
- spec/lita/handlers/
|
213
|
+
- spec/lita/handlers/slack_standup_spec.rb
|
214
214
|
- spec/spec_helper.rb
|
215
215
|
has_rdoc:
|