grape-slack-bot 1.7.2 → 1.8.0

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: 92616381f617b332e3c87bff1078c1039fa1fb15b9e6b6c1cc536be3e4a4d7fb
4
- data.tar.gz: e9d7d54737d837adfde2df90d79446ba92a8db469c04156c9b16e608bd272b0c
3
+ metadata.gz: 14a99557c3003723987fd3dc625947edbbfffce3148f54d96936e215b6e72109
4
+ data.tar.gz: 985a1643aa6ce06348f43ddd03a072769a800025ddb56f608ed180de7cc881bf
5
5
  SHA512:
6
- metadata.gz: 3c6a8d172c58244862bd8724db7a329a827e13a57b527daaecb21545f63f2a8ea5003a3f4800bd63d014b2c4a4c60c0d34b729bcd84325e7541015e56db03b4f
7
- data.tar.gz: da94c5ffcb89090fdc79addf066d24f7cbc5643e7e729556f660806b430781fb25a4086dc64aa4efbf1eb257e99e210d0199d626172638b6361a4143d99d7f65
6
+ metadata.gz: 5ef98824c8057203c4fd1256c3f45b215182b4590e956cad718ee64f89fe4d5ed2bb39845f0eef390556b6f25456953bd07600f364613358a31edfdbaf8b4e60
7
+ data.tar.gz: 8f480e83107bb51bacd21ff4211877d37ebb367336243484b99c0a87973f615bab6af7b1b90083dc43b8671d7a7f796be99433dd36ae82986dd3ec1c4d2e581c
@@ -19,7 +19,10 @@ module SlackBot
19
19
  raise SlackBot::Errors::SignatureAuthenticationError.new("Missing signature headers")
20
20
  end
21
21
 
22
+ request.body.rewind
22
23
  request_body = request.body.read
24
+ request.body.rewind
25
+
23
26
  sig_basestring = "v0:#{timestamp}:#{request_body}"
24
27
  my_signature =
25
28
  "v0=" +
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.2".freeze
25
+ VERSION = "1.8.0".freeze
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-slack-bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Makarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-16 00:00:00.000000000 Z
11
+ date: 2024-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack