ruboty-rotation 1.0.0 → 1.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: eea9402492ac97717699361961ab20b74be1ddc0
4
- data.tar.gz: 9919bb3d668b2db3558aec800a12d3f69a8540f5
3
+ metadata.gz: 5c0095ad3fc8b899d319315a0e908abf00ec2494
4
+ data.tar.gz: 244dc7f90856a22e66e683a380398473dfbd87b3
5
5
  SHA512:
6
- metadata.gz: 5fc7ab1a7616d967e29a38c82c3de900d1a221afc177cfb18816a66700cb46b8d6f84c8fde54334689a8492e49fe0a921571179f0ac75b7b9632b6b2f2af7445
7
- data.tar.gz: bea38b3e31d9d40bb9370c3556cf9bf7a7acb7b42ae07a55866122becd4d32bc1014d52828166cda98bb6152f5b5d2d881a1da99f173a78083f14eb716cfde6d
6
+ metadata.gz: cd82064ebece18fce4716d6cd53af4142c01027fea245cdb3a4f9b3bbedc981df14db91798cb8dcef56c105f5e713f72e5b160a60c23049087d8888094ef202e
7
+ data.tar.gz: 588171d184b5cf61e99aed86c52d3009d490f0f001d61f61fe99ca408f76d0a2a5c2087385df64fbde5f133d2eb39ff32d84f6f22151eb327d2a926d4aa39ceb
@@ -0,0 +1,2 @@
1
+ Gemfile.lock
2
+ pkg
@@ -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")
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Rotation
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
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.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