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 +4 -4
- data/lib/lita/handlers/sample.rb +3 -1
- data/lib/lita/pebbles/version.rb +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: 5d128220748d2e4a84764f02ba9f1443f31f9caa
|
4
|
+
data.tar.gz: 525deb006d4d1e91604d7d38be46663d0b0852d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51ede1b4438dc4a236b5db0b711d29fc10acdd10bfdf8d7b16997f37517a67c9a0e41ee41c0e8bffd79df2e7b7908bf7e64b3eb59b14863984e9deafbd98d594
|
7
|
+
data.tar.gz: 13ec820761b8ea39e7a18690efaf543ccc7d570d798c5965d3031fda1b5474d64158290aa497c7ad4f3a858ed86ea1dbe088ef9539957f5128d13487095502e6
|
data/lib/lita/handlers/sample.rb
CHANGED
@@ -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
|
data/lib/lita/pebbles/version.rb
CHANGED
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.
|
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:
|
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.
|
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:
|