Skip to content

Commit

Permalink
Revert "Merge pull request rails#29540 from kirs/rubocop-frozen-string"
Browse files Browse the repository at this point in the history
This reverts commit 3420a14, reversing
changes made to afb66a5.
  • Loading branch information
matthewd committed Jul 1, 2017
1 parent 3420a14 commit 87b3e22
Show file tree
Hide file tree
Showing 2,231 changed files with 13 additions and 2,246 deletions.
4 changes: 0 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes

Style/FrozenStringLiteralComment:
Enabled: true
EnforcedStyle: always

# Detect hard tabs, no hard tabs.
Layout/Tab:
Enabled: true
Expand Down
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
source "https://rubygems.org"

git_source(:github) do |repo_name|
Expand Down
1 change: 0 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "net/http"

$:.unshift __dir__
Expand Down
1 change: 0 additions & 1 deletion actioncable/Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "rake/testtask"
require "pathname"
require "open3"
Expand Down
1 change: 0 additions & 1 deletion actioncable/actioncable.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip

Gem::Specification.new do |s|
Expand Down
1 change: 0 additions & 1 deletion actioncable/bin/test
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

COMPONENT_ROOT = File.expand_path("..", __dir__)
require_relative "../../tools/test"
1 change: 0 additions & 1 deletion actioncable/lib/action_cable.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
#--
# Copyright (c) 2015-2017 Basecamp, LLC
#
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/channel.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module ActionCable
module Channel
extend ActiveSupport::Autoload
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/channel/base.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "set"

module ActionCable
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/channel/broadcasting.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "active_support/core_ext/object/to_param"

module ActionCable
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/channel/callbacks.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "active_support/callbacks"

module ActionCable
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/channel/naming.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module ActionCable
module Channel
module Naming
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/channel/periodic_timers.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module ActionCable
module Channel
module PeriodicTimers
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/channel/streams.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# 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
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/connection.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module ActionCable
module Connection
extend ActiveSupport::Autoload
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/connection/authorization.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module ActionCable
module Connection
module Authorization
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/connection/base.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "action_dispatch"

module ActionCable
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/connection/client_socket.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "websocket/driver"

module ActionCable
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/connection/identification.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "set"

module ActionCable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module ActionCable
module Connection
# Makes it possible for the RemoteConnection to disconnect a specific connection.
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/connection/message_buffer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# 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.
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/connection/stream.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "thread"

module ActionCable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "nio"
require "thread"

Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/connection/subscriptions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "active_support/core_ext/hash/indifferent_access"

module ActionCable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# 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
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/connection/web_socket.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "websocket/driver"

module ActionCable
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/engine.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "rails"
require "action_cable"
require "action_cable/helpers/action_cable_helper"
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/gem_version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module ActionCable
module Helpers
module ActionCableHelper
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/remote_connections.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# 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
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/server.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module ActionCable
module Server
extend ActiveSupport::Autoload
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/server/base.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "monitor"

module ActionCable
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/server/broadcasting.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# 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
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/server/configuration.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# 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
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/server/connections.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# 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
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/server/worker.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "active_support/callbacks"
require "active_support/core_ext/module/attribute_accessors_per_thread"
require "concurrent"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module ActionCable
module Server
class Worker
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/subscription_adapter.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module ActionCable
module SubscriptionAdapter
extend ActiveSupport::Autoload
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/subscription_adapter/async.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "action_cable/subscription_adapter/inline"

module ActionCable
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/subscription_adapter/base.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module ActionCable
module SubscriptionAdapter
class Base
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module ActionCable
module SubscriptionAdapter
module ChannelPrefix # :nodoc:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "thread"

gem "em-hiredis", "~> 0.3.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module ActionCable
module SubscriptionAdapter
class Inline < Base # :nodoc:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
gem "pg", "~> 0.18"
require "pg"
require "thread"
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/subscription_adapter/redis.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "thread"

gem "redis", "~> 3.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module ActionCable
module SubscriptionAdapter
class SubscriberMap
Expand Down
1 change: 0 additions & 1 deletion actioncable/lib/action_cable/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require_relative "gem_version"

module ActionCable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
module Rails
module Generators
class ChannelGenerator < NamedBase
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/channel/base_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_connection"
require "stubs/room"
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/channel/broadcasting_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_connection"
require "stubs/room"
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/channel/naming_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"

class ActionCable::Channel::NamingTest < ActiveSupport::TestCase
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/channel/periodic_timers_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_connection"
require "stubs/room"
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/channel/rejection_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_connection"
require "stubs/room"
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/channel/stream_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_connection"
require "stubs/room"
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/client_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "concurrent"

Expand Down
1 change: 0 additions & 1 deletion actioncable/test/connection/authorization_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_server"

Expand Down
1 change: 0 additions & 1 deletion actioncable/test/connection/base_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_server"
require "active_support/core_ext/object/json"
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/connection/client_socket_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_server"

Expand Down
1 change: 0 additions & 1 deletion actioncable/test/connection/cross_site_forgery_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_server"

Expand Down
1 change: 0 additions & 1 deletion actioncable/test/connection/identifier_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_server"
require "stubs/user"
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/connection/multiple_identifiers_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_server"
require "stubs/user"
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/connection/stream_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_server"

Expand Down
1 change: 0 additions & 1 deletion actioncable/test/connection/string_identifier_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_server"

Expand Down
1 change: 0 additions & 1 deletion actioncable/test/connection/subscriptions_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"

class ActionCable::Connection::SubscriptionsTest < ActionCable::TestCase
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/server/base_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_server"
require "active_support/core_ext/hash/indifferent_access"
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/server/broadcasting_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_server"

Expand Down
1 change: 0 additions & 1 deletion actioncable/test/stubs/global_id.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
class GlobalID
attr_reader :uri
delegate :to_param, :to_s, to: :uri
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/stubs/room.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
class Room
attr_reader :id, :name

Expand Down
1 change: 0 additions & 1 deletion actioncable/test/stubs/test_adapter.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
class SuccessAdapter < ActionCable::SubscriptionAdapter::Base
def broadcast(channel, payload)
end
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/stubs/test_connection.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "stubs/user"

class TestConnection
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/stubs/test_server.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "ostruct"

class TestServer
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/stubs/user.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
class User
attr_reader :name

Expand Down
1 change: 0 additions & 1 deletion actioncable/test/subscription_adapter/async_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require_relative "common"

Expand Down
1 change: 0 additions & 1 deletion actioncable/test/subscription_adapter/base_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "stubs/test_server"

Expand Down
1 change: 0 additions & 1 deletion actioncable/test/subscription_adapter/channel_prefix.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"

class ActionCable::Server::WithIndependentConfig < ActionCable::Server::Base
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/subscription_adapter/common.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require "concurrent"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require_relative "common"
require_relative "channel_prefix"
Expand Down
1 change: 0 additions & 1 deletion actioncable/test/subscription_adapter/inline_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# frozen_string_literal: true
require "test_helper"
require_relative "common"

Expand Down
Loading

0 comments on commit 87b3e22

Please sign in to comment.