cable_ready 4.0.7 → 4.0.8

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: 0e50431320c8001f455dcbc16f47eddc35752fb3e98b199861673ffc1f05d71f
4
- data.tar.gz: 9b510c240c183ffe9ead18c896bd5748e8e9305223006eec8968ada79e438595
3
+ metadata.gz: ae0c3f85371453e8fd03d33b157a35ec8a3fdb2cf50dd3c1f0b1cf59073c7ca5
4
+ data.tar.gz: 9d12e6bf55aed8a0e419d0b0f8d7abde22cea11e529f03a956596d35e020afcb
5
5
  SHA512:
6
- metadata.gz: 354e3e6b94cb9adef0a1428d30f1e571d0893204e1bdff3317502000d2d97e2747f8cfb8fdb3d04f818cc55ac506f87e0753aa67290b82b0844b53f4edec7090
7
- data.tar.gz: 267d1c79f31c10d070bdde344897ef6cfeae7e900924f1ac14d6e04eab216f969eb45f72c4faf55ad9a45ff0bfd1de4fb10d51336ee60f5d483a1f20c4589433
6
+ metadata.gz: 69386e5cd74b5852ebc95de7d236b7f791fd9bc1ef127815df929cea8491899a0e1ea991bc92e7cfff5f7df3de3ffc20bf9fb21d36c9463619b055e419959766
7
+ data.tar.gz: e00ec01c81d4adf99ccd5657fcc0f5fc531c53f1a035cebeb1204543e3857ab4f7fd02d0e83d32859bdc4d480d7276c97283875f218af89aad067725e1916b88
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cable_ready (4.0.7)
4
+ cable_ready (4.0.8)
5
5
  rails (>= 5.2)
6
6
 
7
7
  GEM
@@ -66,14 +66,14 @@ GEM
66
66
  builder (3.2.3)
67
67
  coderay (1.1.2)
68
68
  concurrent-ruby (1.1.5)
69
- crass (1.0.4)
69
+ crass (1.0.5)
70
70
  erubi (1.9.0)
71
71
  globalid (0.4.2)
72
72
  activesupport (>= 4.2.0)
73
- i18n (1.6.0)
73
+ i18n (1.7.0)
74
74
  concurrent-ruby (~> 1.0)
75
- jaro_winkler (1.5.3)
76
- loofah (2.3.0)
75
+ jaro_winkler (1.5.4)
76
+ loofah (2.3.1)
77
77
  crass (~> 1.0.2)
78
78
  nokogiri (>= 1.5.9)
79
79
  mail (2.7.1)
@@ -84,11 +84,11 @@ GEM
84
84
  mimemagic (0.3.3)
85
85
  mini_mime (1.0.2)
86
86
  mini_portile2 (2.4.0)
87
- minitest (5.12.2)
87
+ minitest (5.13.0)
88
88
  nio4r (2.5.2)
89
- nokogiri (1.10.4)
89
+ nokogiri (1.10.5)
90
90
  mini_portile2 (~> 2.4.0)
91
- parallel (1.17.0)
91
+ parallel (1.18.0)
92
92
  parser (2.6.5.0)
93
93
  ast (~> 2.4.0)
94
94
  pry (0.12.2)
@@ -117,8 +117,8 @@ GEM
117
117
  rails-dom-testing (2.0.3)
118
118
  activesupport (>= 4.2.0)
119
119
  nokogiri (>= 1.6)
120
- rails-html-sanitizer (1.2.0)
121
- loofah (~> 2.2, >= 2.2.2)
120
+ rails-html-sanitizer (1.3.0)
121
+ loofah (~> 2.3)
122
122
  railties (6.0.0)
123
123
  actionpack (= 6.0.0)
124
124
  activesupport (= 6.0.0)
@@ -127,26 +127,26 @@ GEM
127
127
  thor (>= 0.20.3, < 2.0)
128
128
  rainbow (3.0.0)
129
129
  rake (13.0.0)
130
- rubocop (0.72.0)
130
+ rubocop (0.75.1)
131
131
  jaro_winkler (~> 1.5.1)
132
132
  parallel (~> 1.10)
133
133
  parser (>= 2.6)
134
134
  rainbow (>= 2.2.2, < 4.0)
135
135
  ruby-progressbar (~> 1.7)
136
136
  unicode-display_width (>= 1.4.0, < 1.7)
137
- rubocop-performance (1.4.1)
137
+ rubocop-performance (1.5.0)
138
138
  rubocop (>= 0.71.0)
139
139
  ruby-progressbar (1.10.1)
140
- sprockets (3.7.2)
140
+ sprockets (4.0.0)
141
141
  concurrent-ruby (~> 1.0)
142
142
  rack (> 1, < 3)
143
143
  sprockets-rails (3.2.1)
144
144
  actionpack (>= 4.0)
145
145
  activesupport (>= 4.0)
146
146
  sprockets (>= 3.0.0)
147
- standard (0.1.4)
148
- rubocop (~> 0.72.0)
149
- rubocop-performance (~> 1.4.0)
147
+ standard (0.1.5)
148
+ rubocop (~> 0.75.0)
149
+ rubocop-performance (~> 1.5.0)
150
150
  standardrb (1.0.0)
