lita-onewheel-doc 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +15 -3
- data/lib/lita/handlers/onewheel_doc.rb +2 -2
- data/lita-onewheel-doc.gemspec +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: a783f12e825048240cb607a24fc5ff98a376d7c8
|
4
|
+
data.tar.gz: e43d1a7d495e338d36918366ab0fcbc0da14d807
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15c6243d6b7384ba31f97fcf14212b3b0472fa6cdffe79edd73bb3bc7ca2ef0f8b08d5bf0455800c542c2b61d93716644dbcc8d2f984562e474d5533ada9b29f
|
7
|
+
data.tar.gz: 54459243e71de2872fcbb7efbbb6e3a36f0b081a5c20a6503855554c24d4a968a599356b267fe90b9974184fa54892648f22329032897299a7e29dd205ea28fb
|
data/README.md
CHANGED
@@ -3,7 +3,11 @@
|
|
3
3
|
[](https://travis-ci.org/onewheelskyward/lita-onewheel-doc)
|
4
4
|
[](https://coveralls.io/r/onewheelskyward/lita-onewheel-doc)
|
5
5
|
|
6
|
-
|
6
|
+
This plugin was designed as sort of a shared bookmark store for work. We use Confluence, which has a pretty
|
7
|
+
ridiculous URI structure, and I wanted to find a way to store the location of things like the deploy instructions,
|
8
|
+
how to nombom, and ways to make fun of my coworkers.
|
9
|
+
|
10
|
+
Thus, the plugin was born. It'll store, quite literally, anything you like.
|
7
11
|
|
8
12
|
## Installation
|
9
13
|
|
@@ -15,8 +19,16 @@ gem "lita-onewheel-doc"
|
|
15
19
|
|
16
20
|
## Configuration
|
17
21
|
|
18
|
-
|
22
|
+
Just needs redis which you have because you're already running Lita.
|
19
23
|
|
20
24
|
## Usage
|
25
|
+
Command | Description
|
26
|
+
------------------------- | -------------
|
27
|
+
`!doc key https://value` | Stores https://value under the key key. Note, web links are not enforced. You can store emoji if you like.
|
28
|
+
`!doc key` | Find all documents starting with, or equal to key.
|
29
|
+
`!doc` | list all keys.
|
30
|
+
`!docdel key` | Remove key from the store.
|
31
|
+
|
32
|
+
## To be implemented
|
21
33
|
|
22
|
-
|
34
|
+
Make !doc key substring search instead of starts-with.
|
@@ -10,7 +10,7 @@ module Lita
|
|
10
10
|
route /^doc\s+([\w\/+_-]+)\s+(.*)$/,
|
11
11
|
:command_add_key,
|
12
12
|
command: true,
|
13
|
-
help: {'!doc key
|
13
|
+
help: {'!doc key value' => 'Add a document key which references value'}
|
14
14
|
route /^doc$/,
|
15
15
|
:command_list_keys,
|
16
16
|
command: true,
|
@@ -18,7 +18,7 @@ module Lita
|
|
18
18
|
route /^doc\s+(\w+)$/,
|
19
19
|
:command_fetch_key,
|
20
20
|
command: true,
|
21
|
-
help: {'!doc key ' => 'fetch the value for
|
21
|
+
help: {'!doc key ' => 'fetch the value for key'}
|
22
22
|
|
23
23
|
def command_add_key(response)
|
24
24
|
key = response.matches[0][0]
|
data/lita-onewheel-doc.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-onewheel-doc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kreps
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
148
|
rubyforge_project:
|
149
|
-
rubygems_version: 2.
|
149
|
+
rubygems_version: 2.5.1
|
150
150
|
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: Will do it's best to store urls under the key specified.
|