banacle 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eefa4ead64f9bdf4ed0db630e7f916f57d59a4910de1f8170f7a5d9ebedde89f
4
- data.tar.gz: e84912019edc3da37cd5d28d58e1371d12ae35fa9dd749e7d479b66c0d6e7506
3
+ metadata.gz: b3fc2e3711e8ef218a8015c9946bb866dae0e6719ddd3ea0364ed2151bb492d2
4
+ data.tar.gz: 030b0b31f9fc0ccc1b2ef5027b495115210284dcb41417e6823e86c4fd3cffd6
5
5
  SHA512:
6
- metadata.gz: 148fee60c884547dbefd99baaef7866856fe93f4969100618c33fa6ee04093db0a96fd7403f70b154131db36b6766a3233ef38e78377ec39b8cfdcf5a882e933
7
- data.tar.gz: 6da6d0fc243a28188f6b3d6fd1f7732d3b0c61c4ad48e9f0b8d46938809d25616e00db751bd92df3054f3681ea00f41b08a0d1d8b957b3c0bfda7d3c1399d7d3
6
+ metadata.gz: c7d7a9067e6ab5782a46ff10c2dbe216ef58c96a1f004c58fa90f32e80455c837578750e47eda7e552a5a51ad7d1fb6b6b15c67dc9d630ce859dfcb40af9c3f4
7
+ data.tar.gz: de1b1f7199d4ec2b138128848eb17bba4bffdfeddefcc9979ae1df2401f2a62259fc99a1e05f54b6ed104fa9f82816b0a01cb1207f5a24924776b011776ccb95
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- banacle (0.2.1)
4
+ banacle (0.2.2)
5
5
  aws-sdk-ec2
6
6
  sinatra
7
7
  unicorn
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- banacle (0.2.1)
4
+ banacle (0.2.2)
5
5
  aws-sdk-ec2
6
6
  sinatra
7
7
  unicorn
@@ -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("You are not authorized to perform this command")
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: {
@@ -85,7 +85,7 @@ module Banacle
85
85
  end
86
86
 
87
87
  def auth
88
- (config.dig(:interactive_message, :authenticator) || Authenticator).new
88
+ config.dig(:interactive_message, :authenticator) || Authenticator.new
89
89
  end
90
90
  end
91
91
  end
@@ -42,7 +42,7 @@ module Banacle
42
42
  end
43
43
 
44
44
  def auth
45
- (config.dig(:slash_command, :authenticator) || Authenticator).new
45
+ config.dig(:slash_command, :authenticator) || Authenticator.new
46
46
  end
47
47
  end
48
48
  end
@@ -1,3 +1,3 @@
1
1
  module Banacle
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: banacle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takuya Kosugiyama