Skip to content

Commit 463160d

Browse files
authored
Merge pull request #357 from wasabigeek/remove-faye
Remove faye
2 parents cd39ecd + 8c80837 commit 463160d

File tree

12 files changed

+7
-225
lines changed

12 files changed

+7
-225
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ Lint/RedundantCopDisableDirective:
1818
Exclude:
1919
- 'lib/slack-ruby-client.rb'
2020

21-
# Offense count: 2
22-
# Configuration parameters: AllowComments.
23-
Lint/SuppressedException:
24-
Exclude:
25-
- 'spec/slack/real_time/concurrency/celluloid_spec.rb'
26-
- 'spec/slack/real_time/concurrency/eventmachine_spec.rb'
27-
2821
# Offense count: 11
2922
# Configuration parameters: IgnoredMethods.
3023
Metrics/AbcSize:
@@ -56,11 +49,6 @@ Performance/RegexpMatch:
5649
Exclude:
5750
- 'lib/tasks/web.rake'
5851

59-
# Offense count: 1
60-
RSpec/AnyInstance:
61-
Exclude:
62-
- 'spec/slack/real_time/concurrency/celluloid_spec.rb'
63-
6452
# Offense count: 5
6553
# Cop supports --auto-correct.
6654
RSpec/ContextMethod:
@@ -134,8 +122,6 @@ RSpec/VerifiedDoubles:
134122
Exclude:
135123
- 'spec/slack/events/request_spec.rb'
136124
- 'spec/slack/real_time/client_spec.rb'
137-
- 'spec/slack/real_time/concurrency/celluloid_spec.rb'
138-
- 'spec/slack/real_time/concurrency/eventmachine_spec.rb'
139125
- 'spec/slack/web/faraday/response/raise_error_spec.rb'
140126
- 'spec/support/real_time/connected_client.rb'
141127

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ matrix:
1414
- rvm: 2.4.1
1515
script:
1616
- bundle exec danger
17-
- rvm: 2.4.1
18-
env: CONCURRENCY=faye-websocket
1917
- rvm: 2.5.3
2018
env: CONCURRENCY=async-websocket
2119
allow_failures:

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
### 0.16.0 (Next)
22