151
151
  standard
152
152
  thor (0.20.3)
@@ -157,7 +157,7 @@ GEM
157
157
  websocket-driver (0.7.1)
158
158
  websocket-extensions (>= 0.1.0)
159
159
  websocket-extensions (0.1.4)
160
- zeitwerk (2.1.10)
160
+ zeitwerk (2.2.1)
161
161
 
162
162
  PLATFORMS
163
163
  ruby
@@ -170,4 +170,4 @@ DEPENDENCIES
170
170
  standardrb
171
171
 
172
172
  BUNDLED WITH
173
- 2.0.2
173
+ 1.16.6
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Lines of Code](http://img.shields.io/badge/lines_of_code-268-brightgreen.svg?style=flat)](http://blog.codinghorror.com/the-best-code-is-no-code-at-all/)
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
2
  [![Maintainability](https://api.codeclimate.com/v1/badges/83ddf1fee4af7e51a681/maintainability)](https://codeclimate.com/github/hopsoft/cable_ready/maintainability)
3
3
  ![Prettier-Standard](https://github.com/hopsoft/cable_ready/workflows/Prettier-Standard/badge.svg)
4
4
  ![StandardRB](https://github.com/hopsoft/cable_ready/workflows/StandardRB/badge.svg)
@@ -0,0 +1,21 @@
1
+ require File.expand_path("../lib/cable_ready/version", __FILE__)
2
+
3
+ Gem::Specification.new do |gem|
4
+ gem.name = "cable_ready"
5
+ gem.license = "MIT"
6
+ gem.version = CableReady::VERSION
7
+ gem.authors = ["Nathan Hopkins"]
8
+ gem.email = ["natehop@gmail.com"]
9
+ gem.homepage = "https://github.com/hopsoft/cable_ready"
10
+ gem.summary = "Out-of-Band Server Triggered DOM Operations"
11
+
12
+ gem.files = Dir["lib/**/*.rb", "app/assets/javascripts/cable_ready.js", "bin/*", "[A-Z]*"]
13
+ gem.test_files = Dir["test/**/*.rb"]
14
+
15
+ gem.add_dependency "rails", ">= 5.2"
16
+
17
+ gem.add_development_dependency "rake"
18
+ gem.add_development_dependency "standardrb"
19
+ gem.add_development_dependency "pry"
20
+ gem.add_development_dependency "pry-nav"
21
+ end
@@ -1,3 +1,3 @@
1
1
  module CableReady
2
- VERSION = "4.0.7"
2
+ VERSION = "4.0.8"
3
3
  end
data/tags ADDED
@@ -0,0 +1,50 @@
1
+ !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
2
+ !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
3
+ !_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
4
+ !_TAG_PROGRAM_NAME Exuberant Ctags //
5
+ !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
6
+ !_TAG_PROGRAM_VERSION 5.8 //
7
+ Broadcaster lib/cable_ready/broadcaster.rb /^ module Broadcaster$/;" m class:CableReady
8
+ CableReady lib/cable_ready.rb /^module CableReady$/;" m
9
+ CableReady lib/cable_ready/broadcaster.rb /^module CableReady$/;" m
10
+ CableReady lib/cable_ready/channel.rb /^module CableReady$/;" m
11
+ CableReady lib/cable_ready/channels.rb /^module CableReady$/;" m
12
+ CableReady lib/cable_ready/version.rb /^module CableReady$/;" m
13
+ Channel lib/cable_ready/channel.rb /^ class Channel$/;" c class:CableReady
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
17
+ [] 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
19
+ broadcast lib/cable_ready/channel.rb /^ def broadcast$/;" f class:CableReady.Channel
20
+ broadcast lib/cable_ready/channels.rb /^ def broadcast$/;" f class:CableReady.Channels
21
+ cable_ready lib/cable_ready/broadcaster.rb /^ def cable_ready$/;" f class:CableReady.Broadcaster
22
+ clear lib/cable_ready/channel.rb /^ def clear$/;" f class:CableReady.Channel
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
26
+ initialize lib/cable_ready/channel.rb /^ def initialize(name)$/;" f class:CableReady.Channel
27
+ 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
data/yarn.lock ADDED
@@ -0,0 +1,3 @@
1
+ # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+ # yarn lockfile v1
3
+
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.7
4
+ version: 4.0.8
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-10-05 00:00:00.000000000 Z
11
+ date: 2019-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -97,11 +97,14 @@ files:
97
97
  - bin/loc
98
98
  - bin/setup
99
99
  - bin/standardize
100
+ - cable_ready.gemspec
100
101
  - lib/cable_ready.rb
101
102
  - lib/cable_ready/broadcaster.rb
102
103
  - lib/cable_ready/channel.rb
103
104
  - lib/cable_ready/channels.rb
104
105
  - lib/cable_ready/version.rb
106
+ - tags
107
+ - yarn.lock
105
108
  homepage: https://github.com/hopsoft/cable_ready
106
109
  licenses:
107
110
  - MIT