slack-ruby-bot 0.11.1 → 0.11.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
- SHA1:
3
- metadata.gz: d0958b00b374ee4dea69c8860e5ab1599136d531
4
- data.tar.gz: a8be598fe1fba5ef12f94fa3b5febd72d21e31e4
2
+ SHA256:
3
+ metadata.gz: 5ce2b630c8c8febedc5e967ff7fddeaa50cea17b881fb73fa2a7bf58e486005c
4
+ data.tar.gz: 7eb5553808ed92fbcb256e35f2d7fb85b5943841a5205fb3b05b73f271f18817
5
5
  SHA512:
6
- metadata.gz: ee3476ee0933c59868dd5e3f1e6f6c4b0dbf8675a344d491fff3c24e593b463085da2eedbfec4ff98f78d04da97381313668e11ab72ced24168894f1efe6462e
7
- data.tar.gz: f7a1e5ca86e43e8dd1d2ed9cfa783f72d165a8b6ffa52748f095cc0b67c74b71712fe347f2fdb7df672e28b066fe4d09330ba4c8e238c63e9305f78751be1bf9
6
+ metadata.gz: 3b6b488d4b4b2aa1911429abac4d591a977926c715580d534d8b21ebc88f9c3babad8dcbf5e9a773e123abaa882e2a98267aa8befefe9d8f11dc396c307246c0
7
+ data.tar.gz: 12859a82a5f268068b630efe1535c18206d2cee981839110aa6113e05fabf02f5024a0d3ca297972f4de81de7403d3b77f26af6e5f6f08c58fbea2e65ea4e111
@@ -4,4 +4,13 @@ AllCops:
4
4
  - examples/**/vendor/**/*
5
5
  - bin/**/*
6
6
 
7
+ Metrics:
8
+ Enabled: false
9
+
10
+ Metrics/LineLength:
11
+ Max: 512
12
+
13
+ Style/Documentation:
14
+ Enabled: false
15
+
7
16
  inherit_from: .rubocop_todo.yml
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2018-05-04 16:44:32 -0400 using RuboCop version 0.51.0.
3
+ # on 2018-08-27 14:16:34 +0200 using RuboCop version 0.58.2.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -8,7 +8,7 @@
8
8
 
9
9
  # Offense count: 2
10
10
  # Cop supports --auto-correct.
11
- # Configuration parameters: EnforcedStyle, SupportedStyles.
11
+ # Configuration parameters: EnforcedStyle.
12
12
  # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
13
13
  Layout/IndentHeredoc:
14
14
  Exclude:
@@ -26,71 +26,50 @@ Lint/HandleExceptions:
26
26
  - 'lib/initializers/giphy.rb'
27
27
  - 'lib/initializers/giphy_client.rb'
28
28
 
29
- # Offense count: 7
30
- Metrics/AbcSize:
31
- Max: 40
32
-
33
- # Offense count: 30
34
- # Configuration parameters: CountComments, ExcludedMethods.
35
- Metrics/BlockLength:
36
- Max: 131
37
-
38
- # Offense count: 1
39
- # Configuration parameters: CountComments.
40
- Metrics/ClassLength:
41
- Max: 131
42
-
43
- # Offense count: 2
44
- Metrics/CyclomaticComplexity:
45
- Max: 16
46
-
47
- # Offense count: 252
48
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
49
- # URISchemes: http, https
50
- Metrics/LineLength:
51
- Max: 151
52
-
53
- # Offense count: 11
54
- # Configuration parameters: CountComments.
55
- Metrics/MethodLength:
56
- Max: 27
57
-
58
- # Offense count: 2
59
- Metrics/PerceivedComplexity:
60
- Max: 14
61
-
62
29
  # Offense count: 1
63
- # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
64
- # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
65
- Naming/FileName:
30
+ # Cop supports --auto-correct.
31
+ Lint/UnneededCopEnableDirective:
66
32
  Exclude:
67
- - 'lib/slack-ruby-bot.rb'
33
+ - 'Gemfile'
68
34
 
69
35
  # Offense count: 2
70
- # Configuration parameters: EnforcedStyle, SupportedStyles.
36
+ # Configuration parameters: EnforcedStyle.
71
37
  # SupportedStyles: snake_case, normalcase, non_integer
72
38
  Naming/VariableNumber:
73
39
  Exclude:
