grape-slack-bot 1.0.4 → 1.0.5

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: 441692beb1c95434d4adad66952d68027f05409d4ff8ccaa7c7096618829384c
4
- data.tar.gz: 15fbb24406c3932cf4eaed262a044ab18996449b65b9e54156ee8acf32db7434
3
+ metadata.gz: 01e2933c0e98e856b11a9a89da5feb9d01bd6ed059a31e2ae0132560eb4a15e6
4
+ data.tar.gz: 18b35789632851892cf8afe19d3b8b50b5c4b6b616551b305a4f603e307f7423
5
5
  SHA512:
6
- metadata.gz: fbfa74cbdda39de78c6c9b905a6f96fae47f257b75e27111c3a0464cc6ef798706ef1cf82a57257fb262d81b9d1f527acb24274cea558288d5f26b295a7d58f0
7
- data.tar.gz: 4b8400e467b3862cbaca3f0a658f69409f77519a1a2a1949908acfb4422752327fcca47860b494bad66b6be1f417210fe0cd670213e6ab6a9e08f6867c552604
6
+ metadata.gz: 831eb6dd2c71b08bc91f120f9243ccc4cab043baa7f0666992ed744ec31abddc9975e69200c3aa136997fd4c571c0be460a16bde90f017ce0ec73bd0d15ef9c9
7
+ data.tar.gz: 23463749cc8381847530940e62ccc9afc53e59ec31d15985b89dbfa611251a5bc7b85958ceae4acc50b577d95336cf2c33d876fc365204b34472f67ec7acb899
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.0.5
2
+
3
+ * Add superclass `SlackBot::Error` for all errors
4
+
1
5
  # 1.0.2
2
6
 
3
7
  * Soften dependencies version requirements
@@ -0,0 +1,4 @@
1
+ module SlackBot
2
+ class Error < StandardError
3
+ end
4
+ end
@@ -1,24 +1,24 @@
1
1
  module SlackBot
2
2
  module Errors
3
- class SignatureAuthenticationError < StandardError
3
+ class SignatureAuthenticationError < SlackBot::Error
4
4
  end
5
5
 
6
- class TeamAuthenticationError < StandardError
6
+ class TeamAuthenticationError < SlackBot::Error
7
7
  end
8
8
 
9
- class ChannelAuthenticationError < StandardError
9
+ class ChannelAuthenticationError < SlackBot::Error
10
10
  end
11
11
 
12
- class UserAuthenticationError < StandardError
12
+ class UserAuthenticationError < SlackBot::Error
13
13
  end
14
14
 
15
- class SlashCommandNotImplemented < StandardError
15
+ class SlashCommandNotImplemented < SlackBot::Error
16
16
  end
17
17
 
18
- class MenuOptionsNotImplemented < StandardError
18
+ class MenuOptionsNotImplemented < SlackBot::Error
19
19
  end
20
20
 
21
- class SlackResponseError < StandardError
21
+ class SlackResponseError < SlackBot::Error
22
22
  attr_reader :error, :data, :payload
23
23
  def initialize(error, data: nil, payload: nil)
24
24
  @error = error
data/lib/slack_bot.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'slack_bot/dev_console'
2
2
 
3
3
  require 'slack_bot/config'
4
+ require 'slack_bot/error'
4
5
  require 'slack_bot/errors'
5
6
 
6
7
  require 'slack_bot/args'
@@ -20,5 +21,5 @@ require 'slack_bot/pager'
20
21
  require 'slack_bot/grape_extension'
21
22
 
22
23
  module SlackBot
23
- VERSION = '1.0.4'.freeze
24
+ VERSION = '1.0.5'.freeze
24
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-slack-bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Makarov
@@ -127,6 +127,7 @@ files:
127
127
  - lib/slack_bot/command.rb
128
128
  - lib/slack_bot/config.rb
129
129
  - lib/slack_bot/dev_console.rb
130
+ - lib/slack_bot/error.rb
130
131
  - lib/slack_bot/errors.rb
131
132
  - lib/slack_bot/event.rb
132
133
  - lib/slack_bot/grape_extension.rb