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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8fd89bff2d041344338665e5d4126e95f7f4041
4
- data.tar.gz: 72c099f8766fb383bd378664e9c78dd35b45d752
3
+ metadata.gz: 8b154092c41766aa7e6382cf3d8b34120ff558fa
4
+ data.tar.gz: 682eb032b91bc80637fefb86b9291f54122cd207
5
5
  SHA512:
6
- metadata.gz: 8fc25334738d3b0ca031f7bf2abd129d8896975edd0cbd2c06ba8cd7c28e5dc59fd691ebd3eb431854c3fd875a4e9f540caf102ccd68727f9ada5fce1c382ae8
7
- data.tar.gz: 3f50f2d26a979498e5505ec0f455c76ba2e806ef8b4088e365f3dac0616318249c835c15ab1fcab46b5ad9b24eb7a27f3c5bf9725cf8ddead1c5cc988115dfdb
6
+ metadata.gz: 2eb272b18321ff5105e5a0351017d13eae87d5ce3f49e3461686743841ea1ec96b707649f90a254817b9b4871bdd87a45f572537ce305f6ad584e4bf22b2dff4
7
+ data.tar.gz: 06d525c53b4f016a9bb8b385f13282858557035fd5c029142d6742693e39086a55a1d5510cf231bdda69b926f7ebaa2931a9449282077bd54aab5f6e4ad38b2a
@@ -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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-asakai"
3
- spec.version = "0.1.1"
3
+ spec.version = "0.1.2"
4
4
  spec.authors = ["fukayatsu"]
5
5
  spec.email = ["fukayatsu@gmail.com"]
6
6
  spec.description = "Daily Standup Facilitator"
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.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: 2016-01-15 00:00:00.000000000 Z
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.4.5.1
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: