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: bcdcb3ba12a6f1b8366c5b3258135198fe6e30d30daa90401f9e826aded2464d
4
- data.tar.gz: 47cf4a2661e21dff58c8a824968e9054eb45669d2a22c5f20eaaefc2ebf564af
3
+ metadata.gz: 604f3f35960b7b09eeea77515e08d71b04acb91b0f2f52a6eb7fa2b47b55197b
4
+ data.tar.gz: '0155183ce76772b8265dca491fa79bb839614d15a5d7acd7162497263f1d4aa6'
5
5
  SHA512:
6
- metadata.gz: 9956b15de7712c4d71fff95c05fa0582f500955fa4cc7d6bbb4a586715118af8532516a4a6b853552e71e82b08017278a571fc42f87bcd2e7a171c52d7b30b1a
7
- data.tar.gz: f43d521934283f60770acd972f0500ee582ab3424f98cc172735a7d8d5d5fde0d1061023fdc77d4ca08617440de0ca5b58be34aa258cb1efbc20e50393f38765
6
+ metadata.gz: 7a9acea2bfbbc3a58dd5bb790b5c10be8b85b87c89dcfd09819fe5e19502192e98ae7bf33d53ed835f9eafc8832c5f73b2502189cb9fe9df4207a11ceca5a0e9
7
+ data.tar.gz: d677af8ba032eecc616207640fc3682cc3b3dfe9def96e79973cdad1df05535201d7b95302660d687a6f45bd698591a35d699d4f0141e3115924bda6c16abf8b
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.5.4 (2018-06-13)
6
+
7
+ - Fix duplicate logs in development. ([@palkan][])
8
+
9
+ Fixes https://github.com/anycable/anycable_demo/issues/5.
10
+
5
11
  ## 0.5.3
6
12
 
7
13
  - Fix return value of `Connection#handle_close`. ([@palkan][])
@@ -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", ">= 0.50"
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, **options)
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Anycable
4
4
  module Rails
5
- VERSION = "0.5.3"
5
+ VERSION = "0.5.4"
6
6
  end
7
7
  end
@@ -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('../templates', __FILE__)
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.3
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-03-02 00:00:00.000000000 Z
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: '0.50'
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: '0.50'
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.4
195
+ rubygems_version: 2.7.6
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Rails adapter for AnyCable