74
40
  - 'spec/slack-ruby-bot/hooks/set_spec.rb'
75
41
 
76
42
  # Offense count: 1
77
- # Cop supports --auto-correct.
78
- # Configuration parameters: AutoCorrect.
79
- Performance/HashEachMethods:
43
+ # Configuration parameters: EnforcedStyle.
44
+ # SupportedStyles: inline, group
45
+ Style/AccessModifierDeclarations:
80
46
  Exclude:
81
- - 'lib/slack-ruby-bot/hooks/set.rb'
82
-
83
- # Offense count: 34
84
- Style/Documentation:
85
- Enabled: false
47
+ - 'lib/slack-ruby-bot/hooks/hook_support.rb'
86
48
 
87
49
  # Offense count: 1
88
50
  Style/DoubleNegation:
89
51
  Exclude:
90
52
  - 'lib/slack-ruby-bot/commands/base.rb'
91
53
 
54
+ # Offense count: 5
55
+ # Cop supports --auto-correct.
56
+ Style/ExpandPathArguments:
57
+ Exclude:
58
+ - 'lib/config/application.rb'
59
+ - 'lib/config/environment.rb'
60
+ - 'lib/slack-ruby-bot.rb'
61
+ - 'slack-ruby-bot.gemspec'
62
+
63
+ # Offense count: 2
64
+ # Cop supports --auto-correct.
65
+ Style/IfUnlessModifier:
66
+ Exclude:
67
+ - 'lib/slack-ruby-bot/commands/support/match.rb'
68
+ - 'lib/slack-ruby-bot/mvc/controller/base.rb'
69
+
92
70
  # Offense count: 2
93
- # Configuration parameters: EnforcedStyle, SupportedStyles.
71
+ # Cop supports --auto-correct.
72
+ # Configuration parameters: EnforcedStyle.
94
73
  # SupportedStyles: module_function, extend_self
95
74
  Style/ModuleFunction:
96
75
  Exclude:
@@ -19,6 +19,8 @@ matrix:
19
19
  env: CONCURRENCY=celluloid-io WITH_GIPHY_CLIENT=true
20
20
  - rvm: 2.3.0
21
21
  env: CONCURRENCY=faye-websocket WITH_GIPHY_CLIENT=true
22
+ - rvm: 2.5
23
+ env: CONCURRENCY=async-websocket WITH_GIPHY_CLIENT=true
22
24
  - rvm: ruby-head
23
25
  - rvm: jruby-head
24
26
  allow_failures:
