lita-pebbles 0.0.4 → 0.0.5
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/omikuji.rb +2 -4
- data/lib/lita/pebbles/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbde05a8b0b2d1160596812d20bb9ece17069cd1
|
4
|
+
data.tar.gz: 7c85a45c4e1176d80cd127899337ab7a4ee27d36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 692f687baf724d430cdb81442463ebf94e03c1b1c7d2390009c4d129e33e94c8cf4d1f8da58ab046335e78e0bb7a68b37c66f461b10e540d8a3a775a9959102f
|
7
|
+
data.tar.gz: 61f28d30dae83da8ea09ad20602224ced5e8e14a909f08150c5e3d345cb651ecdd26831515aff1037ad1fd2439c8695f8e7a422c50b378bd058658f48b893165
|
@@ -12,14 +12,12 @@ module Lita
|
|
12
12
|
|
13
13
|
route /^omikuji/, :omikuji, command: false
|
14
14
|
def omikuji(response)
|
15
|
-
|
16
|
-
random = Random.new(seed.to_i)
|
17
|
-
response.reply sample_omikuji(random)
|
15
|
+
response.reply sample_omikuji
|
18
16
|
end
|
19
17
|
|
20
18
|
private
|
21
19
|
|
22
|
-
def sample_omikuji(random)
|
20
|
+
def sample_omikuji(random = Random.new)
|
23
21
|
lots = LOTS.keys
|
24
22
|
lot = lots[random.rand(lots.length)]
|
25
23
|
messages = LOTS[lot]
|
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.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fukayatsu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|