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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c5ec6326855941eeba280c7b5a27969e11e2264
4
- data.tar.gz: deef172c4fc36c34885bfd26baa7eb996900a8ed
3
+ metadata.gz: 372b83c82f687449d7f5fd37fb3def9854f62c58
4
+ data.tar.gz: dafa991a290ec6cecf33845d996aae15bf9f596d
5
5
  SHA512:
6
- metadata.gz: 683ba3db76187f7e84e022cd293618dfbaf7f6c2e5c0abe695361bcc6c570538d097fe08a9d1c5cbb1692c0a4318d624862aadb0d275ec57dc7899d832f5940a
7
- data.tar.gz: f443e67469b97724a20f19429a567d9dc26ae7097811d7f74a4c80bd99a1e46e807e177ab14409e87cabe5d648166301d2a0acc01dc145b578712f432e3941cc
6
+ metadata.gz: 92c6ea2b8b66cc07d86245e4fc6e74caba356e851011864b462db5e28898fe0879e174709a68a232ad27ef8f51135e1ce8c41e8800cbd92eb5be5f7a383d7e75
7
+ data.tar.gz: 476920eb200651d8e6f3b42628a800ed2d25c481aed1542e97f47f858ce914fcce59a8562806bf73bd96c2f569f051a05011e891bbf08e5926c0d2790db6d652
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ rspec/fixtures/vcr
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # lita-standup
1
+ # lita-lack-tandup
2
2
 
3
- - lita-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).
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.standup.channel = ENV['STANDUP_CHANNEL']
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.
@@ -151,7 +151,6 @@ module Lita
151
151
  standup_members.select{ |key,value| value.empty? }.first.first
152
152
  end
153
153
 
154
-
155
154
  def end_standup
156
155
  in_standup.value = 'false'
157
156
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-slack-standup"
3
- spec.version = "0.1.0"
3
+ spec.version = "0.1.1"
4
4
  spec.authors = ["Sybil Deboin"]
5
5
  spec.email = ["sybil.deboin@gmail.com"]
6
6
  spec.description = "Standup feature for slack"
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- describe Lita::Handlers::Standup, lita_handler: true do
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.standup.channel = '#jambot-test'
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::Standup)
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.standup.channel = channel
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::Standup.new(robot)
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
@@ -1,4 +1,4 @@
1
- require "lita-standup"
1
+ require "lita-slack-standup"
2
2
  require "lita/rspec"
3
3
  require "webmock/rspec"
4
4
 
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.0
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/standup_spec.rb
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/standup_spec.rb
213
+ - spec/lita/handlers/slack_standup_spec.rb
214
214
  - spec/spec_helper.rb
215
215
  has_rdoc: