anycable-rails 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6502d9587bfab38ed0e12416741885869551926e2d8fae5282cca66ca59e97cf
4
- data.tar.gz: 7c16519ba1a470e68fbcf0d5baaa261df245d64618277f8b4b2992821d543d1c
3
+ metadata.gz: d21ee870a0caaeed44d71d571303e0e9ab835457360ee1b205279f38379716e2
4
+ data.tar.gz: 0e1f4c986782474601d40228ae272ab795bd038ad837420b9a689f74c91edfcf
5
5
  SHA512:
6
- metadata.gz: dbfe72bae1b477034e32f7bb85e3c936bef3caf03db7d54cfe126e2cccbd7cc24494ec8cd7718887f9a56a41d3dab10ec24cf30ca6c7de0bd162e1658aa143f9
7
- data.tar.gz: ba01f329e4388d4257952592f214842214432e9c211261362bf530913ace6eb3b9bc74bf2bab3e8a9446b6d7e48b9dd54a82bc44f21276506b9c743403e0afae
6
+ metadata.gz: 7cd248fd53e2f09632a9fec2e3439c788f70b96b40270480b0b519ac70738740df783afc7bf7d107bf718dfe08cf31e8880796beace87cc87b20b5aa69cf90e2
7
+ data.tar.gz: 6c8e6cedcdd61b58e0dcfd82dfa72a4f3f1e0591bb90e27ef7b8b5c10bbe51a37163f83b12daba720f64f9519cbeadb9fbcb24e9d9af5ec84e988faa1cc54ad0
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 1.2.1 (2021-01-31)
6
+
7
+ - Add a temporary fix to be compatible with `sentry-rails`. ([@palkan][])
8
+
9
+ See [#165](https://github.com/anycable/anycable-rails/issues/165).
10
+
11
+ - Run embedded RPC server only if `any_cable` adapter is used for Action Cable. ([@palkan][])
12
+
5
13
  ## 1.2.0 (2021-12-21) 🎄
6
14
 
7
15
  - Drop Rails 5 support.
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2017-2021 palkan
1
+ Copyright 2017-2022 palkan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -60,10 +60,17 @@ module AnyCable
60
60
  end
61
61
  end
62
62
 
63
+ # Temp hack to fix Sentry vs AnyCable incompatibility
64
+ # See https://github.com/anycable/anycable-rails/issues/165
65
+ initializer "anycable.sentry_hack", after: :"sentry.extend_action_cable" do
66
+ next unless defined?(::Sentry::Rails::ActionCableExtensions::Connection)
67
+ Sentry::Rails::ActionCableExtensions::Connection.send :public, :handle_open, :handle_close
68
+ end
69
+
63
70
  # Since Rails 6.1
64
71
  if respond_to?(:server)
65
72
  server do
66
- next unless AnyCable.config.embedded?
73
+ next unless AnyCable.config.embedded? && AnyCable::Rails.enabled?
67
74
 
68
75
  require "anycable/cli"
69
76
  AnyCable::CLI.embed!
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AnyCable
4
4
  module Rails
5
- VERSION = "1.2.0"
5
+ VERSION = "1.2.1"
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: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - palkan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-21 00:00:00.000000000 Z
11
+ date: 2022-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anycable