grape-slack-bot 1.7.0 → 1.7.1

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: bf068ba32d5e7319a9e8d96710dfa364fcccedf1e0755b32305409455293b7cc
4
- data.tar.gz: 2c7bba45e4a549dcc1ac64b707349244b19dcbc6ef0a069504e192a350c4f10e
3
+ metadata.gz: 2af9ee1dcca9101aaf2fb823f45ce1609c591024ab1e9084d3add79fad87d243
4
+ data.tar.gz: d83d3790de38c03b5f0cf6757ac7fc66334793a76d07fc9e0d82b2cb110306a5
5
5
  SHA512:
6
- metadata.gz: b362b4a0a379c2ff986fe11d554e1aaef10b3581190c7487833c2c69b503cc2f57d1e6b393e4afb19442176079bdc472a2717e57c8921d6dc0f51a92d64f0e9e
7
- data.tar.gz: f150f3b05dda3a59d8b818bd574dfd5fcb08f688ad2eb6d263bba31bc821351f858a5bb1e05a3ee17199fe1d7dd0c4bab628127251314cbb6d1d7a809bc46bff
6
+ metadata.gz: 26b539c209daf44688511578754ebc222a919728a2694bca0d11a737cc0222d219bc61b382974cd10d8ff9d0f31222d0b97e61074ae5a7210516f3a003806dd9
7
+ data.tar.gz: '04719c66bec6569d1cf2dc99351bffc55cb6826d53fb3e07678e803bda60c5f69f590b952f6a7468b795777a2c6c79fcff48f9ec1f03241574f5b6ce7598d6ac'
@@ -52,7 +52,7 @@ module SlackBot
52
52
  config: self,
53
53
  handler_name: handler_name
54
54
  )
55
- endpoint.instance_eval(&) if block
55
+ endpoint.instance_eval(&) if block_given?
56
56
  endpoint
57
57
  end
58
58
  end
@@ -116,7 +116,7 @@ module SlackBot
116
116
  endpoint: self,
117
117
  handler_name: handler_name
118
118
  )
119
- command.instance_eval(&) if block
119
+ command.instance_eval(&) if block_given?
120
120
  command
121
121
  end
122
122
  end
@@ -166,7 +166,7 @@ module SlackBot
166
166
  )
167
167
 
168
168
  command_config = @argument_command_configs[argument_token.to_sym]
169
- command_config.instance_eval(&) if block
169
+ command_config.instance_eval(&) if block_given?
170
170
 
171
171
  command_config
172
172
  end
data/lib/slack_bot.rb CHANGED
@@ -22,5 +22,5 @@ require "slack_bot/pager"
22
22
  require "slack_bot/grape_extension"
23
23
 
24
24
  module SlackBot
25
- VERSION = "1.7.0".freeze
25
+ VERSION = "1.7.1".freeze
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-slack-bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Makarov