anycable-rails 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 604f3f35960b7b09eeea77515e08d71b04acb91b0f2f52a6eb7fa2b47b55197b
|
4
|
+
data.tar.gz: '0155183ce76772b8265dca491fa79bb839614d15a5d7acd7162497263f1d4aa6'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a9acea2bfbbc3a58dd5bb790b5c10be8b85b87c89dcfd09819fe5e19502192e98ae7bf33d53ed835f9eafc8832c5f73b2502189cb9fe9df4207a11ceca5a0e9
|
7
|
+
data.tar.gz: d677af8ba032eecc616207640fc3682cc3b3dfe9def96e79973cdad1df05535201d7b95302660d687a6f45bd698591a35d699d4f0141e3115924bda6c16abf8b
|
data/CHANGELOG.md
CHANGED
data/anycable-rails.gemspec
CHANGED
@@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency "rspec", ">= 3.4"
|
27
27
|
spec.add_development_dependency "ammeter", "~> 1.1"
|
28
28
|
spec.add_development_dependency "simplecov", ">= 0.3.8"
|
29
|
-
spec.add_development_dependency "rubocop", "
|
29
|
+
spec.add_development_dependency "rubocop", "~> 0.57.0"
|
30
30
|
spec.add_development_dependency "pry-byebug"
|
31
31
|
end
|
@@ -6,6 +6,7 @@ require "anycable/rails/actioncable/channel"
|
|
6
6
|
|
7
7
|
module ActionCable
|
8
8
|
module Connection
|
9
|
+
# rubocop:disable Metrics/ClassLength
|
9
10
|
class Base # :nodoc:
|
10
11
|
using Anycable::Refinements::Subscriptions
|
11
12
|
|
@@ -13,7 +14,7 @@ module ActionCable
|
|
13
14
|
|
14
15
|
class << self
|
15
16
|
def call(socket, **options)
|
16
|
-
new(socket,
|
17
|
+
new(socket, options)
|
17
18
|
end
|
18
19
|
|
19
20
|
def identified_by(*identifiers)
|
@@ -136,5 +137,6 @@ module ActionCable
|
|
136
137
|
Anycable.config.access_logs_disabled == false
|
137
138
|
end
|
138
139
|
end
|
140
|
+
# rubocop:enable Metrics/ClassLength
|
139
141
|
end
|
140
142
|
end
|
@@ -29,7 +29,8 @@ module Anycable
|
|
29
29
|
|
30
30
|
# Broadcast logs to STDOUT in development
|
31
31
|
if ::Rails.env.development? &&
|
32
|
-
!ActiveSupport::Logger.logger_outputs_to?(::Rails.logger, STDOUT)
|
32
|
+
!ActiveSupport::Logger.logger_outputs_to?(::Rails.logger, STDOUT) &&
|
33
|
+
!defined?(::Rails::Server)
|
33
34
|
console = ActiveSupport::Logger.new(STDOUT)
|
34
35
|
console.formatter = ::Rails.logger.formatter
|
35
36
|
console.level = ::Rails.logger.level
|
@@ -3,7 +3,7 @@
|
|
3
3
|
require "rails/generators/base"
|
4
4
|
|
5
5
|
class AnycableGenerator < Rails::Generators::Base # :nodoc:
|
6
|
-
source_root File.expand_path('
|
6
|
+
source_root File.expand_path('templates', __dir__)
|
7
7
|
|
8
8
|
def create_executable_file
|
9
9
|
template "script", "bin/anycable"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anycable-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- palkan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -112,16 +112,16 @@ dependencies:
|
|
112
112
|
name: rubocop
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 0.57.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 0.57.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: pry-byebug
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
version: '0'
|
193
193
|
requirements: []
|
194
194
|
rubyforge_project:
|
195
|
-
rubygems_version: 2.7.
|
195
|
+
rubygems_version: 2.7.6
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: Rails adapter for AnyCable
|