lita-onewheel-doc 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/onewheel_doc.rb +1 -1
- data/lita-onewheel-doc.gemspec +1 -1
- data/spec/lita/handlers/onewheel_doc_spec.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 274d646c72d431d1306d4ab0ab6e71ecbadc3ea8
|
4
|
+
data.tar.gz: a7095755189092050c6ac8fc6216e82c73d70cbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 540ceb79c6dd65a177e04eb8939046963b6482b386237df1ae37b3c54545372c970353013e834510e53a68950bf2fffdb94f3b376d165474b525aadf4ccf4199
|
7
|
+
data.tar.gz: 117c19d3602a426ec20ed918767586288b2be02daab5d0dae9be822f446f395ae737e57a378b9d8ee29e07fe0ac604bd77da62c0d97411c0dd5f44d15761a2c1
|
@@ -3,7 +3,7 @@ module Lita
|
|
3
3
|
class OnewheelDoc < Handler
|
4
4
|
REDIS_KEY = 'onewheel-doc'
|
5
5
|
|
6
|
-
route /^doc\s+(\w+)\s+(.*)$/, :add_key, command: true,
|
6
|
+
route /^doc\s+([\w\/+_-]+)\s+(.*)$/, :add_key, command: true,
|
7
7
|
help: '!doc key_val http:// Add a key using key_val and the http link'
|
8
8
|
route /^doc$/, :list_keys, command: true,
|
9
9
|
help: '!doc list all keys'
|
data/lita-onewheel-doc.gemspec
CHANGED
@@ -16,4 +16,8 @@ describe Lita::Handlers::OnewheelDoc, lita_handler: true do
|
|
16
16
|
send_command 'doc'
|
17
17
|
expect(replies.last).to eq("one: http://one\ntwo: http://two")
|
18
18
|
end
|
19
|
+
it 'documents real urls' do
|
20
|
+
send_command 'doc pachinko-endpoints https://shopigniter.atlassian.net/wiki/display/I5/Pachinko+Endpoints'
|
21
|
+
expect(replies.last).to eq('Documented pachinko-endpoints as https://shopigniter.atlassian.net/wiki/display/I5/Pachinko+Endpoints')
|
22
|
+
end
|
19
23
|
end
|