action_bot 0.1.23 → 0.1.24

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
  SHA256:
3
- metadata.gz: d066c37aafa1ccaadb7b2b94a9f9e32d1a8d3b3f26b8f1f7e2e79751f7fc97ed
4
- data.tar.gz: 9818c87ffe443616bc2b14f1270dfe1fb35a79db27cbf5289aff5f358d97456a
3
+ metadata.gz: 47c36b9257696e78a0dc4f4ac529f6832d4a8c1135cbed2ba4cadb0871a57aa8
4
+ data.tar.gz: 003ef51876d760f47dbd0d728a5e334d4a3448a8cf881b548be55e759ce73cf2
5
5
  SHA512:
6
- metadata.gz: ebae715f8994d78860aad03cb0fc0949f0ac5c98042aa101bf9118a0bfd69b385075481f1d5bf52fe898ea0f177071d41749bc293093de4ab53048d0c046108c
7
- data.tar.gz: 9c90ef6a5d8504a199a44d46b1d85c9f10b1e30402af692c84c5bb6d83eb1c701b45d6b201623d349d0c38e097b37d47c2ac266ff34279b78e4c68f004f7da8d
6
+ metadata.gz: 5f2b46e3cfa96dfde707c39764f045f675d845913b374cea877c2edfc9006bdb4cdca59de118b94bf0692451798a04e9697d817238ddac85161a4341897f1490
7
+ data.tar.gz: 3cf2e11c6580db7abf50f77a929b07dbc38d544bd350079a8f8c860fc10eef8fb7afaef24e2ec190a948f5d0912b8529d1cbade4980ab86b97067a632980e735
@@ -18,10 +18,11 @@ class ExampleLongPollingBot < ActionBot::Base
18
18
 
19
19
  def run
20
20
  return unless message_legal?
21
-
22
- on @message.text == 'hello_world', hello: :world, params: {
23
- tg_chat_id: tg_chat_id
24
- }
21
+ catch(:done) do
22
+ on @message.text == 'hello_world', hello: :world, params: {
23
+ tg_chat_id: tg_chat_id
24
+ }
25
+ end
25
26
  end
26
27
 
27
28
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Barseek