3+
* [#348](https://github.com/slack-ruby/slack-ruby-client/pull/348): Added `admin_conversations_archive`, `admin_conversations_convertToPrivate`, `admin_conversations_create`, `admin_conversations_delete`, `admin_conversations_disconnectShared`, `admin_conversations_getConversationPrefs`, `admin_conversations_getTeams`, `admin_conversations_invite`, `admin_conversations_rename`, `admin_conversations_search`, `admin_conversations_setConversationPrefs`, `admin_conversations_unarchive`, `admin_conversations_ekm_listOriginalConnectedChannelInfo`, `admin_users_session_invalidate`, `apps_event_authorizations_list`, `conversations_mark`, `workflows_stepCompleted`, `workflows_stepFailed` and `workflows_updateStep` endpoints - [@wasabigeek](https://github.com/wasabigeek).
34
* [#350](https://github.com/slack-ruby/slack-ruby-client/pull/350): Handle server errors such as timouts & non-json responses (see [Upgrading to 0.16.0](UPGRADING.md#upgrading-to--0160)) - [@ojab](https://github.com/ojab).
45
* [#354](https://github.com/slack-ruby/slack-ruby-client/pull/354): Rewind body after checking request signature - [@sunny](https://github.com/sunny).
5-
* [#355](https://github.com/slack-ruby/slack-ruby-client/pull/355): Removed celluloid concurrency support - [@wasabigeek](https://github.com/wasabigeek).
6+
* [#355](https://github.com/slack-ruby/slack-ruby-client/pull/355), [#357](https://github.com/slack-ruby/slack-ruby-client/pull/357): Remove celluloid and faye-websocket support - [@wasabigeek](https://github.com/wasabigeek).
67
* [#356](https://github.com/slack-ruby/slack-ruby-client/pull/356): Added `admin_apps_clearResolution`, `admin_conversations_getCustomRetention`, `admin_conversations_removeCustomRetention`, `admin_conversations_setCustomRetention` and `admin_users_session_list` endpoints - [@dblock](https://github.com/dblock).
7-
* [#348](https://github.com/slack-ruby/slack-ruby-client/pull/348): Added `admin_conversations_archive`, `admin_conversations_convertToPrivate`, `admin_conversations_create`, `admin_conversations_delete`, `admin_conversations_disconnectShared`, `admin_conversations_getConversationPrefs`, `admin_conversations_getTeams`, `admin_conversations_invite`, `admin_conversations_rename`, `admin_conversations_search`, `admin_conversations_setConversationPrefs`, `admin_conversations_unarchive`, `admin_conversations_ekm_listOriginalConnectedChannelInfo`, `admin_users_session_invalidate`, `apps_event_authorizations_list`, `conversations_mark`, `workflows_stepCompleted`, `workflows_stepFailed` and `workflows_updateStep` endpoints - [@wasabigeek](https://github.com/wasabigeek).
88
* Your contribution here.
99

1010
### 0.15.1 (2020/9/3)

README.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ A Ruby client for the Slack [Web](https://api.slack.com/web), [RealTime Messagin
4747
- [Large Team Considerations](#large-team-considerations)
4848
- [Concurrency](#concurrency)
4949
- [Async](#async)
50-
- [Faye::Websocket with Eventmachine](#fayewebsocket-with-eventmachine)
5150
- [Events API](#events-api)
5251
- [Configuring Slack::Events](#configuring-slackevents)
5352
- [Verifying the Request Signature](#verifying-the-request-signature)
@@ -81,7 +80,7 @@ Add to Gemfile.
8180
gem 'slack-ruby-client'
8281
```
8382

84-
If you're going to be using the RealTime client, add either `async-websocket`, `eventmachine` and `faye-websocket`. See below for more information about concurrency. We recommend you use `async-websocket`.
83+
If you're going to be using the RealTime client, add `async-websocket`. See below for more information about concurrency.
8584

8685
```
8786
gem 'async-websocket', '~> 0.8.0'
@@ -494,7 +493,7 @@ See [#134](https://github.com/slack-ruby/slack-ruby-client/issues/134) for a dis
494493

495494
#### Concurrency
496495

497-
`Slack::RealTime::Client` needs help from a concurrency library and supports [Async](https://github.com/socketry/async) and [Faye::WebSocket](https://github.com/faye/faye-websocket-ruby) with [Eventmachine](https://github.com/eventmachine/eventmachine). It will auto-detect one or the other depending on the gems in your Gemfile, but you can also set concurrency explicitly.
496+
`Slack::RealTime::Client` needs help from a concurrency library and supports [Async](https://github.com/socketry/async).
498497

499498
```ruby
500499
Slack::RealTime.configure do |config|
@@ -512,24 +511,14 @@ client.start_async
512511

513512
##### Async
514513

515-
This is the recommended library. Add `async-websocket` to your Gemfile.
514+
Add `async-websocket` to your Gemfile.
516515

517516
```
518517
gem 'async-websocket'
519518
```
520519

521520
See a fully working example in [examples/hi_real_time_async_async](examples/hi_real_time_async_async/hi.rb).
522521

523-
##### Faye::Websocket with Eventmachine
524-
525-
Add the following to your Gemfile.
526-
527-
```
528-
gem 'faye-websocket'
529-
```
530-
531-
See a fully working example in [examples/hi_real_time_async_eventmachine](examples/hi_real_time_async_eventmachine/hi.rb).
532-
533522
### Events API
534523

535524
This library provides limited support for the [Slack Events API](https://api.slack.com/events-api).

examples/hi_real_time_async_eventmachine/Gemfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/hi_real_time_async_eventmachine/Procfile

Lines changed: 0 additions & 2 deletions
This file was deleted.

examples/hi_real_time_async_eventmachine/hi.rb

Lines changed: 0 additions & 39 deletions
This file was deleted.

lib/slack/real_time/concurrency.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module Slack
33
module RealTime
44
module Concurrency
55
autoload :Async, 'slack/real_time/concurrency/async'
6-
autoload :Eventmachine, 'slack/real_time/concurrency/eventmachine'
76
end
87
end
98
end

lib/slack/real_time/concurrency/eventmachine.rb

Lines changed: 0 additions & 85 deletions
This file was deleted.

lib/slack/real_time/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def concurrency
3838
private
3939

4040
def detect_concurrency
41-
%i[Async Eventmachine].each do |concurrency|
41+
%i[Async].each do |concurrency|
4242
begin
4343
return Slack::RealTime::Concurrency.const_get(concurrency)
4444
rescue LoadError, NameError

0 commit comments

Comments
 (0)