ruboty-gamification 0.0.3 → 0.0.4

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: 7a96642772edbd67687ad163c88d59e21efae582
4
- data.tar.gz: a33b5669474702c03a8593bb53b8d5f9aec80283
3
+ metadata.gz: 30b84cf0342f6686de05a10d4e08409f1829184b
4
+ data.tar.gz: eac7f48ff28c4ec0af5d8745ada846662be79182
5
5
  SHA512:
6
- metadata.gz: eefbd8ef5193c1da8eae742258eb8fcff519fa780326e328b5d5487f63035579329998a302af41aed46006977a8fd442c55612f3b545f37e285a4f35288d715c
7
- data.tar.gz: 0c9817e41fa9b1b7b1392b3641dee9bd9794fc81a9d51c1b804aa32792523b762d1050d779d892aee595b956ee66df5818c577ac50d8a546a66af8e43a7eb270
6
+ metadata.gz: e165ec84107fe948921ea8a482ace942ebbf5f48682fc59a000cd5f148b4569969119ec55abf42d17abed054ed30caad6a4fbbc76392ef43120b0a5118ee4d32
7
+ data.tar.gz: 5bfdd27670f1a29e5ac4a9a5fda4cb6097748e1052db3928ae816f95252f8d2f439032767956b1f7fee18e463e0cda4627329b130770e188dfa5fe9052ebe0e1
@@ -28,15 +28,17 @@ module Ruboty
28
28
  end
29
29
 
30
30
  def reload(message)
31
+ message.reply("reload start")
32
+ @gamification.actions.clear
31
33
  load(:increment)
32
34
  load(:decrement)
35
+ message.reply("reload done")
33
36
  end
34
37
 
35
38
  private
36
39
  def load(label)
37
40
  get(labels: label).body.each do |data|
38
41
  pattern = /#{Regexp.escape(data["title"])}$/
39
- next if @gamification.actions.any?{|action| action.pattern == pattern}
40
42
  @gamification.on(
41
43
  pattern,
42
44
  name: "#{label}",
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Gamification
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-gamification
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshiori SHOJI