@@ -1,9 +1,14 @@
1
- ### 0.11.1 (05/06/2018)
1
+ ### 0.11.2 (2018/12/01)
2
+
3
+ * [#198](https://github.com/slack-ruby/slack-ruby-bot/pull/198): Recommend using `async-websocket` instead of `celluloid-io` - [@dblock](https://github.com/dblock).
4
+ * [#202](https://github.com/slack-ruby/slack-ruby-bot/pull/202): Allow frozen string in Hooks::Message - [@jonosenior](https://github.com/jonosenior).
5
+
6
+ ### 0.11.1 (2018/05/06)
2
7
 
3
8
  * [#187](https://github.com/slack-ruby/slack-ruby-bot/pull/187): Added support for the [official Giphy SDK](https://github.com/Giphy/giphy-ruby-client) - [@dblock](https://github.com/dblock).
4
9
  * [#185](https://github.com/slack-ruby/slack-ruby-bot/pull/185): Log backtrace of exceptions - [@dblock](https://github.com/dblock).
5
10
 
6
- ### 0.11.0 (04/02/2018)
11
+ ### 0.11.0 (2018/04/02)
7
12
 
8
13
  * [#182](https://github.com/slack-ruby/slack-ruby-bot/pull/182): Refactor CommandsHelper class and Help module - [@mdudzinski](https://github.com/mdudzinski).
9
14
  * [#180](https://github.com/slack-ruby/slack-ruby-bot/pull/180): Allow to respond to text in attachments #177 - [@mdudzinski](https://github.com/mdudzinski).
@@ -11,7 +16,7 @@
11
16
  * [#179](https://github.com/slack-ruby/slack-ruby-bot/pull/179): Allow multiline expression - [@tiagotex](https://github.com/tiagotex).
12
17
  * [#183](https://github.com/slack-ruby/slack-ruby-bot/pull/183): Add missing test dependency to readme.md - [@hoshinotsuyoshi](https://github.com/hoshinotsuyoshi).
13
18
 
14
- ### 0.10.5 (10/15/2017)
19
+ ### 0.10.5 (2017/10/15)
15
20
 
16
21
  * Refactored `SlackRubyBot::MVC::Controller::Base`, consolidated ivar handling, centralized object allocations and DRYed up the code - [@chuckremes](https://github.com/chuckremes).
17
22
  * [#157](https://github.com/slack-ruby/slack-ruby-bot/pull/157): Added `respond_with_slack_messages` expectation - [@gcraig99](https://github.com/gcraig99).
@@ -19,27 +24,27 @@
19
24
  * [#163](https://github.com/slack-ruby/slack-ruby-bot/pull/163): Allow `command` to accept regular expressions - [@kstole](https://github.com/kstole).
20
25
  * [#166](https://github.com/slack-ruby/slack-ruby-bot/pull/166): Allow special characters and capitals in bot aliases - [@kstole](https://github.com/kstole).
21
26
 
22
- ### 0.10.4 (07/05/2017)
27
+ ### 0.10.4 (2017/07/05)
23
28
 
24
29
  * [#149](https://github.com/slack-ruby/slack-ruby-bot/pull/149): Add `logger` configuration to set a custom logger - [@upscent](https://github.com/upscent).
25
30
  * [#147](https://github.com/slack-ruby/slack-ruby-bot/pull/147): Adds `server.on` as a shortcut for `hooks.add` and deprecate `hooks` method - [@laertispappas](https://github.com/laertispappas).
26
31
  * [#143](https://github.com/slack-ruby/slack-ruby-bot/pull/143): Provide `permitted?` method to allow for simple authorization extensions - [@chuckremes](https://github.com/chuckremes).
27
32
 
28
- ### 0.10.3 (06/15/2017)
33
+ ### 0.10.3 (2017/06/15)
29
34
 
30
35
  * [#145](https://github.com/slack-ruby/slack-ruby-bot/pull/145): Map multiple command strings to same controller method - [@chuckremes](https://github.com/chuckremes).
31
36
  * [#144](https://github.com/slack-ruby/slack-ruby-bot/pull/144): Support usage of commands with embedded spaces when using Controller methods - [@chuckremes](https://github.com/chuckremes).
32
37
 
33
- ### 0.10.2 (06/03/2017)
38
+ ### 0.10.2 (2017/06/03)
34
39
 
35
40
  * [#137](https://github.com/slack-ruby/slack-ruby-bot/pull/137): Add Model-View-Controller classes to allow for more explicit control over how `command`s are designed - [@chuckremes](https://github.com/chuckremes).
36
41
  * [#130](https://github.com/slack-ruby/slack-ruby-bot/issues/130): Added test dependencies in TUTORIAL.md - [@jbristow](https://github.com/jbristow).
37
42
 
38
- ### 0.10.1 (2/12/2017)
43
+ ### 0.10.1 (2017/2/12)
39
44
 
40
45
  * [#113](https://github.com/slack-ruby/slack-ruby-bot/issues/113): Fixed commands in subclassed `SlackRubyBot::Bot` - [@dblock](https://github.com/dblock).
41
46
 
42
- ### 0.10.0 (2/9/2017)
47
+ ### 0.10.0 (2017/2/9)
43
48
 
44
49
  * [#111](https://github.com/slack-ruby/slack-ruby-bot/pull/111): Default keyword for GIFs in invalid commands has been changed from `idiot` to `understand` - [@dblock](https://github.com/dblock).
45
50
  * [#98](https://github.com/slack-ruby/slack-ruby-bot/pull/98): Fixed a couple of problems in TUTORIAL.md - [@edruder](https://github.com/edruder).
@@ -49,16 +54,16 @@
49
54
  * [#96](https://github.com/slack-ruby/slack-ruby-bot/pull/96): Support help statements in anonymous command and bot classes - [@dblock](https://github.com/dblock).
50
55
  * [#75](https://github.com/slack-ruby/slack-ruby-bot/pull/101): Fix: Guarantee order of commands based on load order - [@gconklin](https://github.com/gconklin).
51
56
 
52
- ### 0.9.0 (8/29/2016)
57
+ ### 0.9.0 (2016/8/29)
53
58
 
54
59
  * [#89](https://github.com/slack-ruby/slack-ruby-bot/pull/89): Drop giphy dependency - [@tmsrjs](https://github.com/tmsrjs).
55
60
  * [#92](https://github.com/slack-ruby/slack-ruby-bot/pull/92): Added [danger](http://danger.systems), PR linting - [@dblock](https://github.com/dblock).
56
61
 
57
- ### 0.8.2 (7/10/2016)
62
+ ### 0.8.2 (2016/7/10)
58
63
 
59
64
  * [#85](https://github.com/slack-ruby/slack-ruby-bot/issues/85): Fix: regression in bot instance logging - [@dblock](https://github.com/dblock).
60
65
 
61
- ### 0.8.1 (7/10/2016)
66
+ ### 0.8.1 (2016/7/10)
62
67
 
63
68
  * [#69](https://github.com/slack-ruby/slack-ruby-bot/pull/69): Ability to add help info to bot and commands - [@accessd](https://github.com/accessd).
64
69
  * [#75](https://github.com/slack-ruby/slack-ruby-bot/issues/75): Guarantee order of command evaluation - [@dblock](https://github.com/dblock).
@@ -66,52 +71,52 @@
66
71
  * [#81](https://github.com/slack-ruby/slack-ruby-bot/pull/81): Removed dependency on Bundler - [@derekddecker](https://github.com/derekddecker).
67
72
  * [#84](https://github.com/slack-ruby/slack-ruby-bot/pull/84): Removed dependency on ActiveSupport - [@rmulligan](https://github.com/rmulligan).
68
73
 
69
- ### 0.8.0 (5/5/2016)
74
+ ### 0.8.0 (2016/5/5)
70
75
 
71
76
  * [#32](https://github.com/slack-ruby/slack-ruby-bot/issues/32): Don't include `faye-websocket` by default, support `celluloid-io` - [@dblock](https://github.com/dblock).
72
77
  * [#54](https://github.com/slack-ruby/slack-ruby-bot/pull/54): Improvements to Hook configuration - [@dramalho](https://github.com/dramalho).
73
78
 
74
- ### 0.7.0 (3/6/2016)
79
+ ### 0.7.0 (2016/3/6)
75
80
 
76
81
  * Improved regular expression matching performance with less matching per command - [@dblock](https://github.com/dblock).
77
82
  * Don't attempt to pre-authenticate via `auth!`, use RealTime client local store - [@dblock](https://github.com/dblock).
78
83
  * Extended `match` with `scan` that can make multiple captures - [@dblock](https://github.com/dblock).
79
84
 
80
- ### 0.6.2 (2/4/2016)
85
+ ### 0.6.2 (2016/2/4)
81
86
 
82
87
  * [#44](https://github.com/slack-ruby/slack-ruby-bot/pull/44): Bot graceful shutdown - [@accessd](https://github.com/accessd).
83
88
 
84
- ### 0.6.1 (1/29/2016)
89
+ ### 0.6.1 (2016/1/29)
85
90
 
86
91
  * [#43](https://github.com/slack-ruby/slack-ruby-bot/issues/43): Issuing a `bot` command terminates bot - [@dblock](https://github.com/dblock).
87
92
  * [#40](https://github.com/slack-ruby/slack-ruby-bot/pull/40): Added `SlackRubyBot::Config.reset!` - [@accessd](https://github.com/accessd).
88
93
 
89
- ### 0.6.0 (1/9/2016)
94
+ ### 0.6.0 (2016/1/9)
90
95
 
91
96
  * Deprecated `SlackRubyBot::Base#send_message`, `send_message_with_gif` and `send_gif` in favor of `client.say` - [@dblock](https://github.com/dblock).
92
97
 
93
- ### 0.5.5 (1/4/2016)
98
+ ### 0.5.5 (2016/1/4)
94
99
 
95
100
  * Added `SlackRubyBot::Bot` DSL sugar - [@dblock](https://github.com/dblock).
96
101
 
97
- ### 0.5.4 (1/3/2016)
102
+ ### 0.5.4 (2016/1/3)
98
103
 
99
104
  * Enable setting `send_gifs` per instance of `SlackRubyBot::Server` - [@dblock](https://github.com/dblock).
100
105
 
101
- ### 0.5.3 (12/28/2015)
106
+ ### 0.5.3 (2015/12/28)
102
107
 
103
108
  * [#36](https://github.com/slack-ruby/slack-ruby-bot/issues/36): Fix: non-English bot aliases now work - [@dblock](https://github.com/dblock).
104
109
 
105
- ### 0.5.2 (12/26/2015)
110
+ ### 0.5.2 (2015/12/26)
106
111
 
107
112
  * Enable setting bot aliases per instance of `SlackRubyBot::Server` - [@dblock](https://github.com/dblock).
108
113
 
109
- ### 0.5.1 (12/23/2015)
114
+ ### 0.5.1 (2015/12/23)
110
115
 
111
116
  * Fix: restart sync vs. async - [@dblock](https://github.com/dblock).
112
117
  * [#33](https://github.com/slack-ruby/slack-ruby-bot/pull/33): `SlackRubyBot::App.instance` now creates an instance of the class on which it is called - [@dmvt](https://github.com/dmvt).
113
118
 
114
- ### 0.5.0 (12/7/2015)
119
+ ### 0.5.0 (2015/12/7)
115
120
 
116
121
  * Disable animated GIFs via `SlackRubyBot::Config.send_gifs` or ENV['SLACK_RUBY_BOT_SEND_GIFS'] - [@dblock](https://github.com/dblock).
117
122
  * `SlackRubyBot::Server` supports `restart!` with retry - [@dblock](https://github.com/dblock).
@@ -122,12 +127,12 @@
122
127
  * [#29](https://github.com/slack-ruby/slack-ruby-bot/pull/29): Fixed bot failing to correctly respond to unknown commands when queried with format `@botname` - [@crayment](https://github.com/crayment).
123
128
  * [#30](https://github.com/slack-ruby/slack-ruby-bot/pull/30): Fix RegexpError when parsing command - [@kuboshizuma](https://github.com/kuboshizuma).
124
129
 
125
- ### 0.4.5 (10/29/2015)
130
+ ### 0.4.5 (2015/10/29)
126
131
 
127
132
  * [#23](https://github.com/slack-ruby/slack-ruby-bot/pull/23): Fixed `match` that forced bot name into the expression being evaluated - [@dblock](https://github.com/dblock).
128
133
  * [#22](https://github.com/slack-ruby/slack-ruby-bot/issues/22), [slack-ruby-client#17](https://github.com/slack-ruby/slack-ruby-client/issues/17): Do not respond to messages from self, override with `allow_message_loops` - [@dblock](https://github.com/dblock).
129
134
 
130
- ### 0.4.4 (10/5/2015)
135
+ ### 0.4.4 (2015/10/5)
131
136
 
132
137
  * [#17](https://github.com/slack-ruby/slack-ruby-bot/issues/17): Address bot by `name:` - [@dblock](https://github.com/dblock).
133
138
  * [#19](https://github.com/slack-ruby/slack-ruby-bot/issues/19): Retry on `Faraday::Error::TimeoutError`, `TimeoutError` and `SSLError` - [@dblock](https://github.com/dblock).
@@ -135,39 +140,39 @@
135
140
  * Respond to direct messages without being addressed by name - [@dblock](https://github.com/dblock).
136
141
  * Added `send_gif`, to allow GIFs to be sent without text - [@maclover7](https://github.com/maclover7).
137
142
 
138
- ### 0.4.3 (8/21/2015)
143
+ ### 0.4.3 (2015/8/21)
139
144
 
140
145
  * [#13](https://github.com/slack-ruby/slack-ruby-bot/issues/13): You can now address the bot by its Slack @id - [@dblock](https://github.com/dblock).
141
146
 
142
- ### 0.4.2 (8/20/2015)
147
+ ### 0.4.2 (2015/8/20)
143
148
 
144
149
  * [#12](https://github.com/slack-ruby/slack-ruby-bot/issues/12): Added support for bot aliases - [@dblock](https://github.com/dblock).
145
150
 
146
- ### 0.4.1 (7/25/2015)
151
+ ### 0.4.1 (2015/7/25)
147
152
 
148
153
  * Use a real client in `respond_with_slack_message` expectaions - [@dblock](https://github.com/dblock).
149
154
 
150
- ### 0.4.0 (7/25/2015)
155
+ ### 0.4.0 (2015/7/25)
151
156
 
152
157
  * Using [slack-ruby-client](https://github.com/slack-ruby/slack-ruby-client) - [@dblock](https://github.com/dblock).
153
158
  * Use RealTime API to post messages - [@dblock](https://github.com/dblock).
154
159
 
155
- ### 0.3.1 (7/21/2015)
160
+ ### 0.3.1 (2015/7/21)
156
161
 
157
162
  * [#8](https://github.com/slack-ruby/slack-ruby-bot/issues/8): Fix: `undefined method 'strip!' for nil:NilClass` on nil message - [@dblock](https://github.com/dblock).
158
163
 
159
- ### 0.3.0 (7/19/2015)
164
+ ### 0.3.0 (2015/7/19)
160
165
 
161
166
  * [#5](https://github.com/slack-ruby/slack-ruby-bot/issues/5): Added support for free-formed routes via `match` - [@dblock](https://github.com/dblock).
162
167
  * [#6](https://github.com/slack-ruby/slack-ruby-bot/issues/6): Commands and operators take blocks - [@dblock](https://github.com/dblock).
163
168
  * [#4](https://github.com/slack-ruby/slack-ruby-bot/issues/4): Messages are posted with `as_user: true` by default - [@dblock](https://github.com/dblock).
164
169
 
165
- ### 0.2.0 (7/10/2015)
170
+ ### 0.2.0 (2015/7/10)
166
171
 
167
172
  * Sending `send_message` with nil or empty text will yield `Nothing to see here.` with a GIF instead of `no_text` - [@dblock](https://github.com/dblock).
168
173
  * Added support for operators with `operator [name]` - [@dblock](https://github.com/dblock).
169
174
  * Added support for custom commands with `command [name]` - [@dblock](https://github.com/dblock).
170
175
 
171
- ### 0.1.0 (6/2/2015)
176
+ ### 0.1.0 (2015/6/2)
172
177
 
173
178
  * Initial public release - [@dblock](https://github.com/dblock).
data/README.md CHANGED
@@ -19,7 +19,7 @@ If you are not familiar with Slack bots or Slack API concepts, you might want to
19
19
 
20
20
  ## Stable Release
21
21
 
22
- You're reading the documentation for the **stable** release of slack-ruby-bot, v0.11.1.
22
+ You're reading the documentation for the **stable** release of slack-ruby-bot, v0.11.2.
23
23
  See [CHANGELOG](CHANGELOG.md) for a history of changes and [UPGRADING](UPGRADING.md) for how to upgrade to more recent versions.
24
24
 
25
25
  ## Usage
@@ -1,25 +1,25 @@
1
1
  # Releasing Slack-Ruby-Bot
2
2
 
3
- There're no particular rules about when to release slack-ruby-bot. Release bug fixes frequenty, features not so frequently and breaking API changes rarely.
3
+ There are no particular rules about when to release slack-ruby-bot. Release bug fixes frequently, features not so frequently and breaking API changes rarely.
4
4
 
5
5
  ### Release
6
6
 
7
7
  Run tests, check that all tests succeed locally.
8
8
 
9
9
  ```
10
- export CONCURRENCY=celluloid-io
10
+ export CONCURRENCY=async-websocket
11
11
  bundle install
12
12
  rake
13
13
  ```
14
14
 
15
15
  Check that the last build succeeded in [Travis CI](https://travis-ci.org/slack-ruby/slack-ruby-bot) for all supported platforms.
16
16
 
17
- Increment the version, modify [lib/slack-ruby-bot/version.rb](lib/slack-ruby-bot/version.rb).
17
+ If needed, increment the version, modify [lib/slack-ruby-bot/version.rb](lib/slack-ruby-bot/version.rb).
18
18
 
19
19
  * Increment the third number if the release has bug fixes and/or very minor features, only (eg. change `0.2.1` to `0.2.2`).
20
20
  * Increment the second number if the release contains major features or breaking API changes (eg. change `0.2.1` to `0.3.0`).
21
21
 
22
- Change "Next Release" in [CHANGELOG.md](CHANGELOG.md) to the new version.
22
+ Add today's date to the next release in [CHANGELOG.md](CHANGELOG.md) to the new version.
23
23
 
24
24
  ```
25
25
  ### 0.2.2 (7/10/2015)
@@ -27,10 +27,18 @@ Change "Next Release" in [CHANGELOG.md](CHANGELOG.md) to the new version.
27
27
 
28
28
  Remove the line with "Your contribution here.", since there will be no more contributions to this release.
29
29
 
30
+ In the "Stable Release" section of the README, change **next** to **stable** so users know that they are reading the documentation for a released version.
31
+
32
+ ```
33
+ ## Stable Release
34
+
35
+ You're reading the documentation for the **stable** release of slack-ruby-bot, 0.2.2. See [UPGRADING](UPGRADING.md) when upgrading from an older version.
36
+ ```
37
+
30
38
  Commit your changes.
31
39
 
32
40
  ```
33
- git add CHANGELOG.md lib/slack-ruby-bot/version.rb
41
+ git add README.md CHANGELOG.md lib/slack-ruby-bot/version.rb
34
42
  git commit -m "Preparing for release, 0.2.2."
35
43
  git push origin master
36
44
  ```
@@ -51,15 +59,24 @@ Pushed slack-ruby-bot 0.2.2 to rubygems.org.
51
59
  Add the next release to [CHANGELOG.md](CHANGELOG.md).
52
60
 
53
61
  ```
54
- Next Release
55
- ============
62
+ ### 0.2.3 (Next)
56
63
 
57
64
  * Your contribution here.
58
65
  ```
59
66
 
60
67
  Increment the third version number in [lib/slack-ruby-bot/version.rb](lib/slack-ruby-bot/version.rb).
61
68
 
62
- Comit your changes.
69
+ Undo your change in README about the stable release.
70
+
71
+ ```
72
+ ## Stable Release
73
+
74
+ You're reading the documentation for the **next** release of slack-ruby-bot.
75
+ Please see the documentation for the [last stable release, v0.2.2](https://github.com/slack-ruby/slack-ruby-bot/blob/v0.2.2/README.md) unless you're integrating with HEAD.
76
+ See [UPGRADING](UPGRADING.md) when upgrading from an older version.
77
+ ```
78
+
79
+ Commit your changes.
63
80
 
64
81
  ```
65
82
  git add CHANGELOG.md lib/slack-ruby-bot/version.rb
@@ -3,7 +3,7 @@ module SlackRubyBot
3
3
  class Message
4
4
  def call(client, data)
5
5
  return if message_to_self_not_allowed? && message_to_self?(client, data)
6
- data.text.strip! if data.text
6
+ data.text = data.text.strip if data.text
7
7
  result = child_command_classes.detect { |d| d.invoke(client, data) }
8
8
  result ||= built_in_command_classes.detect { |d| d.invoke(client, data) }
9
9
  result ||= SlackRubyBot::Commands::Unknown.tap { |d| d.invoke(client, data) }
@@ -1,3 +1,3 @@
1
1
  module SlackRubyBot
2
- VERSION = '0.11.1'.freeze
2
+ VERSION = '0.11.2'.freeze
3
3
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.add_development_dependency 'rack-test'
20
20
  s.add_development_dependency 'rake'
21
21
  s.add_development_dependency 'rspec'
22
- s.add_development_dependency 'rubocop', '0.51.0'
22
+ s.add_development_dependency 'rubocop', '0.58.2'
23
23
  s.add_development_dependency 'vcr'
24
24
  s.add_development_dependency 'webmock'
25
25
  end
@@ -1,6 +1,15 @@
1
1
  describe SlackRubyBot::Hooks::Message do
2
2
  let(:message_hook) { described_class.new }
3
3
 
4
+ describe '#call' do
5
+ it 'doesn\'t raise an error when message is a frozen string' do
6
+ message_hook.call(
7
+ SlackRubyBot::Client.new,
8
+ Hashie::Mash.new(text: 'message'.freeze)
9
+ )
10
+ end
11
+ end
12
+
4
13
  describe '#child_command_classes' do
5
14
  it 'returns only child command classes' do
6
15
  child_command_classes = message_hook.send(:child_command_classes)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack-ruby-bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Doubrovkine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-07 00:00:00.000000000 Z
11
+ date: 2018-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.51.0
89
+ version: 0.58.2
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.51.0
96
+ version: 0.58.2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: vcr
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -282,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
282
  version: 1.3.6
283
283
  requirements: []
284
284
  rubyforge_project:
285
- rubygems_version: 2.6.12
285
+ rubygems_version: 2.7.6
286
286
  signing_key:
287
287
  specification_version: 4
288
288
  summary: The easiest way to write a Slack bot in Ruby.