ruboty-rotation 1.0.0 → 1.0.1
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/.gitignore +2 -0
- data/README.md +49 -0
- data/lib/ruboty/handlers/rotation.rb +3 -0
- data/lib/ruboty/rotation/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c0095ad3fc8b899d319315a0e908abf00ec2494
|
4
|
+
data.tar.gz: 244dc7f90856a22e66e683a380398473dfbd87b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd82064ebece18fce4716d6cd53af4142c01027fea245cdb3a4f9b3bbedc981df14db91798cb8dcef56c105f5e713f72e5b160a60c23049087d8888094ef202e
|
7
|
+
data.tar.gz: 588171d184b5cf61e99aed86c52d3009d490f0f001d61f61fe99ca408f76d0a2a5c2087385df64fbde5f133d2eb39ff32d84f6f22151eb327d2a926d4aa39ceb
|
data/.gitignore
ADDED
data/README.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Ruboty::Rotation
|
2
|
+
|
3
|
+
Rotation management system for Ruboty.
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
```
|
8
|
+
@ruboty rotation current - Show current item
|
9
|
+
@ruboty rotation items - Show all items
|
10
|
+
@ruboty rotation items add <item> - Add item
|
11
|
+
@ruboty rotation items delete <item> - Delete item
|
12
|
+
@ruboty rotation next - Move to next
|
13
|
+
@ruboty rotation prev - Move to prev
|
14
|
+
```
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```
|
19
|
+
> @ruboty rotation items add one
|
20
|
+
Item one added
|
21
|
+
> @ruboty rotation items add two
|
22
|
+
Item two added
|
23
|
+
> @ruboty rotation items add three
|
24
|
+
Item three added
|
25
|
+
> @ruboty rotation items
|
26
|
+
one,two,three
|
27
|
+
> @ruboty rotation current
|
28
|
+
one
|
29
|
+
> @ruboty rotation next
|
30
|
+
> @ruboty rotation current
|
31
|
+
two
|
32
|
+
> @ruboty rotation next
|
33
|
+
> @ruboty rotation current
|
34
|
+
three
|
35
|
+
> @ruboty rotation next
|
36
|
+
> @ruboty rotation current
|
37
|
+
one
|
38
|
+
```
|
39
|
+
|
40
|
+
## ENV
|
41
|
+
|
42
|
+
```
|
43
|
+
# With ENV options:
|
44
|
+
# ROTATION_CURRENT_PREFIX='Current item is '
|
45
|
+
# ROTATION_CURRENT_SUFFIX='. Please check it!'
|
46
|
+
|
47
|
+
> @ruboty rotation current
|
48
|
+
Current item is one. Please check it!
|
49
|
+
```
|
@@ -3,6 +3,9 @@ module Ruboty
|
|
3
3
|
class Rotation < Base
|
4
4
|
NAMESPACE = "rotation"
|
5
5
|
|
6
|
+
env :ROTATION_CURRENT_PREFIX, "Prefix of 'Show current' message", optional: true
|
7
|
+
env :ROTATION_CURRENT_SUFFIX, "SUffix of 'Show current' message", optional: true
|
8
|
+
|
6
9
|
on(/rotation items add (?<item>.+)/, name: "add_item", description: "Add item")
|
7
10
|
on(/rotation items delete (?<item>.+)/, name: "delete_item", description: "Delete item")
|
8
11
|
on(/rotation items\z/, name: "list_items", description: "List items")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruboty-rotation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jun OHWADA
|
@@ -59,7 +59,9 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- ".gitignore"
|
62
63
|
- Gemfile
|
64
|
+
- README.md
|
63
65
|
- Rakefile
|
64
66
|
- lib/ruboty/handlers/rotation.rb
|
65
67
|
- lib/ruboty/rotation.rb
|