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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f30d3050b0878ee750823c40712b96c7cef31660
4
- data.tar.gz: 8bac2578a56482ddbe8c1a397264a8bbead5a645
3
+ metadata.gz: dbde05a8b0b2d1160596812d20bb9ece17069cd1
4
+ data.tar.gz: 7c85a45c4e1176d80cd127899337ab7a4ee27d36
5
5
  SHA512:
6
- metadata.gz: 1d791aa57faf92eb61e1d04971aabfdebfefdc388c318b1f38f5cfee4437c1727dbc86668c615837695fec64c88fcc8fd8c3fd7279b5e4b93e3a2405547d39c3
7
- data.tar.gz: 200334e9b8d937cc578b3bf319006964a3102aaea880a91e1a3d65ecdea8f4226d47e0f3d7b0eb05b62ce1ccf17a2cb12b390e284c9d301f4fe652f887aedb6a
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
- seed = Time.now.strftime('%Y%m%d') + response.user.id
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]
@@ -1,5 +1,5 @@
1
1
  module Lita
2
2
  module Pebbles
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
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.0.4
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-26 00:00:00.000000000 Z
11
+ date: 2014-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita