anycable-rails 0.6.1 → 0.6.2

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: b31bd9ca1f658ed9a91d87a8f9e6e61a0ba6ba33c8c96b9445d2e830484548e3
4
- data.tar.gz: 0b3bc0739812916c6c06023216606baaa78efb6f2178af27d20a9ea0dc9d5697
3
+ metadata.gz: e22c0242186344df43946087c788317e068f63f5405692ca1c1ea20c5446d505
4
+ data.tar.gz: 56eecb2616a52072c5184183e69f36c5e4a9342b7ab91fee660c9b58a8aa949d
5
5
  SHA512:
6
- metadata.gz: 330e33fb5479cad54312cdae2dfb0bba80520ffaedfac781de4c4edff0825ad72ab39dc3f390732745c07963b9a849dff5e31fbc373bbf818e7e60959740a91b
7
- data.tar.gz: 8677fd2198e04aaeb55785e3632eb96d99bc28333bad791a1800401b6396f61d4f047c3ed9733d3481ac5c77d4c837553af7ae4986d73fe51bb9e7bc27d79f56
6
+ metadata.gz: 68139e784f62c206badffb130eff677d7267dd11066c054e2faccc73b3bdb69dda3490800e04d355c4038fdb803c47d220972a35fcf6bd8130753f658546b578
7
+ data.tar.gz: f22a7128655c6ef8f73fd98baa5de443b224138d5737a77bc68aa6e82e9bd606d28eb19d73c3b9f3fbeb704b60eae6d5c8382a573a2e75b83927e047899b7a47
@@ -4,13 +4,18 @@ cache: bundler
4
4
  notifications:
5
5
  email: false
6
6
 
7
+ before_install: gem install bundler -v '~> 1'
8
+
7
9
  matrix:
8
10
  include:
9
- - rvm: 2.4.3
11
+ - rvm: 2.4.5
10
12
  gemfile: Gemfile
11
- - rvm: 2.5.0
13
+ - rvm: 2.5.3
12
14
  gemfile: Gemfile
13
- - gemfile: gemfiles/rails5.gemfile
14
- - gemfile: gemfiles/railsmaster.gemfile
15
+ - rvm: 2.5.3
16
+ gemfile: gemfiles/rails5.gemfile
17
+ - rvm: 2.5.3
18
+ gemfile: gemfiles/railsmaster.gemfile
15
19
  allow_failures:
16
- - gemfile: gemfiles/railsmaster.gemfile
20
+ - rvm: 2.5.3
21
+ gemfile: gemfiles/railsmaster.gemfile
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.6.2 (2019-01-10)
6
+
7
+ - Fixed `anycable` 0.6.1 compatibility. ([@palkan][])
8
+
9
+ - Broadcast logs to STDOUT in development only when server is running. ([@palkan][])
10
+
11
+ Fixes #59.
12
+
13
+ ## 0.6.1 (2018-11-15)
14
+
5
15
  - Fix regression introduced in [e64a366e](https://github.com/anycable/anycable-rails/commit/e64a366ea21293925e0c5c0b8e6595d65d5d0981#diff-fd0e56a6e825002eac978507c3581af7R14) ([@palkan][])
6
16
 
7
17
  `Connection` patch could be loaded after `identify_by` is called, thus breaking
@@ -9,6 +19,8 @@ identifiers.
9
19
 
10
20
  ## 0.6.0 (2018-11-15)
11
21
 
22
+ **NOTE**: this version has been yanked from RubyGems due to the regression bug. Use 0.6.1.
23
+
12
24
  - [PR #56](https://github.com/anycable/anycable-rails/pull/56) Request verification based on ActionCable config. ([@DmitryTsepelev][])
13
25
 
14
26
  - Add WS server session ID to log tags if present. ([@palkan][])
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "anycable/config"
4
+
3
5
  # Extend AnyCable configuration with
4
6
  # `access_logs_disabled` options (defaults to true)
5
7
  AnyCable::Config.attr_config access_logs_disabled: true
@@ -13,14 +13,15 @@ module AnyCable
13
13
  initializer "anycable.logger", after: "action_cable.logger" do |_app|
14
14
  AnyCable.logger = ActiveSupport::TaggedLogging.new(::ActionCable.server.config.logger)
15
15
 
16
- # Broadcast logs to STDOUT in development
16
+ # Broadcast server logs to STDOUT in development
17
17
  if ::Rails.env.development? &&
18
- !ActiveSupport::Logger.logger_outputs_to?(::Rails.logger, STDOUT) &&
19
- !defined?(::Rails::Server)
20
- console = ActiveSupport::Logger.new(STDOUT)
21
- console.formatter = ::Rails.logger.formatter
22
- console.level = ::Rails.logger.level
23
- ::Rails.logger.extend(ActiveSupport::Logger.broadcast(console))
18
+ !ActiveSupport::Logger.logger_outputs_to?(::Rails.logger, STDOUT)
19
+ AnyCable.configure_server do
20
+ console = ActiveSupport::Logger.new(STDOUT)
21
+ console.formatter = ::Rails.logger.formatter
22
+ console.level = ::Rails.logger.level
23
+ AnyCable.logger.extend(ActiveSupport::Logger.broadcast(console))
24
+ end
24
25
  end
25
26
 
26
27
  # Add tagging middleware
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AnyCable
4
4
  module Rails
5
- VERSION = "0.6.1"
5
+ VERSION = "0.6.2"
6
6
  end
7
7
  end
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.6.1
4
+ version: 0.6.2
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-15 00:00:00.000000000 Z
11
+ date: 2019-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  version: '0'
199
199
  requirements: []
200
200
  rubyforge_project:
201
- rubygems_version: 2.7.7
201
+ rubygems_version: 2.7.6
202
202
  signing_key:
203
203
  specification_version: 4
204
204
  summary: Rails adapter for AnyCable