grape-slack-bot 1.6.7 → 1.6.9

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: 6a31fa79061f0f8f494f3c088331f9ca5d176a93f3909bd8719b2f43c4a80b8e
4
- data.tar.gz: 70f14bbc48bddd7eb690a864603e17683abc9713fabbc59239cfe6e095abef81
3
+ metadata.gz: f90d900df6a6bcab262e5479a71d1be2e5ed088dc896f2f05e55fc6b7b8a8dba
4
+ data.tar.gz: f21f2799f1c828d0f57449201090044b591a5277124f47259b283dbb1ece9c65
5
5
  SHA512:
6
- metadata.gz: 4d85b0261724457c4f1181950ef12a545d093a692f9ac874ff625273b3d45e0425a10047137950886e910b59e48d02791730ea83f062320fd46dbe6438a23685
7
- data.tar.gz: 790a31890e3d3c79974cbc5809f815932d24954d35174c96ea0b27cce55dc9016b2467b8dc36a4a9253c63bb36e0e9be01476b021b264c617a924382adcb32ac
6
+ metadata.gz: 8f8c4dd245b689378703f5c9c7c3b26bea0c7d85c9ef5df0a4a4cd36c8b32625af795ac8bfdfacd512f54676017635b6725fe30222427ca70dc152b5cfb8a297
7
+ data.tar.gz: abce9cdd4da556f77912c53211322e22bb9f85bd4ef537528997f71b15ecee50ee54a9ddf029908c85f63f7c93743bb173322130d217d8bc223d22a89ce4f641
@@ -68,7 +68,7 @@ module SlackBot
68
68
  self.class.interaction_klass.open_modal(
69
69
  callback: callback,
70
70
  trigger_id: params[:trigger_id],
71
- payload: view_payload
71
+ view: view_payload
72
72
  )
73
73
  render_response
74
74
  end
@@ -61,7 +61,7 @@ module SlackBot
61
61
  if current_user
62
62
  true
63
63
  else
64
- raise SlackBot::UserAuthenticationError.new("User is not authorized")
64
+ raise SlackBot::Errors::UserAuthenticationError.new("User is not authorized")
65
65
  end
66
66
  end
67
67
 
@@ -97,7 +97,7 @@ module SlackBot
97
97
  self.class.open_modal(
98
98
  callback: callback,
99
99
  trigger_id: payload["trigger_id"],
100
- payload: view_payload
100
+ view: view_payload
101
101
  )
102
102
  end
103
103
 
@@ -109,7 +109,7 @@ module SlackBot
109
109
 
110
110
  self.class.update_modal(
111
111
  view_id: view_id,
112
- payload: payload,
112
+ view: payload,
113
113
  callback: callback
114
114
  )
115
115
  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.6.7'.freeze
25
+ VERSION = '1.6.9'.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.6.7
4
+ version: 1.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Makarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-30 00:00:00.000000000 Z
11
+ date: 2023-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack