banacle 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/example/Gemfile.lock +1 -1
- data/example/config.ru +2 -2
- data/lib/banacle/interactive_message/handler.rb +1 -1
- data/lib/banacle/slash_command/handler.rb +1 -1
- data/lib/banacle/version.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: b3fc2e3711e8ef218a8015c9946bb866dae0e6719ddd3ea0364ed2151bb492d2
|
4
|
+
data.tar.gz: 030b0b31f9fc0ccc1b2ef5027b495115210284dcb41417e6823e86c4fd3cffd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7d7a9067e6ab5782a46ff10c2dbe216ef58c96a1f004c58fa90f32e80455c837578750e47eda7e552a5a51ad7d1fb6b6b15c67dc9d630ce859dfcb40af9c3f4
|
7
|
+
data.tar.gz: de1b1f7199d4ec2b138128848eb17bba4bffdfeddefcc9979ae1df2401f2a62259fc99a1e05f54b6ed104fa9f82816b0a01cb1207f5a24924776b011776ccb95
|
data/Gemfile.lock
CHANGED
data/example/Gemfile.lock
CHANGED
data/example/config.ru
CHANGED
@@ -6,7 +6,7 @@ class CommandAuthenticator < Banacle::SlashCommand::Authenticator
|
|
6
6
|
def authenticate_requester!(request)
|
7
7
|
super
|
8
8
|
if request.user_id != "U0XXXXXXX"
|
9
|
-
raise NotAuthenticatedError.new("
|
9
|
+
raise NotAuthenticatedError.new("you are not authorized to perform this command")
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
@@ -14,7 +14,7 @@ end
|
|
14
14
|
config = Banacle::Config.new(
|
15
15
|
slack_signing_secret: ENV.fetch('BANACLE_SLACK_SIGNING_SECRET'),
|
16
16
|
slash_command: {
|
17
|
-
authenticator: CommandAuthenticator,
|
17
|
+
authenticator: CommandAuthenticator.new,
|
18
18
|
},
|
19
19
|
approval_request: {
|
20
20
|
attachment: {
|
data/lib/banacle/version.rb
CHANGED