actioncable 6.0.0.beta2 → 6.0.2.rc1

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: d61cfd8a951dcbc35e2450a62475a6dea2dc059ebb51d3d21a648ccd9d818c9c
4
- data.tar.gz: 30e24d4dd9dbcfdb6ac4ebbe819a0f0308eeb5eedd727b0c6598bc47effb3453
3
+ metadata.gz: 1510c10e2a3532cef1fbed3af3a0af73a17f73f3c201e4caf29bd09b89f4d51d
4
+ data.tar.gz: c7562deb5da835610d5a0f636924e8a6abde4416f1b553b7b647bfdb021c6a11
5
5
  SHA512:
6
- metadata.gz: 95e30afea43f44945441516e8c31addc44e18bce6ded0f8c7cfbaf0822a2085709d2e57913e8ca6bfc126c8504ac4bf32a20a8fda5e81ef91bbb3627919a5bfe
7
- data.tar.gz: 92ee404ecb7decd93082644943614a8d1a9568d34c9dc185cdeb7030603694c7e665e7f07e64c30c7a7fad47a039b6c8be545a216ec6bc41b44b84d5fa679bac
6
+ metadata.gz: 7cc27a282adb5ed7b149dfa1dcf1158a1ed8586540cd3f578d3f6bd16596742412e0dd790174f2927fe9742681d9581eb17342535a4bb0822bfcd4e0e35cba66
7
+ data.tar.gz: e41d557323561aa1bcc86acc17f48a768a90c2c1d9435b7c448d29d5e285a86df71d423d17d1e5016324c8bc50a9a95514e840aa4d02b73fb04f3ce57b46b16c
@@ -1,3 +1,33 @@
1
+ ## Rails 6.0.2.rc1 (November 27, 2019) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 6.0.1 (November 5, 2019) ##
7
+
8
+ * No changes.
9
+
10
+
11
+ ## Rails 6.0.0 (August 16, 2019) ##
12
+
13
+ * No changes.
14
+
15
+
16
+ ## Rails 6.0.0.rc2 (July 22, 2019) ##
17
+
18
+ * No changes.
19
+
20
+
21
+ ## Rails 6.0.0.rc1 (April 24, 2019) ##
22
+
23
+ * No changes.
24
+
25
+
26
+ ## Rails 6.0.0.beta3 (March 11, 2019) ##
27
+
28
+ * No changes.
29
+
30
+
1
31
  ## Rails 6.0.0.beta2 (February 25, 2019) ##
2
32
 
3
33
  * PostgreSQL subscription adapters now support `channel_prefix` option in cable.yml
data/README.md CHANGED
@@ -13,7 +13,7 @@ You can read more about Action Cable in the [Action Cable Overview](https://edge
13
13
 
14
14
  API documentation is at:
15
15
 
16
- * http://api.rubyonrails.org
16
+ * https://api.rubyonrails.org
17
17
 
18
18
  Bug reports for the Ruby on Rails project can be filed here:
19
19
 
@@ -28,6 +28,22 @@
28
28
  throw new TypeError("Cannot call a class as a function");
29
29
  }
30
30
  };
31
+ var createClass = function() {
32
+ function defineProperties(target, props) {
33
+ for (var i = 0; i < props.length; i++) {
34
+ var descriptor = props[i];
35
+ descriptor.enumerable = descriptor.enumerable || false;
36
+ descriptor.configurable = true;
37
+ if ("value" in descriptor) descriptor.writable = true;
38
+ Object.defineProperty(target, descriptor.key, descriptor);
39
+ }
40
+ }
41
+ return function(Constructor, protoProps, staticProps) {
42
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
43
+ if (staticProps) defineProperties(Constructor, staticProps);
44
+ return Constructor;
45
+ };
46
+ }();
31
47
  var now = function now() {
32
48
  return new Date().getTime();
33
49
  };
@@ -432,7 +448,7 @@
432
448
  var Consumer = function() {
433
449
  function Consumer(url) {
434
450
  classCallCheck(this, Consumer);
435
- this.url = url;
451
+ this._url = url;
436
452
  this.subscriptions = new Subscriptions(this);
437
453
  this.connection = new Connection(this);
438
454
  }
@@ -452,19 +468,18 @@
452
468
  return this.connection.open();
453
469
  }
454
470
  };
471
+ createClass(Consumer, [ {
472
+ key: "url",
473
+ get: function get$$1() {
474
+ return createWebSocketURL(this._url);
475
+ }
476
+ } ]);
455
477
  return Consumer;
456
478
  }();
