Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
934327e1
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
934327e1
编写于
7月 23, 2017
作者:
S
Sean Griffin
提交者:
GitHub
7月 23, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #29820 from kirs/frozen-actioncable
Use frozen string literal in actioncable/
上级
2ef00617
385825fb
变更
81
隐藏空白更改
内联
并排
Showing
81 changed file
with
159 addition
and
1 deletion
+159
-1
.rubocop.yml
.rubocop.yml
+1
-0
actioncable/Rakefile
actioncable/Rakefile
+2
-0
actioncable/actioncable.gemspec
actioncable/actioncable.gemspec
+2
-0
actioncable/bin/test
actioncable/bin/test
+1
-0
actioncable/lib/action_cable.rb
actioncable/lib/action_cable.rb
+2
-0
actioncable/lib/action_cable/channel.rb
actioncable/lib/action_cable/channel.rb
+2
-0
actioncable/lib/action_cable/channel/base.rb
actioncable/lib/action_cable/channel/base.rb
+1
-1
actioncable/lib/action_cable/channel/broadcasting.rb
actioncable/lib/action_cable/channel/broadcasting.rb
+2
-0
actioncable/lib/action_cable/channel/callbacks.rb
actioncable/lib/action_cable/channel/callbacks.rb
+2
-0
actioncable/lib/action_cable/channel/naming.rb
actioncable/lib/action_cable/channel/naming.rb
+2
-0
actioncable/lib/action_cable/channel/periodic_timers.rb
actioncable/lib/action_cable/channel/periodic_timers.rb
+2
-0
actioncable/lib/action_cable/channel/streams.rb
actioncable/lib/action_cable/channel/streams.rb
+2
-0
actioncable/lib/action_cable/connection.rb
actioncable/lib/action_cable/connection.rb
+2
-0
actioncable/lib/action_cable/connection/authorization.rb
actioncable/lib/action_cable/connection/authorization.rb
+2
-0
actioncable/lib/action_cable/connection/base.rb
actioncable/lib/action_cable/connection/base.rb
+2
-0
actioncable/lib/action_cable/connection/client_socket.rb
actioncable/lib/action_cable/connection/client_socket.rb
+2
-0
actioncable/lib/action_cable/connection/identification.rb
actioncable/lib/action_cable/connection/identification.rb
+2
-0
actioncable/lib/action_cable/connection/internal_channel.rb
actioncable/lib/action_cable/connection/internal_channel.rb
+2
-0
actioncable/lib/action_cable/connection/message_buffer.rb
actioncable/lib/action_cable/connection/message_buffer.rb
+2
-0
actioncable/lib/action_cable/connection/stream.rb
actioncable/lib/action_cable/connection/stream.rb
+2
-0
actioncable/lib/action_cable/connection/stream_event_loop.rb
actioncable/lib/action_cable/connection/stream_event_loop.rb
+2
-0
actioncable/lib/action_cable/connection/subscriptions.rb
actioncable/lib/action_cable/connection/subscriptions.rb
+2
-0
actioncable/lib/action_cable/connection/tagged_logger_proxy.rb
...ncable/lib/action_cable/connection/tagged_logger_proxy.rb
+2
-0
actioncable/lib/action_cable/connection/web_socket.rb
actioncable/lib/action_cable/connection/web_socket.rb
+2
-0
actioncable/lib/action_cable/engine.rb
actioncable/lib/action_cable/engine.rb
+2
-0
actioncable/lib/action_cable/gem_version.rb
actioncable/lib/action_cable/gem_version.rb
+2
-0
actioncable/lib/action_cable/helpers/action_cable_helper.rb
actioncable/lib/action_cable/helpers/action_cable_helper.rb
+2
-0
actioncable/lib/action_cable/remote_connections.rb
actioncable/lib/action_cable/remote_connections.rb
+2
-0
actioncable/lib/action_cable/server.rb
actioncable/lib/action_cable/server.rb
+2
-0
actioncable/lib/action_cable/server/base.rb
actioncable/lib/action_cable/server/base.rb
+2
-0
actioncable/lib/action_cable/server/broadcasting.rb
actioncable/lib/action_cable/server/broadcasting.rb
+2
-0
actioncable/lib/action_cable/server/configuration.rb
actioncable/lib/action_cable/server/configuration.rb
+2
-0
actioncable/lib/action_cable/server/connections.rb
actioncable/lib/action_cable/server/connections.rb
+2
-0
actioncable/lib/action_cable/server/worker.rb
actioncable/lib/action_cable/server/worker.rb
+2
-0
actioncable/lib/action_cable/server/worker/active_record_connection_management.rb
...able/server/worker/active_record_connection_management.rb
+2
-0
actioncable/lib/action_cable/subscription_adapter.rb
actioncable/lib/action_cable/subscription_adapter.rb
+2
-0
actioncable/lib/action_cable/subscription_adapter/async.rb
actioncable/lib/action_cable/subscription_adapter/async.rb
+2
-0
actioncable/lib/action_cable/subscription_adapter/base.rb
actioncable/lib/action_cable/subscription_adapter/base.rb
+2
-0
actioncable/lib/action_cable/subscription_adapter/channel_prefix.rb
...e/lib/action_cable/subscription_adapter/channel_prefix.rb
+2
-0
actioncable/lib/action_cable/subscription_adapter/evented_redis.rb
...le/lib/action_cable/subscription_adapter/evented_redis.rb
+2
-0
actioncable/lib/action_cable/subscription_adapter/inline.rb
actioncable/lib/action_cable/subscription_adapter/inline.rb
+2
-0
actioncable/lib/action_cable/subscription_adapter/postgresql.rb
...cable/lib/action_cable/subscription_adapter/postgresql.rb
+2
-0
actioncable/lib/action_cable/subscription_adapter/redis.rb
actioncable/lib/action_cable/subscription_adapter/redis.rb
+2
-0
actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb
...e/lib/action_cable/subscription_adapter/subscriber_map.rb
+2
-0
actioncable/lib/action_cable/version.rb
actioncable/lib/action_cable/version.rb
+2
-0
actioncable/lib/rails/generators/channel/channel_generator.rb
...oncable/lib/rails/generators/channel/channel_generator.rb
+2
-0
actioncable/test/channel/base_test.rb
actioncable/test/channel/base_test.rb
+2
-0
actioncable/test/channel/broadcasting_test.rb
actioncable/test/channel/broadcasting_test.rb
+2
-0
actioncable/test/channel/naming_test.rb
actioncable/test/channel/naming_test.rb
+2
-0
actioncable/test/channel/periodic_timers_test.rb
actioncable/test/channel/periodic_timers_test.rb
+2
-0
actioncable/test/channel/rejection_test.rb
actioncable/test/channel/rejection_test.rb
+2
-0
actioncable/test/channel/stream_test.rb
actioncable/test/channel/stream_test.rb
+2
-0
actioncable/test/client_test.rb
actioncable/test/client_test.rb
+2
-0
actioncable/test/connection/authorization_test.rb
actioncable/test/connection/authorization_test.rb
+2
-0
actioncable/test/connection/base_test.rb
actioncable/test/connection/base_test.rb
+2
-0
actioncable/test/connection/client_socket_test.rb
actioncable/test/connection/client_socket_test.rb
+2
-0
actioncable/test/connection/cross_site_forgery_test.rb
actioncable/test/connection/cross_site_forgery_test.rb
+2
-0
actioncable/test/connection/identifier_test.rb
actioncable/test/connection/identifier_test.rb
+2
-0
actioncable/test/connection/multiple_identifiers_test.rb
actioncable/test/connection/multiple_identifiers_test.rb
+2
-0
actioncable/test/connection/stream_test.rb
actioncable/test/connection/stream_test.rb
+2
-0
actioncable/test/connection/string_identifier_test.rb
actioncable/test/connection/string_identifier_test.rb
+2
-0
actioncable/test/connection/subscriptions_test.rb
actioncable/test/connection/subscriptions_test.rb
+2
-0
actioncable/test/server/base_test.rb
actioncable/test/server/base_test.rb
+2
-0
actioncable/test/server/broadcasting_test.rb
actioncable/test/server/broadcasting_test.rb
+2
-0
actioncable/test/stubs/global_id.rb
actioncable/test/stubs/global_id.rb
+2
-0
actioncable/test/stubs/room.rb
actioncable/test/stubs/room.rb
+2
-0
actioncable/test/stubs/test_adapter.rb
actioncable/test/stubs/test_adapter.rb
+2
-0
actioncable/test/stubs/test_connection.rb
actioncable/test/stubs/test_connection.rb
+2
-0
actioncable/test/stubs/test_server.rb
actioncable/test/stubs/test_server.rb
+2
-0
actioncable/test/stubs/user.rb
actioncable/test/stubs/user.rb
+2
-0
actioncable/test/subscription_adapter/async_test.rb
actioncable/test/subscription_adapter/async_test.rb
+2
-0
actioncable/test/subscription_adapter/base_test.rb
actioncable/test/subscription_adapter/base_test.rb
+2
-0
actioncable/test/subscription_adapter/channel_prefix.rb
actioncable/test/subscription_adapter/channel_prefix.rb
+2
-0
actioncable/test/subscription_adapter/common.rb
actioncable/test/subscription_adapter/common.rb
+2
-0
actioncable/test/subscription_adapter/evented_redis_test.rb
actioncable/test/subscription_adapter/evented_redis_test.rb
+2
-0
actioncable/test/subscription_adapter/inline_test.rb
actioncable/test/subscription_adapter/inline_test.rb
+2
-0
actioncable/test/subscription_adapter/postgresql_test.rb
actioncable/test/subscription_adapter/postgresql_test.rb
+2
-0
actioncable/test/subscription_adapter/redis_test.rb
actioncable/test/subscription_adapter/redis_test.rb
+2
-0
actioncable/test/subscription_adapter/subscriber_map_test.rb
actioncable/test/subscription_adapter/subscriber_map_test.rb
+2
-0
actioncable/test/test_helper.rb
actioncable/test/test_helper.rb
+2
-0
actioncable/test/worker_test.rb
actioncable/test/worker_test.rb
+2
-0
未找到文件。
.rubocop.yml
浏览文件 @
934327e1
...
...
@@ -89,6 +89,7 @@ Style/FrozenStringLiteralComment:
Include
:
-
'
activesupport/**/*'
-
'
activemodel/**/*'
-
'
actioncable/**/*'
-
'
activejob/**/*'
-
'
activerecord/**/*'
-
'
actionmailer/**/*'
...
...
actioncable/Rakefile
浏览文件 @
934327e1
# frozen_string_literal: true
require
"rake/testtask"
require
"pathname"
require
"open3"
...
...
actioncable/actioncable.gemspec
浏览文件 @
934327e1
# frozen_string_literal: true
version
=
File
.
read
(
File
.
expand_path
(
"../RAILS_VERSION"
,
__dir__
)).
strip
Gem
::
Specification
.
new
do
|
s
|
...
...
actioncable/bin/test
浏览文件 @
934327e1
#!/usr/bin/env ruby
# frozen_string_literal: true
COMPONENT_ROOT
=
File
.
expand_path
(
".."
,
__dir__
)
require_relative
"../../tools/test"
actioncable/lib/action_cable.rb
浏览文件 @
934327e1
# frozen_string_literal: true
#--
# Copyright (c) 2015-2017 Basecamp, LLC
#
...
...
actioncable/lib/action_cable/channel.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Channel
extend
ActiveSupport
::
Autoload
...
...
actioncable/lib/action_cable/channel/base.rb
浏览文件 @
934327e1
...
...
@@ -270,7 +270,7 @@ def dispatch_action(action, data)
end
def
action_signature
(
action
,
data
)
"
#{
self
.
class
.
name
}
#
#{
action
}
"
.
tap
do
|
signature
|
"
#{
self
.
class
.
name
}
#
#{
action
}
"
.
dup
.
tap
do
|
signature
|
if
(
arguments
=
data
.
except
(
"action"
)).
any?
signature
<<
"(
#{
arguments
.
inspect
}
)"
end
...
...
actioncable/lib/action_cable/channel/broadcasting.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"active_support/core_ext/object/to_param"
module
ActionCable
...
...
actioncable/lib/action_cable/channel/callbacks.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"active_support/callbacks"
module
ActionCable
...
...
actioncable/lib/action_cable/channel/naming.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Channel
module
Naming
...
...
actioncable/lib/action_cable/channel/periodic_timers.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Channel
module
PeriodicTimers
...
...
actioncable/lib/action_cable/channel/streams.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Channel
# Streams allow channels to route broadcastings to the subscriber. A broadcasting is, as discussed elsewhere, a pubsub queue where any data
...
...
actioncable/lib/action_cable/connection.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Connection
extend
ActiveSupport
::
Autoload
...
...
actioncable/lib/action_cable/connection/authorization.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Connection
module
Authorization
...
...
actioncable/lib/action_cable/connection/base.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"action_dispatch"
module
ActionCable
...
...
actioncable/lib/action_cable/connection/client_socket.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"websocket/driver"
module
ActionCable
...
...
actioncable/lib/action_cable/connection/identification.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"set"
module
ActionCable
...
...
actioncable/lib/action_cable/connection/internal_channel.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Connection
# Makes it possible for the RemoteConnection to disconnect a specific connection.
...
...
actioncable/lib/action_cable/connection/message_buffer.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Connection
# Allows us to buffer messages received from the WebSocket before the Connection has been fully initialized, and is ready to receive them.
...
...
actioncable/lib/action_cable/connection/stream.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"thread"
module
ActionCable
...
...
actioncable/lib/action_cable/connection/stream_event_loop.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"nio"
require
"thread"
...
...
actioncable/lib/action_cable/connection/subscriptions.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"active_support/core_ext/hash/indifferent_access"
module
ActionCable
...
...
actioncable/lib/action_cable/connection/tagged_logger_proxy.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Connection
# Allows the use of per-connection tags against the server logger. This wouldn't work using the traditional
...
...
actioncable/lib/action_cable/connection/web_socket.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"websocket/driver"
module
ActionCable
...
...
actioncable/lib/action_cable/engine.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"rails"
require
"action_cable"
require_relative
"helpers/action_cable_helper"
...
...
actioncable/lib/action_cable/gem_version.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
# Returns the version of the currently loaded Action Cable as a <tt>Gem::Version</tt>.
def
self
.
gem_version
...
...
actioncable/lib/action_cable/helpers/action_cable_helper.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Helpers
module
ActionCableHelper
...
...
actioncable/lib/action_cable/remote_connections.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
# If you need to disconnect a given connection, you can go through the
# RemoteConnections. You can find the connections you're looking for by
...
...
actioncable/lib/action_cable/server.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Server
extend
ActiveSupport
::
Autoload
...
...
actioncable/lib/action_cable/server/base.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"monitor"
module
ActionCable
...
...
actioncable/lib/action_cable/server/broadcasting.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Server
# Broadcasting is how other parts of your application can send messages to a channel's subscribers. As explained in Channel, most of the time, these
...
...
actioncable/lib/action_cable/server/configuration.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Server
# An instance of this configuration object is available via ActionCable.server.config, which allows you to tweak Action Cable configuration
...
...
actioncable/lib/action_cable/server/connections.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Server
# Collection class for all the connections that have been established on this specific server. Remember, usually you'll run many Action Cable servers, so
...
...
actioncable/lib/action_cable/server/worker.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"active_support/callbacks"
require
"active_support/core_ext/module/attribute_accessors_per_thread"
require
"concurrent"
...
...
actioncable/lib/action_cable/server/worker/active_record_connection_management.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
Server
class
Worker
...
...
actioncable/lib/action_cable/subscription_adapter.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
SubscriptionAdapter
extend
ActiveSupport
::
Autoload
...
...
actioncable/lib/action_cable/subscription_adapter/async.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require_relative
"inline"
module
ActionCable
...
...
actioncable/lib/action_cable/subscription_adapter/base.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
SubscriptionAdapter
class
Base
...
...
actioncable/lib/action_cable/subscription_adapter/channel_prefix.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
SubscriptionAdapter
module
ChannelPrefix
# :nodoc:
...
...
actioncable/lib/action_cable/subscription_adapter/evented_redis.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"thread"
gem
"em-hiredis"
,
"~> 0.3.0"
...
...
actioncable/lib/action_cable/subscription_adapter/inline.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
SubscriptionAdapter
class
Inline
<
Base
# :nodoc:
...
...
actioncable/lib/action_cable/subscription_adapter/postgresql.rb
浏览文件 @
934327e1
# frozen_string_literal: true
gem
"pg"
,
"~> 0.18"
require
"pg"
require
"thread"
...
...
actioncable/lib/action_cable/subscription_adapter/redis.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"thread"
gem
"redis"
,
"~> 3.0"
...
...
actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
ActionCable
module
SubscriptionAdapter
class
SubscriberMap
...
...
actioncable/lib/action_cable/version.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require_relative
"gem_version"
module
ActionCable
...
...
actioncable/lib/rails/generators/channel/channel_generator.rb
浏览文件 @
934327e1
# frozen_string_literal: true
module
Rails
module
Generators
class
ChannelGenerator
<
NamedBase
...
...
actioncable/test/channel/base_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_connection"
require
"stubs/room"
...
...
actioncable/test/channel/broadcasting_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_connection"
require
"stubs/room"
...
...
actioncable/test/channel/naming_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
class
ActionCable::Channel::NamingTest
<
ActiveSupport
::
TestCase
...
...
actioncable/test/channel/periodic_timers_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_connection"
require
"stubs/room"
...
...
actioncable/test/channel/rejection_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_connection"
require
"stubs/room"
...
...
actioncable/test/channel/stream_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_connection"
require
"stubs/room"
...
...
actioncable/test/client_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"concurrent"
...
...
actioncable/test/connection/authorization_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_server"
...
...
actioncable/test/connection/base_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_server"
require
"active_support/core_ext/object/json"
...
...
actioncable/test/connection/client_socket_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_server"
...
...
actioncable/test/connection/cross_site_forgery_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_server"
...
...
actioncable/test/connection/identifier_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_server"
require
"stubs/user"
...
...
actioncable/test/connection/multiple_identifiers_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_server"
require
"stubs/user"
...
...
actioncable/test/connection/stream_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_server"
...
...
actioncable/test/connection/string_identifier_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_server"
...
...
actioncable/test/connection/subscriptions_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
class
ActionCable::Connection::SubscriptionsTest
<
ActionCable
::
TestCase
...
...
actioncable/test/server/base_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_server"
require
"active_support/core_ext/hash/indifferent_access"
...
...
actioncable/test/server/broadcasting_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_server"
...
...
actioncable/test/stubs/global_id.rb
浏览文件 @
934327e1
# frozen_string_literal: true
class
GlobalID
attr_reader
:uri
delegate
:to_param
,
:to_s
,
to: :uri
...
...
actioncable/test/stubs/room.rb
浏览文件 @
934327e1
# frozen_string_literal: true
class
Room
attr_reader
:id
,
:name
...
...
actioncable/test/stubs/test_adapter.rb
浏览文件 @
934327e1
# frozen_string_literal: true
class
SuccessAdapter
<
ActionCable
::
SubscriptionAdapter
::
Base
def
broadcast
(
channel
,
payload
)
end
...
...
actioncable/test/stubs/test_connection.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"stubs/user"
class
TestConnection
...
...
actioncable/test/stubs/test_server.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"ostruct"
class
TestServer
...
...
actioncable/test/stubs/user.rb
浏览文件 @
934327e1
# frozen_string_literal: true
class
User
attr_reader
:name
...
...
actioncable/test/subscription_adapter/async_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require_relative
"common"
...
...
actioncable/test/subscription_adapter/base_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"stubs/test_server"
...
...
actioncable/test/subscription_adapter/channel_prefix.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
class
ActionCable::Server::WithIndependentConfig
<
ActionCable
::
Server
::
Base
...
...
actioncable/test/subscription_adapter/common.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require
"concurrent"
...
...
actioncable/test/subscription_adapter/evented_redis_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require_relative
"common"
require_relative
"channel_prefix"
...
...
actioncable/test/subscription_adapter/inline_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require_relative
"common"
...
...
actioncable/test/subscription_adapter/postgresql_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require_relative
"common"
...
...
actioncable/test/subscription_adapter/redis_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
require_relative
"common"
require_relative
"channel_prefix"
...
...
actioncable/test/subscription_adapter/subscriber_map_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
class
SubscriberMapTest
<
ActionCable
::
TestCase
...
...
actioncable/test/test_helper.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"action_cable"
require
"active_support/testing/autorun"
...
...
actioncable/test/worker_test.rb
浏览文件 @
934327e1
# frozen_string_literal: true
require
"test_helper"
class
WorkerTest
<
ActiveSupport
::
TestCase
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录