Skip to content

Commit

Permalink
Restore slack-ruby-client.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
jcraigk committed Aug 23, 2019
1 parent c420e4f commit b3a039d
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 53 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ Style/Documentation:
Enabled: false
Style/ModuleFunction:
Enabled: false
Naming/FileName:
Exclude:
- lib/slack-ruby-client.rb # Required to match gemspec name
54 changes: 54 additions & 0 deletions lib/slack-ruby-client.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# frozen_string_literal: true
require_relative 'slack/version'
require_relative 'slack/logger'
require_relative 'slack/config'

# Messages
require 'hashie'
require_relative 'slack/messages/message'
require_relative 'slack/messages/formatting'

# Web API
require 'faraday'
require 'faraday_middleware'
require 'json'
require 'logger'
begin
require 'picky'
rescue LoadError # rubocop:disable Lint/HandleExceptions
# ignore, only used in users_search
end
begin
require 'openssl'
rescue LoadError # rubocop:disable Lint/HandleExceptions
# Used in slack/web/config
end
require_relative 'slack/web/config'
require_relative 'slack/web/api/errors/slack_error'
require_relative 'slack/web/api/errors/too_many_requests_error'
require_relative 'slack/web/api/error'
require_relative 'slack/web/faraday/response/raise_error'
require_relative 'slack/web/faraday/connection'
require_relative 'slack/web/faraday/request'
require_relative 'slack/web/api/mixins'
require_relative 'slack/web/api/endpoints'
require_relative 'slack/web/pagination/cursor'
require_relative 'slack/web/client'

# RealTime API
require 'active_support'
require 'active_support/core_ext'
require_relative 'slack/real_time/concurrency'
require_relative 'slack/real_time/socket'
require_relative 'slack/real_time/api/message_id'
require_relative 'slack/real_time/api/ping'
require_relative 'slack/real_time/api/message'
require_relative 'slack/real_time/api/typing'
require_relative 'slack/real_time/models'
require_relative 'slack/real_time/stores'
require_relative 'slack/real_time/config'
require_relative 'slack/real_time/client'

# Events API
require_relative 'slack/events/config'
require_relative 'slack/events/request'
54 changes: 1 addition & 53 deletions lib/slack_ruby_client.rb
Original file line number Diff line number Diff line change
@@ -1,54 +1,2 @@
# frozen_string_literal: true
require_relative 'slack/version'
require_relative 'slack/logger'
require_relative 'slack/config'

# Messages
require 'hashie'
require_relative 'slack/messages/message'
require_relative 'slack/messages/formatting'

# Web API
require 'faraday'
require 'faraday_middleware'
require 'json'
require 'logger'
begin
require 'picky'
rescue LoadError
# ignore, only used in users_search
end
begin
require 'openssl'
rescue LoadError
# Used in slack/web/config
end
require_relative 'slack/web/config'
require_relative 'slack/web/api/errors/slack_error'
require_relative 'slack/web/api/errors/too_many_requests_error'
require_relative 'slack/web/api/error'
require_relative 'slack/web/faraday/response/raise_error'
require_relative 'slack/web/faraday/connection'
require_relative 'slack/web/faraday/request'
require_relative 'slack/web/api/mixins'
require_relative 'slack/web/api/endpoints'
require_relative 'slack/web/pagination/cursor'
require_relative 'slack/web/client'

# RealTime API
require 'active_support'
require 'active_support/core_ext'
require_relative 'slack/real_time/concurrency'
require_relative 'slack/real_time/socket'
require_relative 'slack/real_time/api/message_id'
require_relative 'slack/real_time/api/ping'
require_relative 'slack/real_time/api/message'
require_relative 'slack/real_time/api/typing'
require_relative 'slack/real_time/models'
require_relative 'slack/real_time/stores'
require_relative 'slack/real_time/config'
require_relative 'slack/real_time/client'

# Events API
require_relative 'slack/events/config'
require_relative 'slack/events/request'
require 'slack-ruby-client'

0 comments on commit b3a039d

Please sign in to comment.