cable_ready 4.0.8 → 4.2.0

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: ae0c3f85371453e8fd03d33b157a35ec8a3fdb2cf50dd3c1f0b1cf59073c7ca5
4
- data.tar.gz: 9d12e6bf55aed8a0e419d0b0f8d7abde22cea11e529f03a956596d35e020afcb
3
+ metadata.gz: e576813856258661e5734171c7b318a2cb175555380b930ecd7e39070c8ccf0c
4
+ data.tar.gz: 3a1523ab640bade41097d06b92e9ee30280c6cab87b5a76b0d213107e096d289
5
5
  SHA512:
6
- metadata.gz: 69386e5cd74b5852ebc95de7d236b7f791fd9bc1ef127815df929cea8491899a0e1ea991bc92e7cfff5f7df3de3ffc20bf9fb21d36c9463619b055e419959766
7
- data.tar.gz: e00ec01c81d4adf99ccd5657fcc0f5fc531c53f1a035cebeb1204543e3857ab4f7fd02d0e83d32859bdc4d480d7276c97283875f218af89aad067725e1916b88
6
+ metadata.gz: 5a28688ca371e11cb503f6fcd7e390911488885ee50bae435963eaa42f4d641568766470121d7b7c7bf2d90d1a74dd48faa52c9a22a860fa1d91d26cf059b17f
7
+ data.tar.gz: 74a88801ef990880f5d8d2724f9f37cdf510a195979474d1f78ea15d73b2dfe4e9ff26c99dca4638cf916d5f5162c6aad4ad9b5c711157f7c93138459f311dc1
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "https://rubygems.org"
2
4
 
3
5
  # Specify your gem's dependencies in cable_ready.gemspec
@@ -1,79 +1,78 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cable_ready (4.0.8)
4
+ cable_ready (4.2.0)
5
5
  rails (>= 5.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (6.0.0)
11
- actionpack (= 6.0.0)
10
+ actioncable (6.0.3.1)
11
+ actionpack (= 6.0.3.1)
12
12
  nio4r (~> 2.0)
13
13
  websocket-driver (>= 0.6.1)
14
- actionmailbox (6.0.0)
15
- actionpack (= 6.0.0)
16
- activejob (= 6.0.0)
17
- activerecord (= 6.0.0)
18
- activestorage (= 6.0.0)
19
- activesupport (= 6.0.0)
14
+ actionmailbox (6.0.3.1)
15
+ actionpack (= 6.0.3.1)
16
+ activejob (= 6.0.3.1)
17
+ activerecord (= 6.0.3.1)
18
+ activestorage (= 6.0.3.1)
19
+ activesupport (= 6.0.3.1)
20
20
  mail (>= 2.7.1)
21
- actionmailer (6.0.0)
22
- actionpack (= 6.0.0)
23
- actionview (= 6.0.0)
24
- activejob (= 6.0.0)
21
+ actionmailer (6.0.3.1)
22
+ actionpack (= 6.0.3.1)
23
+ actionview (= 6.0.3.1)
24
+ activejob (= 6.0.3.1)
25
25
  mail (~> 2.5, >= 2.5.4)
26
26
  rails-dom-testing (~> 2.0)
27
- actionpack (6.0.0)
28
- actionview (= 6.0.0)
29
- activesupport (= 6.0.0)
30
- rack (~> 2.0)
27
+ actionpack (6.0.3.1)
28
+ actionview (= 6.0.3.1)
29
+ activesupport (= 6.0.3.1)
30
+ rack (~> 2.0, >= 2.0.8)
31
31
  rack-test (>= 0.6.3)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
- actiontext (6.0.0)
35
- actionpack (= 6.0.0)
36
- activerecord (= 6.0.0)
37
- activestorage (= 6.0.0)
38
- activesupport (= 6.0.0)
34
+ actiontext (6.0.3.1)
35
+ actionpack (= 6.0.3.1)
36
+ activerecord (= 6.0.3.1)
37
+ activestorage (= 6.0.3.1)
38
+ activesupport (= 6.0.3.1)
39
39
  nokogiri (>= 1.8.5)
40
- actionview (6.0.0)
41
- activesupport (= 6.0.0)
40
+ actionview (6.0.3.1)
41
+ activesupport (= 6.0.3.1)
42
42
  builder (~> 3.1)
43
43
  erubi (~> 1.4)
44
44
  rails-dom-testing (~> 2.0)
45
45
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
- activejob (6.0.0)
47
- activesupport (= 6.0.0)
46
+ activejob (6.0.3.1)
47
+ activesupport (= 6.0.3.1)
48
48
  globalid (>= 0.3.6)
49
- activemodel (6.0.0)
50
- activesupport (= 6.0.0)
51
- activerecord (6.0.0)
52
- activemodel (= 6.0.0)
53
- activesupport (= 6.0.0)
54
- activestorage (6.0.0)
55
- actionpack (= 6.0.0)
56
- activejob (= 6.0.0)
57
- activerecord (= 6.0.0)
49
+ activemodel (6.0.3.1)
50
+ activesupport (= 6.0.3.1)
51
+ activerecord (6.0.3.1)
52
+ activemodel (= 6.0.3.1)
53
+ activesupport (= 6.0.3.1)
54
+ activestorage (6.0.3.1)
55
+ actionpack (= 6.0.3.1)
56
+ activejob (= 6.0.3.1)
57
+ activerecord (= 6.0.3.1)
58
58
  marcel (~> 0.3.1)
59
- activesupport (6.0.0)
59
+ activesupport (6.0.3.1)
60
60
  concurrent-ruby (~> 1.0, >= 1.0.2)
61
61
  i18n (>= 0.7, < 2)
62
62
  minitest (~> 5.1)
63
63
  tzinfo (~> 1.1)
64
- zeitwerk (~> 2.1, >= 2.1.8)
64
+ zeitwerk (~> 2.2, >= 2.2.2)
65
65
  ast (2.4.0)
66
- builder (3.2.3)
67
- coderay (1.1.2)
68
- concurrent-ruby (1.1.5)
69
- crass (1.0.5)
66
+ builder (3.2.4)
67
+ coderay (1.1.3)
68
+ concurrent-ruby (1.1.6)
69
+ crass (1.0.6)
70
70
  erubi (1.9.0)
71
71
  globalid (0.4.2)
72
72
  activesupport (>= 4.2.0)
73
- i18n (1.7.0)
73
+ i18n (1.8.2)
74
74
  concurrent-ruby (~> 1.0)
75
- jaro_winkler (1.5.4)
76
- loofah (2.3.1)
75
+ loofah (2.5.0)
77
76
  crass (~> 1.0.2)
78
77
  nokogiri (>= 1.5.9)
79
78
  mail (2.7.1)
@@ -81,60 +80,61 @@ GEM
81
80
  marcel (0.3.3)
82
81
  mimemagic (~> 0.3.2)
83
82
  method_source (0.9.2)
84
- mimemagic (0.3.3)
83
+ mimemagic (0.3.5)
85
84
  mini_mime (1.0.2)
86
85
  mini_portile2 (2.4.0)
87
- minitest (5.13.0)
86
+ minitest (5.14.1)
88
87
  nio4r (2.5.2)
89
- nokogiri (1.10.5)
88
+ nokogiri (1.10.9)
90
89
  mini_portile2 (~> 2.4.0)
91
- parallel (1.18.0)
92
- parser (2.6.5.0)
90
+ parallel (1.19.1)
91
+ parser (2.7.1.3)
93
92
  ast (~> 2.4.0)
94
93
  pry (0.12.2)
95
94
  coderay (~> 1.1.0)
96
95
  method_source (~> 0.9.0)
97
96
  pry-nav (0.3.0)
98
97
  pry (>= 0.9.10, < 0.13.0)
99
- rack (2.0.7)
98
+ rack (2.2.2)
100
99
  rack-test (1.1.0)
101
100
  rack (>= 1.0, < 3)
102
- rails (6.0.0)
103
- actioncable (= 6.0.0)
104
- actionmailbox (= 6.0.0)
105
- actionmailer (= 6.0.0)
106
- actionpack (= 6.0.0)
107
- actiontext (= 6.0.0)
108
- actionview (= 6.0.0)
109
- activejob (= 6.0.0)
110
- activemodel (= 6.0.0)
111
- activerecord (= 6.0.0)
112
- activestorage (= 6.0.0)
113
- activesupport (= 6.0.0)
101
+ rails (6.0.3.1)
102
+ actioncable (= 6.0.3.1)
103
+ actionmailbox (= 6.0.3.1)
104
+ actionmailer (= 6.0.3.1)
105
+ actionpack (= 6.0.3.1)
106
+ actiontext (= 6.0.3.1)
107
+ actionview (= 6.0.3.1)
108
+ activejob (= 6.0.3.1)
109
+ activemodel (= 6.0.3.1)
110
+ activerecord (= 6.0.3.1)
111
+ activestorage (= 6.0.3.1)
112
+ activesupport (= 6.0.3.1)
114
113
  bundler (>= 1.3.0)
115
- railties (= 6.0.0)
114
+ railties (= 6.0.3.1)
116
115
  sprockets-rails (>= 2.0.0)
117
116
  rails-dom-testing (2.0.3)
118
117
  activesupport (>= 4.2.0)
119
118
  nokogiri (>= 1.6)
120
119
  rails-html-sanitizer (1.3.0)
121
120
  loofah (~> 2.3)
122
- railties (6.0.0)
123
- actionpack (= 6.0.0)
124
- activesupport (= 6.0.0)
121
+ railties (6.0.3.1)
122
+ actionpack (= 6.0.3.1)
123
+ activesupport (= 6.0.3.1)
125
124
  method_source
126
125
  rake (>= 0.8.7)
127
126
  thor (>= 0.20.3, < 2.0)
128
127
  rainbow (3.0.0)
129
- rake (13.0.0)
130
- rubocop (0.75.1)
131
- jaro_winkler (~> 1.5.1)
128
+ rake (13.0.1)
129
+ rexml (3.2.4)
130
+ rubocop (0.83.0)
132
131
  parallel (~> 1.10)
133
- parser (>= 2.6)
132
+ parser (>= 2.7.0.1)
134
133
  rainbow (>= 2.2.2, < 4.0)
134
+ rexml
135
135
  ruby-progressbar (~> 1.7)
136
- unicode-display_width (>= 1.4.0, < 1.7)
137
- rubocop-performance (1.5.0)
136
+ unicode-display_width (>= 1.4.0, < 2.0)
137
+ rubocop-performance (1.5.2)
138
138
  rubocop (>= 0.71.0)
139
139
  ruby-progressbar (1.10.1)
140
140
  sprockets (4.0.0)
@@ -144,20 +144,20 @@ GEM
144
144
  actionpack (>= 4.0)
145
145
  activesupport (>= 4.0)
146
146
  sprockets (>= 3.0.0)
147
- standard (0.1.5)
148
- rubocop (~> 0.75.0)
149
- rubocop-performance (~> 1.5.0)
147
+ standard (0.4.6)
148
+ rubocop (~> 0.83.0)
149
+ rubocop-performance (~> 1.5.2)
150
150
  standardrb (1.0.0)
151
151
  standard
152
- thor (0.20.3)
152
+ thor (1.0.1)
153
153
  thread_safe (0.3.6)
154
- tzinfo (1.2.5)
154
+ tzinfo (1.2.7)
155
155
  thread_safe (~> 0.1)
156
- unicode-display_width (1.6.0)
157
- websocket-driver (0.7.1)
156
+ unicode-display_width (1.7.0)
157
+ websocket-driver (0.7.2)
158
158
  websocket-extensions (>= 0.1.0)
159
159
  websocket-extensions (0.1.4)
160
- zeitwerk (2.2.1)
160
+ zeitwerk (2.3.0)
161
161
 
162
162
  PLATFORMS
163
163
  ruby
@@ -170,4 +170,4 @@ DEPENDENCIES
170
170
  standardrb
171
171
 
172
172
  BUNDLED WITH
173
- 1.16.6
173
+ 2.1.4
data/README.md CHANGED
@@ -1,24 +1,69 @@
1
- [![Lines of Code](http://img.shields.io/badge/lines_of_code-267-brightgreen.svg?style=flat)](http://blog.codinghorror.com/the-best-code-is-no-code-at-all/)
2
- [![Maintainability](https://api.codeclimate.com/v1/badges/83ddf1fee4af7e51a681/maintainability)](https://codeclimate.com/github/hopsoft/cable_ready/maintainability)
3
- ![Prettier-Standard](https://github.com/hopsoft/cable_ready/workflows/Prettier-Standard/badge.svg)
4
- ![StandardRB](https://github.com/hopsoft/cable_ready/workflows/StandardRB/badge.svg)
5
-
6
- # CableReady
7
-
8
- ## Out-of-Band Server Triggered DOM Operations
9
-
10
- CableReady provides a simple interface for triggering client-side DOM operations
11
- from the server via [ActionCable](http://guides.rubyonrails.org/action_cable_overview.html).
1
+ <p align="center">
2
+ <img src="assets/cable-ready-logo-with-copy.svg" width="360" />
3
+ <h1 align="center">Welcome to CableReady 👋</h1>
4
+ <p align="center">
5
+ <img src="https://img.shields.io/gem/v/cable_ready.svg?color=red" />
6
+ <img src="https://img.shields.io/npm/v/cable_ready.svg?color=blue" />
7
+ <a href="https://www.npmjs.com/package/cable_ready">
8
+ <img alt="downloads" src="https://img.shields.io/npm/dm/cable_ready.svg?color=blue" target="_blank" />
9
+ </a>
10
+ <a href="https://github.com/hopsoft/cable_ready/blob/master/LICENSE">
11
+ <img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-brightgreen.svg" target="_blank" />
12
+ </a>
13
+ <a href="http://blog.codinghorror.com/the-best-code-is-no-code-at-all/" target="_blank">
14
+ <img alt="Lines of Code" src="https://img.shields.io/badge/lines_of_code-344-brightgreen.svg?style=flat" />
15
+ </a>
16
+ <a href="https://cableready.stimulusreflex.com" target="_blank">
17
+ <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
18
+ </a>
19
+ <br />
20
+ <a href="#badge">
21
+ <img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
22
+ </a>
23
+ <a href="https://github.com/testdouble/standard" target="_blank">
24
+ <img alt="Ruby Code Style" src="https://img.shields.io/badge/Ruby_Code_Style-standard-brightgreen.svg" />
25
+ </a>
26
+ <a href="https://github.com/sheerun/prettier-standard" target="_blank">
27
+ <img alt="JavaScript Code Style" src="https://img.shields.io/badge/JavaScript_Code_Style-prettier_standard-ff69b4.svg" />
28
+ </a>
29
+ <br />
30
+ <a href="https://codeclimate.com/github/hopsoft/cable_ready/maintainability" target="_blank">
31
+ <img alt="Maintainability" src="https://api.codeclimate.com/v1/badges/83ddf1fee4af7e51a681/maintainability" />
32
+ </a>
33
+ <a target="_blank" rel="noopener noreferrer" href="https://github.com/hopsoft/cable_ready/workflows/Prettier-Standard/badge.svg">
34
+ <img src="https://github.com/hopsoft/cable_ready/workflows/Prettier-Standard/badge.svg" alt="Prettier-Standard" style="max-width:100%;">
35
+ </a>
36
+ <a target="_blank" rel="noopener noreferrer" href="https://github.com/hopsoft/cable_ready/workflows/StandardRB/badge.svg">
37
+ <img src="https://github.com/hopsoft/cable_ready/workflows/StandardRB/badge.svg" alt="StandardRB" style="max-width:100%;">
38
+ </a>
39
+ </p>
40
+ </p>
41
+ <br />
42
+
43
+ CableReady helps you create great real-time user experiences by making it simple to trigger client-side DOM changes from server-side Ruby. It establishes a standard for interacting with the client via ActionCable web sockets. No need for custom JavaScript.
12
44
 
13
45
  Please read the official [ActionCable docs](http://guides.rubyonrails.org/action_cable_overview.html)
14
46
  to learn more about ActionCable before proceeding.
15
47
 
16
- ## Docs
48
+ ## 📚 Docs
17
49
 
18
50
  - [Official Documentation](https://cableready.stimulusreflex.com)
19
51
  - [Documentation Source Code](https://github.com/hopsoft/cable_ready/tree/master/docs)
20
52
 
21
- ## Contributing
53
+ ## 💙 Community
54
+
55
+ - [Discord](https://discord.gg/XveN625) - chat root
56
+
57
+ ## 🚀 Install
58
+
59
+ ```sh
60
+ bundle add cable_ready && yarn add cable_ready
61
+ ```
62
+
63
+ Checkout the [documentation](https://cableready.stimulusreflex.com) to continue!
64
+
65
+
66
+ ## 🙏 Contributing
22
67
 
23
68
  ### Code of Conduct
24
69
 
@@ -31,7 +76,7 @@ and [prettier-standard](https://github.com/sheerun/prettier-standard) to minimiz
31
76
 
32
77
  Please run `./bin/standardize` prior submitting pull requests.
33
78
 
34
- ### Releasing
79
+ ### 📦 Releasing
35
80
 
36
81
  1. Bump version number at `lib/cable_ready/version.rb`
37
82
  1. Run `rake build`
@@ -39,6 +84,6 @@ Please run `./bin/standardize` prior submitting pull requests.
39
84
  1. Change directories `cd ./javascript`
40
85
  1. Run `yarn publish` - NOTE: this will throw a fatal error because the tag already exists but the package will still publish
41
86
 
42
- ## License
87
+ ## 📝 License
43
88
 
44
89
  CableReady is released under the [MIT License](LICENSE.txt).
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
4
 
3
5
  task default: [:test]
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "rails/engine"
2
4
  require "active_support/all"
3
5
  require "cable_ready/version"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "channels"
2
4
 
3
5
  module CableReady
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CableReady
2
4
  class Channel
3
5
  attr_reader :name, :operations
@@ -5,6 +7,13 @@ module CableReady
5
7
  # Example Operations Payload:
6
8
  #
7
9
  # {
10
+ # # Cookies .....................................................................................................
11
+ #
12
+ # set_cookie: [
13
+ # {cookie: "example=value; path=/; expires=Sat, 07 Mar 2020 16:19:19 GMT"},
14
+ # ...
15
+ # ]
16
+ #
8
17
  # # DOM Events ..................................................................................................
9
18
  #
10
19
  # dispatch_event: [{
@@ -58,6 +67,12 @@ module CableReady
58
67
  # focus_selector: "string,
59
68
  # }, ...],
60
69
  #
70
+ # set_property: [{
71
+ # name: "string",
72
+ # selector: "string",
73
+ # value: "string"
74
+ # }, ...],
75
+ #
61
76
  # set_value: [{
62
77
  # selector: "string",
63
78
  # value: "string"
@@ -88,6 +103,14 @@ module CableReady
88
103
  # name: "string"
89
104
  # }, ...],
90
105
  #
106
+ # # Style Mutations ...........................................................................................
107
+ #
108
+ # set_style: [{
109
+ # selector: "string",
110
+ # name: "string",
111
+ # value: "string"
112
+ # }, ...],
113
+ #
91
114
  # # Dataset Mutations ...........................................................................................
92
115
  #
93
116
  # set_dataset_property: [{
@@ -112,80 +135,100 @@ module CableReady
112
135
  clear
113
136
  end
114
137
 
138
+ def set_cookie(value)
139
+ add_operation(:set_cookie, {cookie: value})
140
+ end
141
+
115
142
  def dispatch_event(options = {})
116
- operations[:dispatch_event] << options
143
+ add_operation(:dispatch_event, options)
117
144
  end
118
145
 
119
146
  def morph(options = {})
120
- operations[:morph] << options
147
+ add_operation(:morph, options)
121
148
  end
122
149
 
123
150
  def inner_html(options = {})
124
- operations[:inner_html] << options
151
+ add_operation(:inner_html, options)
125
152
  end
126
153
 
127
154
  def outer_html(options = {})
128
- operations[:outer_html] << options
155
+ add_operation(:outer_html, options)
129
156
  end
130
157
 
131
158
  def text_content(options = {})
132
- operations[:text_content] << options
159
+ add_operation(:text_content, options)
133
160
  end
134
161
 
135
162
  def insert_adjacent_html(options = {})
136
- operations[:insert_adjacent_html] << options
163
+ add_operation(:insert_adjacent_html, options)
137
164
  end
138
165
 
139
166
  def insert_adjacent_text(options = {})
140
- operations[:insert_adjacent_text] << options
167
+ add_operation(:insert_adjacent_text, options)
141
168
  end
142
169
 
143
170
  def remove(options = {})
144
- operations[:remove] << options
171
+ add_operation(:remove, options)
172
+ end
173
+
174
+ def set_property(options = {})
175
+ add_operation(:set_property, options)
145
176
  end
146
177
 
147
178
  def set_value(options = {})
148
- operations[:set_value] << options
179
+ add_operation(:set_value, options)
149
180
  end
150
181
 
151
182
  def set_attribute(options = {})
152
- operations[:set_attribute] << options
183
+ add_operation(:set_attribute, options)
153
184
  end
154
185
 
155
186
  def remove_attribute(options = {})
156
- operations[:remove_attribute] << options
187
+ add_operation(:remove_attribute, options)
157
188
  end
158
189
 
159
190
  def add_css_class(options = {})
160
- operations[:add_css_class] << options
191
+ add_operation(:add_css_class, options)
161
192
  end
162
193
 
163
194
  def remove_css_class(options = {})
164
- operations[:remove_css_class] << options
195
+ add_operation(:remove_css_class, options)
196
+ end
197
+
198
+ def set_style(options = {})
199
+ add_operation(:set_style, options)
165
200
  end
166
201
 
167
202
  def set_dataset_property(options = {})
168
- operations[:set_dataset_property] << options
203
+ add_operation(:set_dataset_property, options)
169
204
  end
170
205
 
171
206
  private
172
207
 
208
+ def add_operation(key, options)
209
+ operations[key] ||= []
210
+ operations[key] << options
211
+ end
212
+
173
213
  def stub
174
214
  {
215
+ add_css_class: [],
175
216
  dispatch_event: [],
176
- morph: [],
177
217
  inner_html: [],
178
- outer_html: [],
179
- text_content: [],
180
218
  insert_adjacent_html: [],
181
219
  insert_adjacent_text: [],
220
+ morph: [],
221
+ outer_html: [],
182
222
  remove: [],
183
- set_value: [],
184
- set_attribute: [],
185
223
  remove_attribute: [],
186
- add_css_class: [],
187
224
  remove_css_class: [],
225
+ set_attribute: [],
226
+ set_cookie: [],
188
227
  set_dataset_property: [],
228
+ set_style: [],
229
+ set_property: [],
230
+ set_value: [],
231
+ text_content: []
189
232
  }
190
233
  end
191
234
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "channel"
2
4
 
3
5
  module CableReady
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CableReady
2
- VERSION = "4.0.8"
4
+ VERSION = "4.2.0"
3
5
  end
data/tags CHANGED
@@ -12,39 +12,32 @@ CableReady lib/cable_ready/channels.rb /^module CableReady$/;" m
12
12
  CableReady lib/cable_ready/version.rb /^module CableReady$/;" m
13
13
  Channel lib/cable_ready/channel.rb /^ class Channel$/;" c class:CableReady
14
14
  Channels lib/cable_ready/channels.rb /^ class Channels$/;" c class:CableReady
15
- Engine lib/cable_ready.rb /^ class Engine < ::Rails::Engine$/;" c class:CableReady.Rails
16
- Rails lib/cable_ready.rb /^ module Rails$/;" m class:CableReady
15
+ Engine lib/cable_ready.rb /^ class Engine < Rails::Engine$/;" c class:CableReady
17
16
  [] lib/cable_ready/channels.rb /^ def [](channel_name)$/;" f class:CableReady.Channels
18
- add_css_class lib/cable_ready/channel.rb /^ def add_css_class(options={})$/;" f class:CableReady.Channel
17
+ add_css_class lib/cable_ready/channel.rb /^ def add_css_class(options = {})$/;" f class:CableReady.Channel
18
+ add_operation lib/cable_ready/channel.rb /^ def add_operation(key, options)$/;" f class:CableReady.Channel
19
19
  broadcast lib/cable_ready/channel.rb /^ def broadcast$/;" f class:CableReady.Channel
20
20
  broadcast lib/cable_ready/channels.rb /^ def broadcast$/;" f class:CableReady.Channels
21
21
  cable_ready lib/cable_ready/broadcaster.rb /^ def cable_ready$/;" f class:CableReady.Broadcaster
22
22
  clear lib/cable_ready/channel.rb /^ def clear$/;" f class:CableReady.Channel
23
23
  clear lib/cable_ready/channels.rb /^ def clear$/;" f class:CableReady.Channels
24
- const.dispatchEvent app/assets/javascripts/cable_ready/src/index.js /^ dispatchEvent: config => {$/;" p
25
- dispatch_event lib/cable_ready/channel.rb /^ def dispatch_event(options={})$/;" f class:CableReady.Channel
24
+ const.bubbles javascript/cable_ready.js /^ const init = { bubbles: true, cancelable: true }$/;" p
25
+ const.cancelable javascript/cable_ready.js /^ const init = { bubbles: true, cancelable: true }$/;" p
26
+ const.dispatchEvent javascript/cable_ready.js /^ dispatchEvent: config => {$/;" p
27
+ dispatch_event lib/cable_ready/channel.rb /^ def dispatch_event(options = {})$/;" f class:CableReady.Channel
26
28
  initialize lib/cable_ready/channel.rb /^ def initialize(name)$/;" f class:CableReady.Channel
27
29
  initialize lib/cable_ready/channels.rb /^ def initialize$/;" f class:CableReady.Channels
28
- inner_html lib/cable_ready/channel.rb /^ def inner_html(options={})$/;" f class:CableReady.Channel
29
- insert_adjacent_html lib/cable_ready/channel.rb /^ def insert_adjacent_html(options={})$/;" f class:CableReady.Channel
30
- insert_adjacent_text lib/cable_ready/channel.rb /^ def insert_adjacent_text(options={})$/;" f class:CableReady.Channel
31
- module.exports.entry app/assets/javascripts/cable_ready/src/webpack.config.js /^ entry: '.\/index.js',$/;" p
32
- module.exports.mode app/assets/javascripts/cable_ready/src/webpack.config.js /^ mode: 'production',$/;" p
33
- module.exports.plugins app/assets/javascripts/cable_ready/src/webpack.config.js /^ plugins: [],$/;" p
34
- module.exports.target app/assets/javascripts/cable_ready/src/webpack.config.js /^ target: 'web',$/;" p
35
- morph lib/cable_ready/channel.rb /^ def morph(options={})$/;" f class:CableReady.Channel
36
- n app/assets/javascripts/cable_ready.js /^window.CableReady=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";var r,o="http:\/\/www.w3.org\/1999\/xhtml",u="undefined"==typeof document?void 0:document,c=u?u.body||u.createElement("div"):{},i=c.hasAttributeNS?function(e,t,n){return e.hasAttributeNS(t,n)}:c.hasAttribute?function(e,t,n){return e.hasAttribute(n)}:function(e,t,n){return null!=e.getAttributeNode(t,n)};function a(e,t){var n=e.nodeName,r=t.nodeName;return n===r||!!(t.actualize&&n.charCodeAt(0)<91&&r.charCodeAt(0)>90)&&n===r.toUpperCase()}function l(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n,""))}var d={OPTION:function(e,t){l(e,t,"selected")},INPUT:function(e,t){l(e,t,"checked"),l(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),i(t,null,"value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n);var r=e.firstChild;if(r){var o=r.nodeValue;if(o==n||!n&&o==e.placeholder)return;r.nodeValue=n}},SELECT:function(e,t){if(!i(t,null,"multiple")){for(var n=0,r=t.firstChild;r;){var o=r.nodeName;if(o&&"OPTION"===o.toUpperCase()){if(i(r,null,"selected")){n;break}n++}r=r.nextSibling}e.selectedIndex=n}}},f=1,s=3,m=8;function v(){}function p(e){return e.id}var S=function(e){return function(t,n,c){if(c||(c={}),"string"==typeof n)if("#document"===t.nodeName||"HTML"===t.nodeName){var i=n;(n=u.createElement("html")).innerHTML=i}else n=function(e){var t;return!r&&u.createRange&&(r=u.createRange()).selectNode(u.body),r&&r.createContextualFragment?t=r.createContextualFragment(e):(t=u.createElement("body")).innerHTML=e,t.childNodes[0]}(n);var l,S=c.getNodeKey||p,b=c.onBeforeNodeAdded||v,y=c.onNodeAdded||v,h=c.onBeforeElUpdated||v,N=c.onElUpdated||v,g=c.onBeforeNodeDiscarded||v,C=c.onNodeDiscarded||v,A=c.onBeforeElChildrenUpdated||v,x=!0===c.childrenOnly,T={};function E(e){l?l.push(e):l=[e]}function q(e,t,n){!1!==g(e)&&(t&&t.removeChild(e),C(e),function e(t,n){if(t.nodeType===f)for(var r=t.firstChild;r;){var o=void 0;n&&(o=S(r))?E(o):(C(r),r.firstChild&&e(r,n)),r=r.nextSibling}}(e,n))}function O(e){y(e);for(var t=e.firstChild;t;){var n=t.nextSibling,r=S(t);if(r){var o=T[r];o&&a(t,o)&&(t.parentNode.replaceChild(o,t),j(o,t))}O(t),t=n}}function j(r,o,c){var i,l=S(o);if(l&&delete T[l],!n.isSameNode||!n.isSameNode(t)){if(!c){if(!1===h(r,o))return;if(e(r,o),N(r),!1===A(r,o))return}if("TEXTAREA"!==r.nodeName){var v,p,y,g,C=o.firstChild,x=r.firstChild;e:for(;C;){for(y=C.nextSibling,v=S(C);x;){if(p=x.nextSibling,C.isSameNode&&C.isSameNode(x)){C=y,x=p;continue e}i=S(x);var w=x.nodeType,M=void 0;if(w===C.nodeType&&(w===f?(v?v!==i&&((g=T[v])?x.nextSibling===g?M=!1:(r.insertBefore(g,x),p=x.nextSibling,i?E(i):q(x,r,!0),x=g):M=!1):i&&(M=!1),(M=!1!==M&&a(x,C))&&j(x,C)):w!==s&&w!=m||(M=!0,x.nodeValue!==C.nodeValue&&(x.nodeValue=C.nodeValue))),M){C=y,x=p;continue e}i?E(i):q(x,r,!0),x=p}if(v&&(g=T[v])&&a(g,C))r.appendChild(g),j(g,C);else{var V=b(C);!1!==V&&(V&&(C=V),C.actualize&&(C=C.actualize(r.ownerDocument||u)),r.appendChild(C),O(C))}C=y,x=p}for(;x;)p=x.nextSibling,(i=S(x))?E(i):q(x,r,!0),x=p}var L=d[r.nodeName];L&&L(r,o)}}!function e(t){if(t.nodeType===f)for(var n=t.firstChild;n;){var r=S(n);r&&(T[r]=n),e(n),n=n.nextSibling}}(t);var w=t,M=w.nodeType,V=n.nodeType;if(!x)if(M===f)V===f?a(t,n)||(C(t),w=function(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}(t,function(e,t){return t&&t!==o?u.createElementNS(t,e):u.createElement(e)}(n.nodeName,n.namespaceURI))):w=n;else if(M===s||M===m){if(V===M)return w.nodeValue!==n.nodeValue&&(w.nodeValue=n.nodeValue),w;w=n}if(w===n)C(t);else if(j(w,n,x),l)for(var L=0,P=l.length;L<P;L++){var H=T[l[L]];H&&q(H,H.parentNode,!1)}return!x&&w!==t&&t.parentNode&&(w.actualize&&(w=w.actualize(t.ownerDocument||u)),t.parentNode.replaceChild(w,t)),w}}(function(e,t){var n,r,o,u,c,a=t.attributes;for(n=a.length-1;n>=0;--n)o=(r=a[n]).name,u=r.namespaceURI,c=r.value,u?(o=r.localName||o,e.getAttributeNS(u,o)!==c&&e.setAttributeNS(u,o,c)):e.getAttribute(o)!==c&&e.setAttribute(o,c);for(n=(a=e.attributes).length-1;n>=0;--n)!1!==(r=a[n]).specified&&(o=r.name,(u=r.namespaceURI)?(o=r.localName||o,i(t,u,o)||e.removeAttributeNS(u,o)):i(t,null,o)||e.removeAttribute(o))});e.exports=S},function(e,t,n){"use strict";n.r(t),n.d(t,"perform",function(){return c});var r=n(0),o=n.n(r),u={dispatchEvent:function(e){var t=document;e.selector&&(t=document.querySelector(e.selector)||document);var n=new Event(e.name);n.detail=e.detail,t.dispatchEvent(n)},morph:function(e){var t=document.createElement("template");t.innerHTML=String(e.html).trim(),u.dispatchEvent({name:"cable-ready:before-morph",detail:{content:t.content}}),o()(document.querySelector(e.selector),t.content,{childrenOnly:!!e.childrenOnly}),u.dispatchEvent({name:"cable-ready:after-morph"}),e.focusSelector&&document.querySelector(e.focusSelector).focus()},innerHtml:function(e){document.querySelector(e.selector).innerHTML=e.html,e.focusSelector&&document.querySelector(e.focusSelector).focus()},textContent:function(e){document.querySelector(e.selector).textContent=e.text},insertAdjacentHtml:function(e){document.querySelector(e.selector).insertAdjacentHTML(e.position||"beforeend",e.html),e.focusSelector&&document.querySelector(e.focusSelector).focus()},insertAdjacentText:function(e){document.querySelector(e.querySelector).insertAdjacentText(e.position||"beforeend",e.text)},remove:function(e){document.querySelector(e.selector).remove(),e.focusSelector&&document.querySelector(e.focusSelector).focus()},replace:function(e){document.querySelector(e.selector);document.createElement("div").innerHTML=e.html,e.focusSelector&&document.querySelector(e.focusSelector).focus()},setValue:function(e){document.querySelector(e.selector).value=e.value},setAttribute:function(e){document.querySelector(e.selector).setAttribute(e.name,e.value)},removeAttribute:function(e){document.querySelector(e.selector).removeAttribute(e.name)},addCssClass:function(e){document.querySelector(e.selector).classList.add(e.name)},removeCssClass:function(e){document.querySelector(e.selector).classList.remove(e.name)},setDatasetProperty:function(e){document.querySelector(e.selector).dataset[e.name]=e.value}},c=function(e){for(var t in e)if(e.hasOwnProperty(t))for(var n=e[t],r=0;r<n.length;r++)try{var o=n[r];u[t](o)}catch(e){console.log("CableReady detected an error in ".concat(t,"! ").concat(e.message))}}}]);/;" f
37
- r app/assets/javascripts/cable_ready.js /^window.CableReady=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";var r,o="http:\/\/www.w3.org\/1999\/xhtml",u="undefined"==typeof document?void 0:document,c=u?u.body||u.createElement("div"):{},i=c.hasAttributeNS?function(e,t,n){return e.hasAttributeNS(t,n)}:c.hasAttribute?function(e,t,n){return e.hasAttribute(n)}:function(e,t,n){return null!=e.getAttributeNode(t,n)};function a(e,t){var n=e.nodeName,r=t.nodeName;return n===r||!!(t.actualize&&n.charCodeAt(0)<91&&r.charCodeAt(0)>90)&&n===r.toUpperCase()}function l(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n,""))}var d={OPTION:function(e,t){l(e,t,"selected")},INPUT:function(e,t){l(e,t,"checked"),l(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),i(t,null,"value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n);var r=e.firstChild;if(r){var o=r.nodeValue;if(o==n||!n&&o==e.placeholder)return;r.nodeValue=n}},SELECT:function(e,t){if(!i(t,null,"multiple")){for(var n=0,r=t.firstChild;r;){var o=r.nodeName;if(o&&"OPTION"===o.toUpperCase()){if(i(r,null,"selected")){n;break}n++}r=r.nextSibling}e.selectedIndex=n}}},f=1,s=3,m=8;function v(){}function p(e){return e.id}var S=function(e){return function(t,n,c){if(c||(c={}),"string"==typeof n)if("#document"===t.nodeName||"HTML"===t.nodeName){var i=n;(n=u.createElement("html")).innerHTML=i}else n=function(e){var t;return!r&&u.createRange&&(r=u.createRange()).selectNode(u.body),r&&r.createContextualFragment?t=r.createContextualFragment(e):(t=u.createElement("body")).innerHTML=e,t.childNodes[0]}(n);var l,S=c.getNodeKey||p,b=c.onBeforeNodeAdded||v,y=c.onNodeAdded||v,h=c.onBeforeElUpdated||v,N=c.onElUpdated||v,g=c.onBeforeNodeDiscarded||v,C=c.onNodeDiscarded||v,A=c.onBeforeElChildrenUpdated||v,x=!0===c.childrenOnly,T={};function E(e){l?l.push(e):l=[e]}function q(e,t,n){!1!==g(e)&&(t&&t.removeChild(e),C(e),function e(t,n){if(t.nodeType===f)for(var r=t.firstChild;r;){var o=void 0;n&&(o=S(r))?E(o):(C(r),r.firstChild&&e(r,n)),r=r.nextSibling}}(e,n))}function O(e){y(e);for(var t=e.firstChild;t;){var n=t.nextSibling,r=S(t);if(r){var o=T[r];o&&a(t,o)&&(t.parentNode.replaceChild(o,t),j(o,t))}O(t),t=n}}function j(r,o,c){var i,l=S(o);if(l&&delete T[l],!n.isSameNode||!n.isSameNode(t)){if(!c){if(!1===h(r,o))return;if(e(r,o),N(r),!1===A(r,o))return}if("TEXTAREA"!==r.nodeName){var v,p,y,g,C=o.firstChild,x=r.firstChild;e:for(;C;){for(y=C.nextSibling,v=S(C);x;){if(p=x.nextSibling,C.isSameNode&&C.isSameNode(x)){C=y,x=p;continue e}i=S(x);var w=x.nodeType,M=void 0;if(w===C.nodeType&&(w===f?(v?v!==i&&((g=T[v])?x.nextSibling===g?M=!1:(r.insertBefore(g,x),p=x.nextSibling,i?E(i):q(x,r,!0),x=g):M=!1):i&&(M=!1),(M=!1!==M&&a(x,C))&&j(x,C)):w!==s&&w!=m||(M=!0,x.nodeValue!==C.nodeValue&&(x.nodeValue=C.nodeValue))),M){C=y,x=p;continue e}i?E(i):q(x,r,!0),x=p}if(v&&(g=T[v])&&a(g,C))r.appendChild(g),j(g,C);else{var V=b(C);!1!==V&&(V&&(C=V),C.actualize&&(C=C.actualize(r.ownerDocument||u)),r.appendChild(C),O(C))}C=y,x=p}for(;x;)p=x.nextSibling,(i=S(x))?E(i):q(x,r,!0),x=p}var L=d[r.nodeName];L&&L(r,o)}}!function e(t){if(t.nodeType===f)for(var n=t.firstChild;n;){var r=S(n);r&&(T[r]=n),e(n),n=n.nextSibling}}(t);var w=t,M=w.nodeType,V=n.nodeType;if(!x)if(M===f)V===f?a(t,n)||(C(t),w=function(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}(t,function(e,t){return t&&t!==o?u.createElementNS(t,e):u.createElement(e)}(n.nodeName,n.namespaceURI))):w=n;else if(M===s||M===m){if(V===M)return w.nodeValue!==n.nodeValue&&(w.nodeValue=n.nodeValue),w;w=n}if(w===n)C(t);else if(j(w,n,x),l)for(var L=0,P=l.length;L<P;L++){var H=T[l[L]];H&&q(H,H.parentNode,!1)}return!x&&w!==t&&t.parentNode&&(w.actualize&&(w=w.actualize(t.ownerDocument||u)),t.parentNode.replaceChild(w,t)),w}}(function(e,t){var n,r,o,u,c,a=t.attributes;for(n=a.length-1;n>=0;--n)o=(r=a[n]).name,u=r.namespaceURI,c=r.value,u?(o=r.localName||o,e.getAttributeNS(u,o)!==c&&e.setAttributeNS(u,o,c)):e.getAttribute(o)!==c&&e.setAttribute(o,c);for(n=(a=e.attributes).length-1;n>=0;--n)!1!==(r=a[n]).specified&&(o=r.name,(u=r.namespaceURI)?(o=r.localName||o,i(t,u,o)||e.removeAttributeNS(u,o)):i(t,null,o)||e.removeAttribute(o))});e.exports=S},function(e,t,n){"use strict";n.r(t),n.d(t,"perform",function(){return c});var r=n(0),o=n.n(r),u={dispatchEvent:function(e){var t=document;e.selector&&(t=document.querySelector(e.selector)||document);var n=new Event(e.name);n.detail=e.detail,t.dispatchEvent(n)},morph:function(e){var t=document.createElement("template");t.innerHTML=String(e.html).trim(),u.dispatchEvent({name:"cable-ready:before-morph",detail:{content:t.content}}),o()(document.querySelector(e.selector),t.content,{childrenOnly:!!e.childrenOnly}),u.dispatchEvent({name:"cable-ready:after-morph"}),e.focusSelector&&document.querySelector(e.focusSelector).focus()},innerHtml:function(e){document.querySelector(e.selector).innerHTML=e.html,e.focusSelector&&document.querySelector(e.focusSelector).focus()},textContent:function(e){document.querySelector(e.selector).textContent=e.text},insertAdjacentHtml:function(e){document.querySelector(e.selector).insertAdjacentHTML(e.position||"beforeend",e.html),e.focusSelector&&document.querySelector(e.focusSelector).focus()},insertAdjacentText:function(e){document.querySelector(e.querySelector).insertAdjacentText(e.position||"beforeend",e.text)},remove:function(e){document.querySelector(e.selector).remove(),e.focusSelector&&document.querySelector(e.focusSelector).focus()},replace:function(e){document.querySelector(e.selector);document.createElement("div").innerHTML=e.html,e.focusSelector&&document.querySelector(e.focusSelector).focus()},setValue:function(e){document.querySelector(e.selector).value=e.value},setAttribute:function(e){document.querySelector(e.selector).setAttribute(e.name,e.value)},removeAttribute:function(e){document.querySelector(e.selector).removeAttribute(e.name)},addCssClass:function(e){document.querySelector(e.selector).classList.add(e.name)},removeCssClass:function(e){document.querySelector(e.selector).classList.remove(e.name)},setDatasetProperty:function(e){document.querySelector(e.selector).dataset[e.name]=e.value}},c=function(e){for(var t in e)if(e.hasOwnProperty(t))for(var n=e[t],r=0;r<n.length;r++)try{var o=n[r];u[t](o)}catch(e){console.log("CableReady detected an error in ".concat(t,"! ").concat(e.message))}}}]);/;" f
38
- remove lib/cable_ready/channel.rb /^ def remove(options={})$/;" f class:CableReady.Channel
39
- remove_attribute lib/cable_ready/channel.rb /^ def remove_attribute(options={})$/;" f class:CableReady.Channel
40
- remove_css_class lib/cable_ready/channel.rb /^ def remove_css_class(options={})$/;" f class:CableReady.Channel
41
- replace lib/cable_ready/channel.rb /^ def replace(options={})$/;" f class:CableReady.Channel
42
- return app/assets/javascripts/cable_ready.js /^window.CableReady=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";var r,o="http:\/\/www.w3.org\/1999\/xhtml",u="undefined"==typeof document?void 0:document,c=u?u.body||u.createElement("div"):{},i=c.hasAttributeNS?function(e,t,n){return e.hasAttributeNS(t,n)}:c.hasAttribute?function(e,t,n){return e.hasAttribute(n)}:function(e,t,n){return null!=e.getAttributeNode(t,n)};function a(e,t){var n=e.nodeName,r=t.nodeName;return n===r||!!(t.actualize&&n.charCodeAt(0)<91&&r.charCodeAt(0)>90)&&n===r.toUpperCase()}function l(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n,""))}var d={OPTION:function(e,t){l(e,t,"selected")},INPUT:function(e,t){l(e,t,"checked"),l(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),i(t,null,"value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n);var r=e.firstChild;if(r){var o=r.nodeValue;if(o==n||!n&&o==e.placeholder)return;r.nodeValue=n}},SELECT:function(e,t){if(!i(t,null,"multiple")){for(var n=0,r=t.firstChild;r;){var o=r.nodeName;if(o&&"OPTION"===o.toUpperCase()){if(i(r,null,"selected")){n;break}n++}r=r.nextSibling}e.selectedIndex=n}}},f=1,s=3,m=8;function v(){}function p(e){return e.id}var S=function(e){return function(t,n,c){if(c||(c={}),"string"==typeof n)if("#document"===t.nodeName||"HTML"===t.nodeName){var i=n;(n=u.createElement("html")).innerHTML=i}else n=function(e){var t;return!r&&u.createRange&&(r=u.createRange()).selectNode(u.body),r&&r.createContextualFragment?t=r.createContextualFragment(e):(t=u.createElement("body")).innerHTML=e,t.childNodes[0]}(n);var l,S=c.getNodeKey||p,b=c.onBeforeNodeAdded||v,y=c.onNodeAdded||v,h=c.onBeforeElUpdated||v,N=c.onElUpdated||v,g=c.onBeforeNodeDiscarded||v,C=c.onNodeDiscarded||v,A=c.onBeforeElChildrenUpdated||v,x=!0===c.childrenOnly,T={};function E(e){l?l.push(e):l=[e]}function q(e,t,n){!1!==g(e)&&(t&&t.removeChild(e),C(e),function e(t,n){if(t.nodeType===f)for(var r=t.firstChild;r;){var o=void 0;n&&(o=S(r))?E(o):(C(r),r.firstChild&&e(r,n)),r=r.nextSibling}}(e,n))}function O(e){y(e);for(var t=e.firstChild;t;){var n=t.nextSibling,r=S(t);if(r){var o=T[r];o&&a(t,o)&&(t.parentNode.replaceChild(o,t),j(o,t))}O(t),t=n}}function j(r,o,c){var i,l=S(o);if(l&&delete T[l],!n.isSameNode||!n.isSameNode(t)){if(!c){if(!1===h(r,o))return;if(e(r,o),N(r),!1===A(r,o))return}if("TEXTAREA"!==r.nodeName){var v,p,y,g,C=o.firstChild,x=r.firstChild;e:for(;C;){for(y=C.nextSibling,v=S(C);x;){if(p=x.nextSibling,C.isSameNode&&C.isSameNode(x)){C=y,x=p;continue e}i=S(x);var w=x.nodeType,M=void 0;if(w===C.nodeType&&(w===f?(v?v!==i&&((g=T[v])?x.nextSibling===g?M=!1:(r.insertBefore(g,x),p=x.nextSibling,i?E(i):q(x,r,!0),x=g):M=!1):i&&(M=!1),(M=!1!==M&&a(x,C))&&j(x,C)):w!==s&&w!=m||(M=!0,x.nodeValue!==C.nodeValue&&(x.nodeValue=C.nodeValue))),M){C=y,x=p;continue e}i?E(i):q(x,r,!0),x=p}if(v&&(g=T[v])&&a(g,C))r.appendChild(g),j(g,C);else{var V=b(C);!1!==V&&(V&&(C=V),C.actualize&&(C=C.actualize(r.ownerDocument||u)),r.appendChild(C),O(C))}C=y,x=p}for(;x;)p=x.nextSibling,(i=S(x))?E(i):q(x,r,!0),x=p}var L=d[r.nodeName];L&&L(r,o)}}!function e(t){if(t.nodeType===f)for(var n=t.firstChild;n;){var r=S(n);r&&(T[r]=n),e(n),n=n.nextSibling}}(t);var w=t,M=w.nodeType,V=n.nodeType;if(!x)if(M===f)V===f?a(t,n)||(C(t),w=function(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}(t,function(e,t){return t&&t!==o?u.createElementNS(t,e):u.createElement(e)}(n.nodeName,n.namespaceURI))):w=n;else if(M===s||M===m){if(V===M)return w.nodeValue!==n.nodeValue&&(w.nodeValue=n.nodeValue),w;w=n}if(w===n)C(t);else if(j(w,n,x),l)for(var L=0,P=l.length;L<P;L++){var H=T[l[L]];H&&q(H,H.parentNode,!1)}return!x&&w!==t&&t.parentNode&&(w.actualize&&(w=w.actualize(t.ownerDocument||u)),t.parentNode.replaceChild(w,t)),w}}(function(e,t){var n,r,o,u,c,a=t.attributes;for(n=a.length-1;n>=0;--n)o=(r=a[n]).name,u=r.namespaceURI,c=r.value,u?(o=r.localName||o,e.getAttributeNS(u,o)!==c&&e.setAttributeNS(u,o,c)):e.getAttribute(o)!==c&&e.setAttribute(o,c);for(n=(a=e.attributes).length-1;n>=0;--n)!1!==(r=a[n]).specified&&(o=r.name,(u=r.namespaceURI)?(o=r.localName||o,i(t,u,o)||e.removeAttributeNS(u,o)):i(t,null,o)||e.removeAttribute(o))});e.exports=S},function(e,t,n){"use strict";n.r(t),n.d(t,"perform",function(){return c});var r=n(0),o=n.n(r),u={dispatchEvent:function(e){var t=document;e.selector&&(t=document.querySelector(e.selector)||document);var n=new Event(e.name);n.detail=e.detail,t.dispatchEvent(n)},morph:function(e){var t=document.createElement("template");t.innerHTML=String(e.html).trim(),u.dispatchEvent({name:"cable-ready:before-morph",detail:{content:t.content}}),o()(document.querySelector(e.selector),t.content,{childrenOnly:!!e.childrenOnly}),u.dispatchEvent({name:"cable-ready:after-morph"}),e.focusSelector&&document.querySelector(e.focusSelector).focus()},innerHtml:function(e){document.querySelector(e.selector).innerHTML=e.html,e.focusSelector&&document.querySelector(e.focusSelector).focus()},textContent:function(e){document.querySelector(e.selector).textContent=e.text},insertAdjacentHtml:function(e){document.querySelector(e.selector).insertAdjacentHTML(e.position||"beforeend",e.html),e.focusSelector&&document.querySelector(e.focusSelector).focus()},insertAdjacentText:function(e){document.querySelector(e.querySelector).insertAdjacentText(e.position||"beforeend",e.text)},remove:function(e){document.querySelector(e.selector).remove(),e.focusSelector&&document.querySelector(e.focusSelector).focus()},replace:function(e){document.querySelector(e.selector);document.createElement("div").innerHTML=e.html,e.focusSelector&&document.querySelector(e.focusSelector).focus()},setValue:function(e){document.querySelector(e.selector).value=e.value},setAttribute:function(e){document.querySelector(e.selector).setAttribute(e.name,e.value)},removeAttribute:function(e){document.querySelector(e.selector).removeAttribute(e.name)},addCssClass:function(e){document.querySelector(e.selector).classList.add(e.name)},removeCssClass:function(e){document.querySelector(e.selector).classList.remove(e.name)},setDatasetProperty:function(e){document.querySelector(e.selector).dataset[e.name]=e.value}},c=function(e){for(var t in e)if(e.hasOwnProperty(t))for(var n=e[t],r=0;r<n.length;r++)try{var o=n[r];u[t](o)}catch(e){console.log("CableReady detected an error in ".concat(t,"! ").concat(e.message))}}}]);/;" c
43
- return.hasOwnProperty app/assets/javascripts/cable_ready.js /^window.CableReady=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";var r,o="http:\/\/www.w3.org\/1999\/xhtml",u="undefined"==typeof document?void 0:document,c=u?u.body||u.createElement("div"):{},i=c.hasAttributeNS?function(e,t,n){return e.hasAttributeNS(t,n)}:c.hasAttribute?function(e,t,n){return e.hasAttribute(n)}:function(e,t,n){return null!=e.getAttributeNode(t,n)};function a(e,t){var n=e.nodeName,r=t.nodeName;return n===r||!!(t.actualize&&n.charCodeAt(0)<91&&r.charCodeAt(0)>90)&&n===r.toUpperCase()}function l(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n,""))}var d={OPTION:function(e,t){l(e,t,"selected")},INPUT:function(e,t){l(e,t,"checked"),l(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),i(t,null,"value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n);var r=e.firstChild;if(r){var o=r.nodeValue;if(o==n||!n&&o==e.placeholder)return;r.nodeValue=n}},SELECT:function(e,t){if(!i(t,null,"multiple")){for(var n=0,r=t.firstChild;r;){var o=r.nodeName;if(o&&"OPTION"===o.toUpperCase()){if(i(r,null,"selected")){n;break}n++}r=r.nextSibling}e.selectedIndex=n}}},f=1,s=3,m=8;function v(){}function p(e){return e.id}var S=function(e){return function(t,n,c){if(c||(c={}),"string"==typeof n)if("#document"===t.nodeName||"HTML"===t.nodeName){var i=n;(n=u.createElement("html")).innerHTML=i}else n=function(e){var t;return!r&&u.createRange&&(r=u.createRange()).selectNode(u.body),r&&r.createContextualFragment?t=r.createContextualFragment(e):(t=u.createElement("body")).innerHTML=e,t.childNodes[0]}(n);var l,S=c.getNodeKey||p,b=c.onBeforeNodeAdded||v,y=c.onNodeAdded||v,h=c.onBeforeElUpdated||v,N=c.onElUpdated||v,g=c.onBeforeNodeDiscarded||v,C=c.onNodeDiscarded||v,A=c.onBeforeElChildrenUpdated||v,x=!0===c.childrenOnly,T={};function E(e){l?l.push(e):l=[e]}function q(e,t,n){!1!==g(e)&&(t&&t.removeChild(e),C(e),function e(t,n){if(t.nodeType===f)for(var r=t.firstChild;r;){var o=void 0;n&&(o=S(r))?E(o):(C(r),r.firstChild&&e(r,n)),r=r.nextSibling}}(e,n))}function O(e){y(e);for(var t=e.firstChild;t;){var n=t.nextSibling,r=S(t);if(r){var o=T[r];o&&a(t,o)&&(t.parentNode.replaceChild(o,t),j(o,t))}O(t),t=n}}function j(r,o,c){var i,l=S(o);if(l&&delete T[l],!n.isSameNode||!n.isSameNode(t)){if(!c){if(!1===h(r,o))return;if(e(r,o),N(r),!1===A(r,o))return}if("TEXTAREA"!==r.nodeName){var v,p,y,g,C=o.firstChild,x=r.firstChild;e:for(;C;){for(y=C.nextSibling,v=S(C);x;){if(p=x.nextSibling,C.isSameNode&&C.isSameNode(x)){C=y,x=p;continue e}i=S(x);var w=x.nodeType,M=void 0;if(w===C.nodeType&&(w===f?(v?v!==i&&((g=T[v])?x.nextSibling===g?M=!1:(r.insertBefore(g,x),p=x.nextSibling,i?E(i):q(x,r,!0),x=g):M=!1):i&&(M=!1),(M=!1!==M&&a(x,C))&&j(x,C)):w!==s&&w!=m||(M=!0,x.nodeValue!==C.nodeValue&&(x.nodeValue=C.nodeValue))),M){C=y,x=p;continue e}i?E(i):q(x,r,!0),x=p}if(v&&(g=T[v])&&a(g,C))r.appendChild(g),j(g,C);else{var V=b(C);!1!==V&&(V&&(C=V),C.actualize&&(C=C.actualize(r.ownerDocument||u)),r.appendChild(C),O(C))}C=y,x=p}for(;x;)p=x.nextSibling,(i=S(x))?E(i):q(x,r,!0),x=p}var L=d[r.nodeName];L&&L(r,o)}}!function e(t){if(t.nodeType===f)for(var n=t.firstChild;n;){var r=S(n);r&&(T[r]=n),e(n),n=n.nextSibling}}(t);var w=t,M=w.nodeType,V=n.nodeType;if(!x)if(M===f)V===f?a(t,n)||(C(t),w=function(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}(t,function(e,t){return t&&t!==o?u.createElementNS(t,e):u.createElement(e)}(n.nodeName,n.namespaceURI))):w=n;else if(M===s||M===m){if(V===M)return w.nodeValue!==n.nodeValue&&(w.nodeValue=n.nodeValue),w;w=n}if(w===n)C(t);else if(j(w,n,x),l)for(var L=0,P=l.length;L<P;L++){var H=T[l[L]];H&&q(H,H.parentNode,!1)}return!x&&w!==t&&t.parentNode&&(w.actualize&&(w=w.actualize(t.ownerDocument||u)),t.parentNode.replaceChild(w,t)),w}}(function(e,t){var n,r,o,u,c,a=t.attributes;for(n=a.length-1;n>=0;--n)o=(r=a[n]).name,u=r.namespaceURI,c=r.value,u?(o=r.localName||o,e.getAttributeNS(u,o)!==c&&e.setAttributeNS(u,o,c)):e.getAttribute(o)!==c&&e.setAttribute(o,c);for(n=(a=e.attributes).length-1;n>=0;--n)!1!==(r=a[n]).specified&&(o=r.name,(u=r.namespaceURI)?(o=r.localName||o,i(t,u,o)||e.removeAttributeNS(u,o)):i(t,null,o)||e.removeAttribute(o))});e.exports=S},function(e,t,n){"use strict";n.r(t),n.d(t,"perform",function(){return c});var r=n(0),o=n.n(r),u={dispatchEvent:function(e){var t=document;e.selector&&(t=document.querySelector(e.selector)||document);var n=new Event(e.name);n.detail=e.detail,t.dispatchEvent(n)},morph:function(e){var t=document.createElement("template");t.innerHTML=String(e.html).trim(),u.dispatchEvent({name:"cable-ready:before-morph",detail:{content:t.content}}),o()(document.querySelector(e.selector),t.content,{childrenOnly:!!e.childrenOnly}),u.dispatchEvent({name:"cable-ready:after-morph"}),e.focusSelector&&document.querySelector(e.focusSelector).focus()},innerHtml:function(e){document.querySelector(e.selector).innerHTML=e.html,e.focusSelector&&document.querySelector(e.focusSelector).focus()},textContent:function(e){document.querySelector(e.selector).textContent=e.text},insertAdjacentHtml:function(e){document.querySelector(e.selector).insertAdjacentHTML(e.position||"beforeend",e.html),e.focusSelector&&document.querySelector(e.focusSelector).focus()},insertAdjacentText:function(e){document.querySelector(e.querySelector).insertAdjacentText(e.position||"beforeend",e.text)},remove:function(e){document.querySelector(e.selector).remove(),e.focusSelector&&document.querySelector(e.focusSelector).focus()},replace:function(e){document.querySelector(e.selector);document.createElement("div").innerHTML=e.html,e.focusSelector&&document.querySelector(e.focusSelector).focus()},setValue:function(e){document.querySelector(e.selector).value=e.value},setAttribute:function(e){document.querySelector(e.selector).setAttribute(e.name,e.value)},removeAttribute:function(e){document.querySelector(e.selector).removeAttribute(e.name)},addCssClass:function(e){document.querySelector(e.selector).classList.add(e.name)},removeCssClass:function(e){document.querySelector(e.selector).classList.remove(e.name)},setDatasetProperty:function(e){document.querySelector(e.selector).dataset[e.name]=e.value}},c=function(e){for(var t in e)if(e.hasOwnProperty(t))for(var n=e[t],r=0;r<n.length;r++)try{var o=n[r];u[t](o)}catch(e){console.log("CableReady detected an error in ".concat(t,"! ").concat(e.message))}}}]);/;" m
44
- set_attribute lib/cable_ready/channel.rb /^ def set_attribute(options={})$/;" f class:CableReady.Channel
45
- set_dataset_property lib/cable_ready/channel.rb /^ def set_dataset_property(options={})$/;" f class:CableReady.Channel
46
- set_value lib/cable_ready/channel.rb /^ def set_value(options={})$/;" f class:CableReady.Channel
47
- stub lib/cable_ready/channel.rb /^ def stub$/;" f class:CableReady.Channel
48
- t app/assets/javascripts/cable_ready.js /^window.CableReady=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";var r,o="http:\/\/www.w3.org\/1999\/xhtml",u="undefined"==typeof document?void 0:document,c=u?u.body||u.createElement("div"):{},i=c.hasAttributeNS?function(e,t,n){return e.hasAttributeNS(t,n)}:c.hasAttribute?function(e,t,n){return e.hasAttribute(n)}:function(e,t,n){return null!=e.getAttributeNode(t,n)};function a(e,t){var n=e.nodeName,r=t.nodeName;return n===r||!!(t.actualize&&n.charCodeAt(0)<91&&r.charCodeAt(0)>90)&&n===r.toUpperCase()}function l(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n,""))}var d={OPTION:function(e,t){l(e,t,"selected")},INPUT:function(e,t){l(e,t,"checked"),l(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),i(t,null,"value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n);var r=e.firstChild;if(r){var o=r.nodeValue;if(o==n||!n&&o==e.placeholder)return;r.nodeValue=n}},SELECT:function(e,t){if(!i(t,null,"multiple")){for(var n=0,r=t.firstChild;r;){var o=r.nodeName;if(o&&"OPTION"===o.toUpperCase()){if(i(r,null,"selected")){n;break}n++}r=r.nextSibling}e.selectedIndex=n}}},f=1,s=3,m=8;function v(){}function p(e){return e.id}var S=function(e){return function(t,n,c){if(c||(c={}),"string"==typeof n)if("#document"===t.nodeName||"HTML"===t.nodeName){var i=n;(n=u.createElement("html")).innerHTML=i}else n=function(e){var t;return!r&&u.createRange&&(r=u.createRange()).selectNode(u.body),r&&r.createContextualFragment?t=r.createContextualFragment(e):(t=u.createElement("body")).innerHTML=e,t.childNodes[0]}(n);var l,S=c.getNodeKey||p,b=c.onBeforeNodeAdded||v,y=c.onNodeAdded||v,h=c.onBeforeElUpdated||v,N=c.onElUpdated||v,g=c.onBeforeNodeDiscarded||v,C=c.onNodeDiscarded||v,A=c.onBeforeElChildrenUpdated||v,x=!0===c.childrenOnly,T={};function E(e){l?l.push(e):l=[e]}function q(e,t,n){!1!==g(e)&&(t&&t.removeChild(e),C(e),function e(t,n){if(t.nodeType===f)for(var r=t.firstChild;r;){var o=void 0;n&&(o=S(r))?E(o):(C(r),r.firstChild&&e(r,n)),r=r.nextSibling}}(e,n))}function O(e){y(e);for(var t=e.firstChild;t;){var n=t.nextSibling,r=S(t);if(r){var o=T[r];o&&a(t,o)&&(t.parentNode.replaceChild(o,t),j(o,t))}O(t),t=n}}function j(r,o,c){var i,l=S(o);if(l&&delete T[l],!n.isSameNode||!n.isSameNode(t)){if(!c){if(!1===h(r,o))return;if(e(r,o),N(r),!1===A(r,o))return}if("TEXTAREA"!==r.nodeName){var v,p,y,g,C=o.firstChild,x=r.firstChild;e:for(;C;){for(y=C.nextSibling,v=S(C);x;){if(p=x.nextSibling,C.isSameNode&&C.isSameNode(x)){C=y,x=p;continue e}i=S(x);var w=x.nodeType,M=void 0;if(w===C.nodeType&&(w===f?(v?v!==i&&((g=T[v])?x.nextSibling===g?M=!1:(r.insertBefore(g,x),p=x.nextSibling,i?E(i):q(x,r,!0),x=g):M=!1):i&&(M=!1),(M=!1!==M&&a(x,C))&&j(x,C)):w!==s&&w!=m||(M=!0,x.nodeValue!==C.nodeValue&&(x.nodeValue=C.nodeValue))),M){C=y,x=p;continue e}i?E(i):q(x,r,!0),x=p}if(v&&(g=T[v])&&a(g,C))r.appendChild(g),j(g,C);else{var V=b(C);!1!==V&&(V&&(C=V),C.actualize&&(C=C.actualize(r.ownerDocument||u)),r.appendChild(C),O(C))}C=y,x=p}for(;x;)p=x.nextSibling,(i=S(x))?E(i):q(x,r,!0),x=p}var L=d[r.nodeName];L&&L(r,o)}}!function e(t){if(t.nodeType===f)for(var n=t.firstChild;n;){var r=S(n);r&&(T[r]=n),e(n),n=n.nextSibling}}(t);var w=t,M=w.nodeType,V=n.nodeType;if(!x)if(M===f)V===f?a(t,n)||(C(t),w=function(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}(t,function(e,t){return t&&t!==o?u.createElementNS(t,e):u.createElement(e)}(n.nodeName,n.namespaceURI))):w=n;else if(M===s||M===m){if(V===M)return w.nodeValue!==n.nodeValue&&(w.nodeValue=n.nodeValue),w;w=n}if(w===n)C(t);else if(j(w,n,x),l)for(var L=0,P=l.length;L<P;L++){var H=T[l[L]];H&&q(H,H.parentNode,!1)}return!x&&w!==t&&t.parentNode&&(w.actualize&&(w=w.actualize(t.ownerDocument||u)),t.parentNode.replaceChild(w,t)),w}}(function(e,t){var n,r,o,u,c,a=t.attributes;for(n=a.length-1;n>=0;--n)o=(r=a[n]).name,u=r.namespaceURI,c=r.value,u?(o=r.localName||o,e.getAttributeNS(u,o)!==c&&e.setAttributeNS(u,o,c)):e.getAttribute(o)!==c&&e.setAttribute(o,c);for(n=(a=e.attributes).length-1;n>=0;--n)!1!==(r=a[n]).specified&&(o=r.name,(u=r.namespaceURI)?(o=r.localName||o,i(t,u,o)||e.removeAttributeNS(u,o)):i(t,null,o)||e.removeAttribute(o))});e.exports=S},function(e,t,n){"use strict";n.r(t),n.d(t,"perform",function(){return c});var r=n(0),o=n.n(r),u={dispatchEvent:function(e){var t=document;e.selector&&(t=document.querySelector(e.selector)||document);var n=new Event(e.name);n.detail=e.detail,t.dispatchEvent(n)},morph:function(e){var t=document.createElement("template");t.innerHTML=String(e.html).trim(),u.dispatchEvent({name:"cable-ready:before-morph",detail:{content:t.content}}),o()(document.querySelector(e.selector),t.content,{childrenOnly:!!e.childrenOnly}),u.dispatchEvent({name:"cable-ready:after-morph"}),e.focusSelector&&document.querySelector(e.focusSelector).focus()},innerHtml:function(e){document.querySelector(e.selector).innerHTML=e.html,e.focusSelector&&document.querySelector(e.focusSelector).focus()},textContent:function(e){document.querySelector(e.selector).textContent=e.text},insertAdjacentHtml:function(e){document.querySelector(e.selector).insertAdjacentHTML(e.position||"beforeend",e.html),e.focusSelector&&document.querySelector(e.focusSelector).focus()},insertAdjacentText:function(e){document.querySelector(e.querySelector).insertAdjacentText(e.position||"beforeend",e.text)},remove:function(e){document.querySelector(e.selector).remove(),e.focusSelector&&document.querySelector(e.focusSelector).focus()},replace:function(e){document.querySelector(e.selector);document.createElement("div").innerHTML=e.html,e.focusSelector&&document.querySelector(e.focusSelector).focus()},setValue:function(e){document.querySelector(e.selector).value=e.value},setAttribute:function(e){document.querySelector(e.selector).setAttribute(e.name,e.value)},removeAttribute:function(e){document.querySelector(e.selector).removeAttribute(e.name)},addCssClass:function(e){document.querySelector(e.selector).classList.add(e.name)},removeCssClass:function(e){document.querySelector(e.selector).classList.remove(e.name)},setDatasetProperty:function(e){document.querySelector(e.selector).dataset[e.name]=e.value}},c=function(e){for(var t in e)if(e.hasOwnProperty(t))for(var n=e[t],r=0;r<n.length;r++)try{var o=n[r];u[t](o)}catch(e){console.log("CableReady detected an error in ".concat(t,"! ").concat(e.message))}}}]);/;" f
49
- text_content lib/cable_ready/channel.rb /^ def text_content(options={})$/;" f class:CableReady.Channel
50
- window.CableReady.n app/assets/javascripts/cable_ready.js /^window.CableReady=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";var r,o="http:\/\/www.w3.org\/1999\/xhtml",u="undefined"==typeof document?void 0:document,c=u?u.body||u.createElement("div"):{},i=c.hasAttributeNS?function(e,t,n){return e.hasAttributeNS(t,n)}:c.hasAttribute?function(e,t,n){return e.hasAttribute(n)}:function(e,t,n){return null!=e.getAttributeNode(t,n)};function a(e,t){var n=e.nodeName,r=t.nodeName;return n===r||!!(t.actualize&&n.charCodeAt(0)<91&&r.charCodeAt(0)>90)&&n===r.toUpperCase()}function l(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n,""))}var d={OPTION:function(e,t){l(e,t,"selected")},INPUT:function(e,t){l(e,t,"checked"),l(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),i(t,null,"value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n);var r=e.firstChild;if(r){var o=r.nodeValue;if(o==n||!n&&o==e.placeholder)return;r.nodeValue=n}},SELECT:function(e,t){if(!i(t,null,"multiple")){for(var n=0,r=t.firstChild;r;){var o=r.nodeName;if(o&&"OPTION"===o.toUpperCase()){if(i(r,null,"selected")){n;break}n++}r=r.nextSibling}e.selectedIndex=n}}},f=1,s=3,m=8;function v(){}function p(e){return e.id}var S=function(e){return function(t,n,c){if(c||(c={}),"string"==typeof n)if("#document"===t.nodeName||"HTML"===t.nodeName){var i=n;(n=u.createElement("html")).innerHTML=i}else n=function(e){var t;return!r&&u.createRange&&(r=u.createRange()).selectNode(u.body),r&&r.createContextualFragment?t=r.createContextualFragment(e):(t=u.createElement("body")).innerHTML=e,t.childNodes[0]}(n);var l,S=c.getNodeKey||p,b=c.onBeforeNodeAdded||v,y=c.onNodeAdded||v,h=c.onBeforeElUpdated||v,N=c.onElUpdated||v,g=c.onBeforeNodeDiscarded||v,C=c.onNodeDiscarded||v,A=c.onBeforeElChildrenUpdated||v,x=!0===c.childrenOnly,T={};function E(e){l?l.push(e):l=[e]}function q(e,t,n){!1!==g(e)&&(t&&t.removeChild(e),C(e),function e(t,n){if(t.nodeType===f)for(var r=t.firstChild;r;){var o=void 0;n&&(o=S(r))?E(o):(C(r),r.firstChild&&e(r,n)),r=r.nextSibling}}(e,n))}function O(e){y(e);for(var t=e.firstChild;t;){var n=t.nextSibling,r=S(t);if(r){var o=T[r];o&&a(t,o)&&(t.parentNode.replaceChild(o,t),j(o,t))}O(t),t=n}}function j(r,o,c){var i,l=S(o);if(l&&delete T[l],!n.isSameNode||!n.isSameNode(t)){if(!c){if(!1===h(r,o))return;if(e(r,o),N(r),!1===A(r,o))return}if("TEXTAREA"!==r.nodeName){var v,p,y,g,C=o.firstChild,x=r.firstChild;e:for(;C;){for(y=C.nextSibling,v=S(C);x;){if(p=x.nextSibling,C.isSameNode&&C.isSameNode(x)){C=y,x=p;continue e}i=S(x);var w=x.nodeType,M=void 0;if(w===C.nodeType&&(w===f?(v?v!==i&&((g=T[v])?x.nextSibling===g?M=!1:(r.insertBefore(g,x),p=x.nextSibling,i?E(i):q(x,r,!0),x=g):M=!1):i&&(M=!1),(M=!1!==M&&a(x,C))&&j(x,C)):w!==s&&w!=m||(M=!0,x.nodeValue!==C.nodeValue&&(x.nodeValue=C.nodeValue))),M){C=y,x=p;continue e}i?E(i):q(x,r,!0),x=p}if(v&&(g=T[v])&&a(g,C))r.appendChild(g),j(g,C);else{var V=b(C);!1!==V&&(V&&(C=V),C.actualize&&(C=C.actualize(r.ownerDocument||u)),r.appendChild(C),O(C))}C=y,x=p}for(;x;)p=x.nextSibling,(i=S(x))?E(i):q(x,r,!0),x=p}var L=d[r.nodeName];L&&L(r,o)}}!function e(t){if(t.nodeType===f)for(var n=t.firstChild;n;){var r=S(n);r&&(T[r]=n),e(n),n=n.nextSibling}}(t);var w=t,M=w.nodeType,V=n.nodeType;if(!x)if(M===f)V===f?a(t,n)||(C(t),w=function(e,t){for(var n=e.firstChild;n;){var r=n.nextSibling;t.appendChild(n),n=r}return t}(t,function(e,t){return t&&t!==o?u.createElementNS(t,e):u.createElement(e)}(n.nodeName,n.namespaceURI))):w=n;else if(M===s||M===m){if(V===M)return w.nodeValue!==n.nodeValue&&(w.nodeValue=n.nodeValue),w;w=n}if(w===n)C(t);else if(j(w,n,x),l)for(var L=0,P=l.length;L<P;L++){var H=T[l[L]];H&&q(H,H.parentNode,!1)}return!x&&w!==t&&t.parentNode&&(w.actualize&&(w=w.actualize(t.ownerDocument||u)),t.parentNode.replaceChild(w,t)),w}}(function(e,t){var n,r,o,u,c,a=t.attributes;for(n=a.length-1;n>=0;--n)o=(r=a[n]).name,u=r.namespaceURI,c=r.value,u?(o=r.localName||o,e.getAttributeNS(u,o)!==c&&e.setAttributeNS(u,o,c)):e.getAttribute(o)!==c&&e.setAttribute(o,c);for(n=(a=e.attributes).length-1;n>=0;--n)!1!==(r=a[n]).specified&&(o=r.name,(u=r.namespaceURI)?(o=r.localName||o,i(t,u,o)||e.removeAttributeNS(u,o)):i(t,null,o)||e.removeAttribute(o))});e.exports=S},function(e,t,n){"use strict";n.r(t),n.d(t,"perform",function(){return c});var r=n(0),o=n.n(r),u={dispatchEvent:function(e){var t=document;e.selector&&(t=document.querySelector(e.selector)||document);var n=new Event(e.name);n.detail=e.detail,t.dispatchEvent(n)},morph:function(e){var t=document.createElement("template");t.innerHTML=String(e.html).trim(),u.dispatchEvent({name:"cable-ready:before-morph",detail:{content:t.content}}),o()(document.querySelector(e.selector),t.content,{childrenOnly:!!e.childrenOnly}),u.dispatchEvent({name:"cable-ready:after-morph"}),e.focusSelector&&document.querySelector(e.focusSelector).focus()},innerHtml:function(e){document.querySelector(e.selector).innerHTML=e.html,e.focusSelector&&document.querySelector(e.focusSelector).focus()},textContent:function(e){document.querySelector(e.selector).textContent=e.text},insertAdjacentHtml:function(e){document.querySelector(e.selector).insertAdjacentHTML(e.position||"beforeend",e.html),e.focusSelector&&document.querySelector(e.focusSelector).focus()},insertAdjacentText:function(e){document.querySelector(e.querySelector).insertAdjacentText(e.position||"beforeend",e.text)},remove:function(e){document.querySelector(e.selector).remove(),e.focusSelector&&document.querySelector(e.focusSelector).focus()},replace:function(e){document.querySelector(e.selector);document.createElement("div").innerHTML=e.html,e.focusSelector&&document.querySelector(e.focusSelector).focus()},setValue:function(e){document.querySelector(e.selector).value=e.value},setAttribute:function(e){document.querySelector(e.selector).setAttribute(e.name,e.value)},removeAttribute:function(e){document.querySelector(e.selector).removeAttribute(e.name)},addCssClass:function(e){document.querySelector(e.selector).classList.add(e.name)},removeCssClass:function(e){document.querySelector(e.selector).classList.remove(e.name)},setDatasetProperty:function(e){document.querySelector(e.selector).dataset[e.name]=e.value}},c=function(e){for(var t in e)if(e.hasOwnProperty(t))for(var n=e[t],r=0;r<n.length;r++)try{var o=n[r];u[t](o)}catch(e){console.log("CableReady detected an error in ".concat(t,"! ").concat(e.message))}}}]);/;" f
30
+ inner_html lib/cable_ready/channel.rb /^ def inner_html(options = {})$/;" f class:CableReady.Channel
31
+ insert_adjacent_html lib/cable_ready/channel.rb /^ def insert_adjacent_html(options = {})$/;" f class:CableReady.Channel
32
+ insert_adjacent_text lib/cable_ready/channel.rb /^ def insert_adjacent_text(options = {})$/;" f class:CableReady.Channel
33
+ morph lib/cable_ready/channel.rb /^ def morph(options = {})$/;" f class:CableReady.Channel
34
+ outer_html lib/cable_ready/channel.rb /^ def outer_html(options = {})$/;" f class:CableReady.Channel
35
+ remove lib/cable_ready/channel.rb /^ def remove(options = {})$/;" f class:CableReady.Channel
36
+ remove_attribute lib/cable_ready/channel.rb /^ def remove_attribute(options = {})$/;" f class:CableReady.Channel
37
+ remove_css_class lib/cable_ready/channel.rb /^ def remove_css_class(options = {})$/;" f class:CableReady.Channel
38
+ set_attribute lib/cable_ready/channel.rb /^ def set_attribute(options = {})$/;" f class:CableReady.Channel
39
+ set_cookie lib/cable_ready/channel.rb /^ def set_cookie(value)$/;" f class:CableReady.Channel
40
+ set_dataset_property lib/cable_ready/channel.rb /^ def set_dataset_property(options = {})$/;" f class:CableReady.Channel
41
+ set_value lib/cable_ready/channel.rb /^ def set_value(options = {})$/;" f class:CableReady.Channel
42
+ stub lib/cable_ready/channel.rb /^ def stub$/;" f class:CableReady.Channel
43
+ text_content lib/cable_ready/channel.rb /^ def text_content(options = {})$/;" f class:CableReady.Channel
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cable_ready
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.8
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-04 00:00:00.000000000 Z
11
+ date: 2020-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails