lita-work-faster 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -2
- data/lib/lita/handlers/work_faster.rb +10 -0
- data/lita-work-faster.gemspec +2 -2
- 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: 499387e7881b915fd0012e08eb38cad362ffe9de
|
4
|
+
data.tar.gz: 69e862021b81f2b15fd0818d56bf116e12d0e2d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97e2d1c18d22bfa7971417627e933e308fc2fd594d2a4cc5c4c79ef9fe53c0fd58c4eba1cc60881fa3aa1909006e9e7b4fd14ca7ff06b98216c8ac3b32830c18
|
7
|
+
data.tar.gz: aa0d5ae0a71f4a2164d228c3ab0277643882f4892490ec74331e597323307af7976bcbc2e3773e980053fcd5703763a2c05cbc4aa34c79ef7cc9ae265dc56add
|
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# lita-work-faster
|
2
|
+
Does a couple of things to help you work faster:
|
2
3
|
|
3
|
-
|
4
|
+
|
5
|
+
1) Responds to the command "Hey" with the response "@all, work faster"
|
6
|
+
2) Responds to the command "Order" with a randomly generated order for people to present, such as in a morning standup.
|
4
7
|
|
5
8
|
## Installation
|
6
9
|
|
@@ -13,7 +16,9 @@ gem "lita-work-faster"
|
|
13
16
|
|
14
17
|
## Configuration
|
15
18
|
|
16
|
-
|
19
|
+
In your lita_config file, set the parameter work_faster.users with an array:
|
20
|
+
|
21
|
+
`config.handlers.work_faster.users = ["James", "George", "David"]`
|
17
22
|
|
18
23
|
|
19
24
|
## License
|
@@ -3,11 +3,21 @@ module Lita
|
|
3
3
|
class WorkFaster < Handler
|
4
4
|
route %r{^hey$}i, :work_faster, command: true, help: { "hey" => "Responds appropriately to a conversation." }
|
5
5
|
|
6
|
+
route %r{^order$}i, :order, command: true, help: { "order" => "Randomly generates a meeting order for a morning standup"}
|
7
|
+
|
8
|
+
def self.default_config(config)
|
9
|
+
config.users = ["replace", "your", "users"]
|
10
|
+
end
|
11
|
+
|
6
12
|
def work_faster(response)
|
7
13
|
|
8
14
|
response.reply "@all, WORK FASTER"
|
9
15
|
end
|
10
16
|
|
17
|
+
def order(response)
|
18
|
+
response.reply config.users.shuffle
|
19
|
+
end
|
20
|
+
|
11
21
|
|
12
22
|
|
13
23
|
end
|
data/lita-work-faster.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "lita-work-faster"
|
3
|
-
spec.version = "0.0
|
3
|
+
spec.version = "0.1.0"
|
4
4
|
spec.authors = ["Dan Lopez"]
|
5
5
|
spec.email = ["dan@apprennet.com"]
|
6
6
|
spec.description = "Work Faster"
|
7
|
-
spec.summary = "
|
7
|
+
spec.summary = "A gem that helps you work faster (generates morning standup order, etc.) "
|
8
8
|
spec.homepage = "https://github.com/danlopez191/lita-work-faster"
|
9
9
|
spec.license = "MIT"
|
10
10
|
spec.metadata = { "lita_plugin_type" => "handler" }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-work-faster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Lopez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -109,7 +109,7 @@ rubyforge_project:
|
|
109
109
|
rubygems_version: 2.4.1
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
|
-
summary:
|
112
|
+
summary: A gem that helps you work faster (generates morning standup order, etc.)
|
113
113
|
test_files:
|
114
114
|
- spec/lita/handlers/work_faster_spec.rb
|
115
115
|
- spec/spec_helper.rb
|