lita-asakai 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/asakai.rb +4 -2
- data/lita-asakai.gemspec +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b154092c41766aa7e6382cf3d8b34120ff558fa
|
4
|
+
data.tar.gz: 682eb032b91bc80637fefb86b9291f54122cd207
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eb272b18321ff5105e5a0351017d13eae87d5ce3f49e3461686743841ea1ec96b707649f90a254817b9b4871bdd87a45f572537ce305f6ad584e4bf22b2dff4
|
7
|
+
data.tar.gz: 06d525c53b4f016a9bb8b385f13282858557035fd5c029142d6742693e39086a55a1d5510cf231bdda69b926f7ebaa2931a9449282077bd54aab5f6e4ad38b2a
|
data/lib/lita/handlers/asakai.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'securerandom'
|
2
|
+
|
1
3
|
module Lita
|
2
4
|
module Handlers
|
3
5
|
class Asakai < Handler
|
@@ -11,8 +13,8 @@ module Lita
|
|
11
13
|
}
|
12
14
|
|
13
15
|
def start(response)
|
14
|
-
members = response.matches.flatten.first.scan(/@\S+/).shuffle
|
15
|
-
members << members.sample # for wrap up
|
16
|
+
members = response.matches.flatten.first.scan(/@\S+/).shuffle(random: SecureRandom)
|
17
|
+
members << members.sample(random: SecureRandom) # for wrap up
|
16
18
|
|
17
19
|
redis.del 'members'
|
18
20
|
redis.rpush 'members', members[1..-1]
|
data/lita-asakai.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-asakai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fukayatsu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -134,11 +134,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.6.11
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: Daily Standup Facilitator
|
141
141
|
test_files:
|
142
142
|
- spec/lita/handlers/asakai_spec.rb
|
143
143
|
- spec/spec_helper.rb
|
144
|
-
has_rdoc:
|