grape-slack-bot 1.5.4 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slack_bot/grape_extension.rb +2 -3
- data/lib/slack_bot.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8369c909fff6a3b4da241ee643cc4eb88aea44b4cf36b46d23894d98485b99b7
|
4
|
+
data.tar.gz: 6b20d7329e693eada51866d5a20fa57f964bbf24996ff59b073773751dd59843
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6e153e24e4b69c9447ab1a91f989213b0786f05ce25fb9ef726b855fe93e847c03ae00496379aa67f24de67f2a4b96e9a49f4c29589898044f04cda73131d41
|
7
|
+
data.tar.gz: 00aa26edbe0a901e646905ce3ba7b154ca112fd33340a86592860ec9e766ac1ee37bc616d0eaf63bbc9785ca901f761f46f8e60e2da4c0ea8fee31a6a11aedda
|
@@ -8,12 +8,11 @@ module SlackBot
|
|
8
8
|
base.use ActionDispatch::RemoteIp
|
9
9
|
base.helpers do
|
10
10
|
def fetch_team_id
|
11
|
-
params.dig("team_id") || params.dig("team", "id")
|
11
|
+
params.dig("team_id") || params.dig("team", "id")
|
12
12
|
end
|
13
13
|
|
14
14
|
def fetch_user_id
|
15
|
-
params.dig("user_id") || params.dig("user", "id") ||
|
16
|
-
params.dig("event", "user") || params.dig("payload", "user", "id")
|
15
|
+
params.dig("user_id") || params.dig("user", "id") || params.dig("event", "user")
|
17
16
|
end
|
18
17
|
|
19
18
|
def verify_slack_signature!
|
data/lib/slack_bot.rb
CHANGED