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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14f1fa1b04004a5957ef595a0941379df633787b
4
- data.tar.gz: 4ead5ac70ec87713b517aaf092075d8be15b9472
3
+ metadata.gz: 274d646c72d431d1306d4ab0ab6e71ecbadc3ea8
4
+ data.tar.gz: a7095755189092050c6ac8fc6216e82c73d70cbb
5
5
  SHA512:
6
- metadata.gz: 206ced52cf3aac521ef6470741c279d1ff687b612b5a8e5471ebda458d393e16c167ff5d7ccc2765c63b67bc6a58d9763fc196d693faadfa7a13e0d378f31521
7
- data.tar.gz: abfa0218dedb1ab83471afaa645747eb52bb0c087961764e6c0059708757ec9ed0bcb69bb0032436e922c7913c173f38d522319b6e11147afee42acfa235970f
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'
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-doc'
3
- spec.version = '0.0.0'
3
+ spec.version = '0.0.1'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = 'Basic key/value store designed for http links.'
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps