cable_ready 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -9
- data/README.md +2 -0
- data/app/assets/javascripts/cable_ready.js +1 -1
- data/bin/deps +5 -0
- data/lib/cable_ready/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0afe729d16f2eb1a30dbca2a72a3cf76f48162e5ec9629a9776f7e0c2f6f529c
|
4
|
+
data.tar.gz: 16c548eb1197af15b8dff9410156edf8b8f200c1f81ea5ab8b984594b9293af6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbf0d1114a8fc4ea78923caa2d53565c210d01f1b4e4268f956b99c8c16cb9528208bb1bc579c6772b148357fcb754236166bb2ac20a65897c4f253622e0073f
|
7
|
+
data.tar.gz: 6370fae04446a42f4f422a59ba41ad395ab5a9114369329792cdba88521e533487eceacf98791547c67ad4c385f29225a831a832427704f9faf793426af5b01a
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cable_ready (3.0.
|
4
|
+
cable_ready (3.0.1)
|
5
5
|
activesupport (>= 5.0.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (5.2.
|
10
|
+
activesupport (5.2.3)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 0.7, < 2)
|
13
13
|
minitest (~> 5.1)
|
@@ -25,9 +25,9 @@ GEM
|
|
25
25
|
jaro_winkler (1.5.2)
|
26
26
|
method_source (0.9.2)
|
27
27
|
minitest (5.11.3)
|
28
|
-
os (1.0.
|
29
|
-
parallel (1.
|
30
|
-
parser (2.6.
|
28
|
+
os (1.0.1)
|
29
|
+
parallel (1.17.0)
|
30
|
+
parser (2.6.3.0)
|
31
31
|
ast (~> 2.4.0)
|
32
32
|
pry (0.12.2)
|
33
33
|
coderay (~> 1.1.0)
|
@@ -50,7 +50,7 @@ GEM
|
|
50
50
|
psych (3.1.0)
|
51
51
|
rainbow (3.0.0)
|
52
52
|
rake (12.3.2)
|
53
|
-
rubocop (0.
|
53
|
+
rubocop (0.67.2)
|
54
54
|
jaro_winkler (~> 1.5.1)
|
55
55
|
parallel (~> 1.10)
|
56
56
|
parser (>= 2.5, != 2.5.1.1)
|
@@ -59,8 +59,8 @@ GEM
|
|
59
59
|
ruby-progressbar (~> 1.7)
|
60
60
|
unicode-display_width (>= 1.4.0, < 1.6)
|
61
61
|
ruby-progressbar (1.10.0)
|
62
|
-
standard (0.0.
|
63
|
-
rubocop (
|
62
|
+
standard (0.0.39)
|
63
|
+
rubocop (~> 0.67.1)
|
64
64
|
standardrb (1.0.0)
|
65
65
|
standard
|
66
66
|
thread_safe (0.3.6)
|
@@ -78,4 +78,4 @@ DEPENDENCIES
|
|
78
78
|
standardrb
|
79
79
|
|
80
80
|
BUNDLED WITH
|
81
|
-
|
81
|
+
2.0.1
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
[![Lines of Code](http://img.shields.io/badge/lines_of_code-238-brightgreen.svg?style=flat)](http://blog.codinghorror.com/the-best-code-is-no-code-at-all/)
|
2
2
|
[![Code Status](https://img.shields.io/codeclimate/maintainability/hopsoft/cable_ready.svg?style=flat)](https://codeclimate.com/github/hopsoft/cable_ready)
|
3
|
+
[![Ruby Dependency Graph](https://img.shields.io/badge/deps-ruby-informational.svg?style=flat)](https://github.com/hopsoft/cable_ready/blob/master/gem_graph.svg)
|
4
|
+
[![JavaScript Dependency Graph](https://img.shields.io/badge/deps-javascript-informational.svg?style=flat)](https://github.com/hopsoft/cable_ready/blob/master/javascript_graph.txt)
|
3
5
|
|
4
6
|
# CableReady
|
5
7
|
|
@@ -1 +1 @@
|
|
1
|
-
window.CableReady=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=
|
1
|
+
window.CableReady=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";var n;r.r(t);var o="http://www.w3.org/1999/xhtml",a="undefined"==typeof document?void 0:document;function c(e,t){var r=e.nodeName,n=t.nodeName;return r===n||!!(t.actualize&&r.charCodeAt(0)<91&&n.charCodeAt(0)>90)&&r===n.toUpperCase()}function l(e,t,r){e[r]!==t[r]&&(e[r]=t[r],e[r]?e.setAttribute(r,""):e.removeAttribute(r))}var i={OPTION:function(e,t){var r=e.parentNode;if(r){var n=r.nodeName.toUpperCase();"OPTGROUP"===n&&(n=(r=r.parentNode)&&r.nodeName.toUpperCase()),"SELECT"!==n||r.hasAttribute("multiple")||(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),r.selectedIndex=-1)}l(e,t,"selected")},INPUT:function(e,t){l(e,t,"checked"),l(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var r=t.value;e.value!==r&&(e.value=r);var n=e.firstChild;if(n){var o=n.nodeValue;if(o==r||!r&&o==e.placeholder)return;n.nodeValue=r}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var r,n,o=-1,a=0,c=e.firstChild;c;)if("OPTGROUP"===(n=c.nodeName&&c.nodeName.toUpperCase()))c=(r=c).firstChild;else{if("OPTION"===n){if(c.hasAttribute("selected")){o=a;break}a++}!(c=c.nextSibling)&&r&&(c=r.nextSibling,r=null)}e.selectedIndex=o}}},u=1,d=11,f=3,s=8;function m(){}function b(e){return e.id}var v=function(e){return function(t,r,l){if(l||(l={}),"string"==typeof r)if("#document"===t.nodeName||"HTML"===t.nodeName){var v=r;(r=a.createElement("html")).innerHTML=v}else r=function(e){var t;return!n&&a.createRange&&(n=a.createRange()).selectNode(a.body),n&&n.createContextualFragment?t=n.createContextualFragment(e):(t=a.createElement("body")).innerHTML=e,t.childNodes[0]}(r);var y,p=l.getNodeKey||b,h=l.onBeforeNodeAdded||m,S=l.onNodeAdded||m,N=l.onBeforeElUpdated||m,A=l.onElUpdated||m,C=l.onBeforeNodeDiscarded||m,g=l.onNodeDiscarded||m,T=l.onBeforeElChildrenUpdated||m,x=!0===l.childrenOnly,E={};function q(e){y?y.push(e):y=[e]}function O(e,t,r){!1!==C(e)&&(t&&t.removeChild(e),g(e),function e(t,r){if(t.nodeType===u)for(var n=t.firstChild;n;){var o=void 0;r&&(o=p(n))?q(o):(g(n),n.firstChild&&e(n,r)),n=n.nextSibling}}(e,r))}function j(e){S(e);for(var t=e.firstChild;t;){var r=t.nextSibling,n=p(t);if(n){var o=E[n];o&&c(t,o)&&(t.parentNode.replaceChild(o,t),P(o,t))}j(t),t=r}}function P(n,o,l){var d=p(o);if(d&&delete E[d],!r.isSameNode||!r.isSameNode(t)){if(!l){if(!1===N(n,o))return;if(e(n,o),A(n),!1===T(n,o))return}"TEXTAREA"!==n.nodeName?function(e,t){var r,n,o,l,d,m=t.firstChild,b=e.firstChild;e:for(;m;){for(l=m.nextSibling,r=p(m);b;){if(o=b.nextSibling,m.isSameNode&&m.isSameNode(b)){m=l,b=o;continue e}n=p(b);var v=b.nodeType,y=void 0;if(v===m.nodeType&&(v===u?(r?r!==n&&((d=E[r])?o===d?y=!1:(e.insertBefore(d,b),n?q(n):O(b,e,!0),b=d):y=!1):n&&(y=!1),(y=!1!==y&&c(b,m))&&P(b,m)):v!==f&&v!=s||(y=!0,b.nodeValue!==m.nodeValue&&(b.nodeValue=m.nodeValue))),y){m=l,b=o;continue e}n?q(n):O(b,e,!0),b=o}if(r&&(d=E[r])&&c(d,m))e.appendChild(d),P(d,m);else{var S=h(m);!1!==S&&(S&&(m=S),m.actualize&&(m=m.actualize(e.ownerDocument||a)),e.appendChild(m),j(m))}m=l,b=o}!function(e,t,r){for(;t;){var n=t.nextSibling;(r=p(t))?q(r):O(t,e,!0),t=n}}(e,b,n);var N=i[e.nodeName];N&&N(e,t)}(n,o):i.TEXTAREA(n,o)}}!function e(t){if(t.nodeType===u||t.nodeType===d)for(var r=t.firstChild;r;){var n=p(r);n&&(E[n]=r),e(r),r=r.nextSibling}}(t);var U=t,R=U.nodeType,w=r.nodeType;if(!x)if(R===u)w===u?c(t,r)||(g(t),U=function(e,t){for(var r=e.firstChild;r;){var n=r.nextSibling;t.appendChild(r),r=n}return t}(t,function(e,t){return t&&t!==o?a.createElementNS(t,e):a.createElement(e)}(r.nodeName,r.namespaceURI))):U=r;else if(R===f||R===s){if(w===R)return U.nodeValue!==r.nodeValue&&(U.nodeValue=r.nodeValue),U;U=r}if(U===r)g(t);else if(P(U,r,x),y)for(var L=0,M=y.length;L<M;L++){var V=E[y[L]];V&&O(V,V.parentNode,!1)}return!x&&U!==t&&t.parentNode&&(U.actualize&&(U=U.actualize(t.ownerDocument||a)),t.parentNode.replaceChild(U,t)),U}}(function(e,t){var r,n,o,a,c,l=t.attributes;for(r=l.length-1;r>=0;--r)o=(n=l[r]).name,a=n.namespaceURI,c=n.value,a?(o=n.localName||o,e.getAttributeNS(a,o)!==c&&e.setAttributeNS(a,o,c)):e.getAttribute(o)!==c&&e.setAttribute(o,c);for(r=(l=e.attributes).length-1;r>=0;--r)!1!==(n=l[r]).specified&&(o=n.name,(a=n.namespaceURI)?(o=n.localName||o,t.hasAttributeNS(a,o)||e.removeAttributeNS(a,o)):t.hasAttribute(o)||e.removeAttribute(o))});r.d(t,"perform",function(){return h});var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p.dispatchEvent({name:e,detail:t})},p={dispatchEvent:function(e){var t=document;e.selector&&(t=document.querySelector(e.selector)||document);var r=new Event(e.name);r.detail=e.detail,t.dispatchEvent(r)},morph:function(e){var t=document.createElement("template");t.innerHTML=String(e.html).trim(),y("cable-ready:before-morph",{config:e,content:t.content}),v(document.querySelector(e.selector),t.content,{childrenOnly:!!e.childrenOnly}),e.focusSelector&&document.querySelector(e.focusSelector).focus(),y("cable-ready:after-morph",{config:e,content:t.content})},innerHtml:function(e){y("cable-ready:before-inner-html",e),document.querySelector(e.selector).innerHTML=e.html,e.focusSelector&&document.querySelector(e.focusSelector).focus(),y("cable-ready:after-inner-html",e)},outerHtml:function(e){y("cable-ready:before-outer-html",e),document.querySelector(e.selector).outerHTML=e.html,e.focusSelector&&document.querySelector(e.focusSelector).focus(),y("cable-ready:after-outer-html",e)},textContent:function(e){y("cable-ready:before-text-content",e),document.querySelector(e.selector).textContent=e.text,y("cable-ready:after-text-content",e)},insertAdjacentHtml:function(e){y("cable-ready:before-insert-adjacent-html",e),document.querySelector(e.selector).insertAdjacentHTML(e.position||"beforeend",e.html),e.focusSelector&&document.querySelector(e.focusSelector).focus(),y("cable-ready:after-insert-adjacent-html",e)},insertAdjacentText:function(e){y("cable-ready:before-insert-adjacent-text",e),document.querySelector(e.querySelector).insertAdjacentText(e.position||"beforeend",e.text),y("cable-ready:after-insert-adjacent-text",e)},remove:function(e){y("cable-ready:before-remove",e),document.querySelector(e.selector).remove(),e.focusSelector&&document.querySelector(e.focusSelector).focus(),y("cable-ready:after-remove",e)},setValue:function(e){y("cable-ready:before-set-value",e),document.querySelector(e.selector).value=e.value,y("cable-ready:after-set-value",e)},setAttribute:function(e){y("cable-ready:before-set-attribute",e),document.querySelector(e.selector).setAttribute(e.name,e.value),y("cable-ready:after-set-attribute",e)},removeAttribute:function(e){y("cable-ready:before-remove-attribute",e),document.querySelector(e.selector).removeAttribute(e.name),y("cable-ready:after-remove-attribute",e)},addCssClass:function(e){y("cable-ready:before-add-css-class",e),document.querySelector(e.selector).classList.add(e.name),y("cable-ready:after-add-css-class",e)},removeCssClass:function(e){y("cable-ready:before-remove-css-class",e),document.querySelector(e.selector).classList.remove(e.name),y("cable-ready:after-remove-css-class",e)},setDatasetProperty:function(e){y("cable-ready:before-set-dataset-property",e),document.querySelector(e.selector).dataset[e.name]=e.value,y("cable-ready:after-set-dataset-property",e)}},h=function(e){for(var t in e)if(e.hasOwnProperty(t))for(var r=e[t],n=0;n<r.length;n++)try{var o=r[n];p[t](o)}catch(e){console.log("CableReady detected an error in ".concat(t,"! ").concat(e.message))}}}]);
|
data/bin/deps
ADDED
data/lib/cable_ready/version.rb
CHANGED
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: 3.0.
|
4
|
+
version: 3.0.1
|
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
|
+
date: 2019-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- app/assets/javascripts/cable_ready.js
|
82
82
|
- bin/cloc
|
83
83
|
- bin/console
|
84
|
+
- bin/deps
|
84
85
|
- bin/setup
|
85
86
|
- bin/standardize
|
86
87
|
- bin/webpack
|