lita-pebbles 0.2.1 → 0.2.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: 27f7f0d6f1386a56dd54e65e5faa3b9d26bc9bd7
4
- data.tar.gz: 24451f86ece4deabc39dc7911bc423361b09042a
3
+ metadata.gz: 5d128220748d2e4a84764f02ba9f1443f31f9caa
4
+ data.tar.gz: 525deb006d4d1e91604d7d38be46663d0b0852d9
5
5
  SHA512:
6
- metadata.gz: 7d62f35cfa3d15f840b4878ca1d78ffae22d370379c2406bd55e039f04e99f5fa94c36e618af67f8b32569c69218240c1caa3fc0d9333093d8320f87edc03c4d
7
- data.tar.gz: 42661c2909e30046ebf6a4d24e3edbe7e27afc888a5c9745269138ba65a3d5be55b3b49edec56ef6339484568ce75da19e974009c04d8effe29a2793eb59df88
6
+ metadata.gz: 51ede1b4438dc4a236b5db0b711d29fc10acdd10bfdf8d7b16997f37517a67c9a0e41ee41c0e8bffd79df2e7b7908bf7e64b3eb59b14863984e9deafbd98d594
7
+ data.tar.gz: 13ec820761b8ea39e7a18690efaf543ccc7d570d798c5965d3031fda1b5474d64158290aa497c7ad4f3a858ed86ea1dbe088ef9539957f5128d13487095502e6
@@ -1,3 +1,5 @@
1
+ require 'securerandom'
2
+
1
3
  module Lita
2
4
  module Handlers
3
5
  class Sample < Handler
@@ -7,7 +9,7 @@ module Lita
7
9
  def sample(response)
8
10
  total, list = response.matches.flatten
9
11
  total ||= 1
10
- list = list.split.shuffle
12
+ list = list.split.shuffle(random: SecureRandom)
11
13
 
12
14
  total.to_i.times do
13
15
  item = list.pop
@@ -1,5 +1,5 @@
1
1
  module Lita
2
2
  module Pebbles
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-pebbles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.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-08-05 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
@@ -154,9 +154,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.6.3
157
+ rubygems_version: 2.6.11
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: A Lita handlers for fun :)
161
161
  test_files: []
162
- has_rdoc: