ruboty-kujibiki 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcabd5e81d133bd95f0c1237b03735231d3ac1c0
4
- data.tar.gz: 8f01f3d03d6fc76c29f41cb9f44bdc7fdc65bb24
3
+ metadata.gz: c7c30b5c741a0adca115ba55f04e4ae2f87aa2d1
4
+ data.tar.gz: b127f493cb0650238fb59395ad811b009f111846
5
5
  SHA512:
6
- metadata.gz: 1281b2af80f01fb09dca43de1fd2d4a38e55a85998f7e577adb24ab2af076293848ab43008a1dd0cd0ed5a85355d36f0e0ea320dd01e7defaef88970c6c53ec3
7
- data.tar.gz: ec0f1e48cf0ccb2692b21efaf21837343be122732e300e51752447d486e932daf4062eb95866698d42b2041b4b0b7bfc887f3e9bc12a20562e1039c4fe30a4e6
6
+ metadata.gz: ba180841ded93235559bea449c97845165636581c8ce293f5c462592936fdf3f5cf7f565913e37fb91b99297960f91e53a70c6889433c13e6863c28f038d519a
7
+ data.tar.gz: 63cf0dccc0a55bd9968b7c039e2c8156d6066e66c942c69f52cb8d15bb7d19beeebed72eee2962695b74d173fc04ae1d98ce8430e86ee6b10ed7c2901974ba8c
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --require spec_helper
2
+ --color
data/README.md CHANGED
@@ -23,6 +23,6 @@ Or install it yourself as:
23
23
  ```bash
24
24
  > ruboty kujibiki 1,2,3,4,5
25
25
  2
26
- > ruboty kujibiki 1,2,3,4,5
27
- 5
26
+ > ruboty kujibiki 2 a,b,c,d,e
27
+ b, a
28
28
  ```
@@ -3,7 +3,9 @@ require 'ruboty/kujibiki/actions/kujibiki'
3
3
  module Ruboty
4
4
  module Handlers
5
5
  class Kujibiki < Base
6
- on /ku[jz]ibiki +(?<number>\d+)? *(?<elements>.*)\z/i, name: 'kujibiki', description: 'Choose an element/elements from comma separated strings.'
6
+ COMMAND_REGEXP = /ku[jz]ibiki +((?<number>\d+) +(?!,))?(?<elements>.*)\z/i
7
+
8
+ on COMMAND_REGEXP, name: 'kujibiki', description: 'Choose an element/elements from comma separated strings.'
7
9
 
8
10
  def kujibiki(message)
9
11
  Ruboty::Kujibiki::Actions::Kujibiki.new(message).call
@@ -1,3 +1,4 @@
1
+ require "ruboty"
1
2
  require "ruboty/kujibiki/version"
2
3
  require "ruboty/handlers/kujibiki"
3
4
  require "ruboty/kujibiki/actions/kujibiki"
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Kujibiki
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-kujibiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OSA Shunsuke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-27 00:00:00.000000000 Z
11
+ date: 2017-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruboty
@@ -74,6 +74,7 @@ extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
+ - ".rspec"
77
78
  - Gemfile
78
79
  - LICENSE
79
80
  - README.md
@@ -105,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
106
  version: '0'
106
107
  requirements: []
107
108
  rubyforge_project:
108
- rubygems_version: 2.6.11
109
+ rubygems_version: 2.6.13
109
110
  signing_key:
110
111
  specification_version: 4
111
112
  summary: Choose an element from comma separated strings.