457
- function createConsumer() {
458
- var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getConfig("url") || INTERNAL.default_mount_path;
459
- return new Consumer(createWebSocketURL(url));
460
- }
461
- function getConfig(name) {
462
- var element = document.head.querySelector("meta[name='action-cable-" + name + "']");
463
- if (element) {
464
- return element.getAttribute("content");
465
- }
466
- }
467
479
  function createWebSocketURL(url) {
480
+ if (typeof url === "function") {
481
+ url = url();
482
+ }
468
483
  if (url && !/^wss?:/i.test(url)) {
469
484
  var a = document.createElement("a");
470
485
  a.href = url;
@@ -475,6 +490,16 @@
475
490
  return url;
476
491
  }
477
492
  }
493
+ function createConsumer() {
494
+ var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getConfig("url") || INTERNAL.default_mount_path;
495
+ return new Consumer(url);
496
+ }
497
+ function getConfig(name) {
498
+ var element = document.head.querySelector("meta[name='action-cable-" + name + "']");
499
+ if (element) {
500
+ return element.getAttribute("content");
501
+ }
502
+ }
478
503
  exports.Connection = Connection;
479
504
  exports.ConnectionMonitor = ConnectionMonitor;
480
505
  exports.Consumer = Consumer;
@@ -482,10 +507,10 @@
482
507
  exports.Subscription = Subscription;
483
508
  exports.Subscriptions = Subscriptions;
484
509
  exports.adapters = adapters;
510
+ exports.createWebSocketURL = createWebSocketURL;
485
511
  exports.logger = logger;
486
512
  exports.createConsumer = createConsumer;
487
513
  exports.getConfig = getConfig;
488
- exports.createWebSocketURL = createWebSocketURL;
489
514
  Object.defineProperty(exports, "__esModule", {
490
515
  value: true
491
516
  });
@@ -176,7 +176,7 @@ module ActionCable
176
176
  #
177
177
  # Accepts request path as the first argument and the following request options:
178
178
  #
179
- # - params – url parameters (Hash)
179
+ # - params – URL parameters (Hash)
180
180
  # - headers – request headers (Hash)
181
181
  # - session – session data (Hash)
182
182
  # - env – additional Rack env configuration (Hash)
@@ -9,8 +9,8 @@ module ActionCable
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 0
12
- TINY = 0
13
- PRE = "beta2"
12
+ TINY = 2
13
+ PRE = "rc1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -5,6 +5,8 @@ require "thread"
5
5
  gem "redis", ">= 3", "< 5"
6
6
  require "redis"
7
7
 
8
+ require "active_support/core_ext/hash/except"
9
+
8
10
  module ActionCable
9
11
  module SubscriptionAdapter
10
12
  class Redis < Base # :nodoc:
@@ -14,7 +16,7 @@ module ActionCable
14
16
  # This is needed, for example, when using Makara proxies for distributed Redis.
15
17
  cattr_accessor :redis_connector, default: ->(config) do
16
18
  config[:id] ||= "ActionCable-PID-#{$$}"
17
- ::Redis.new(config.slice(:url, :host, :port, :db, :password, :id))
19
+ ::Redis.new(config.except(:adapter, :channel_prefix))
18
20
  end
19
21
 
20
22
  def initialize(*)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actioncable
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0.beta2
4
+ version: 6.0.2.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pratik Naik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-02-25 00:00:00.000000000 Z
12
+ date: 2019-11-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 6.0.0.beta2
20
+ version: 6.0.2.rc1
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 6.0.0.beta2
27
+ version: 6.0.2.rc1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: nio4r
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -121,12 +121,15 @@ files:
121
121
  - lib/rails/generators/channel/templates/javascript/index.js.tt
122
122
  - lib/rails/generators/test_unit/channel_generator.rb
123
123
  - lib/rails/generators/test_unit/templates/channel_test.rb.tt
124
- homepage: http://rubyonrails.org
124
+ homepage: https://rubyonrails.org
125
125
  licenses:
126
126
  - MIT
127
127
  metadata:
128
- source_code_uri: https://github.com/rails/rails/tree/v6.0.0.beta2/actioncable
129
- changelog_uri: https://github.com/rails/rails/blob/v6.0.0.beta2/actioncable/CHANGELOG.md
128
+ bug_tracker_uri: https://github.com/rails/rails/issues
129
+ changelog_uri: https://github.com/rails/rails/blob/v6.0.2.rc1/actioncable/CHANGELOG.md
130
+ documentation_uri: https://api.rubyonrails.org/v6.0.2.rc1/
131
+ mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
132
+ source_code_uri: https://github.com/rails/rails/tree/v6.0.2.rc1/actioncable
130
133
  post_install_message:
131
134
  rdoc_options: []
132
135
  require_paths:
@@ -142,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
145
  - !ruby/object:Gem::Version
143
146
  version: 1.3.1
144
147
  requirements: []
145
- rubygems_version: 3.0.1
148
+ rubygems_version: 3.0.3
146
149
  signing_key:
147
150
  specification_version: 4
148
151
  summary: WebSocket framework for Rails.