stimulus_reflex 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of stimulus_reflex might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68ad7cca15ec1ee63727348cc130ba802bd74f71f35e024641749d7e8bdacf1f
4
- data.tar.gz: 838f4180cec71f2418e9dad503fedd0d36b0354916563b0fc06ae410ecfbf037
3
+ metadata.gz: c37059ad37807d6c742c59bf9e3c6d52a57326d88041f12c5d49eacbe6721e63
4
+ data.tar.gz: 9bf0943ec2bb6d987a05d33f85417db38b6ffa1b766c458b9f90b7bda226b59b
5
5
  SHA512:
6
- metadata.gz: 76b3e5cc468cbfcca19dfc08fcca91d7582702ff38348a26d294e1dce672026b871cdf8411410f23ef69d4f0048fa82bea2f30620eb74acb0e2b569ee4a0ff1a
7
- data.tar.gz: 3cac0e9e06ed43205554c44ec24bf25939aee145c6e841b20a94414beacc149ada6de244f5013cbff86b49f20367a0b9e27d23f44d76dcb076ee82da5a9fa57a
6
+ metadata.gz: eb356c984aca6b7729af7b4d2097e80fbb961ce2f9e77b35ca088a40f48ca35417d1527a86a56edd2d06013eac3bac4d8e3f975657b073988191a0d90733f796
7
+ data.tar.gz: 4532896ca95f7263e1853c486c981d5e1ea398016cd52e6b80d255c385788ab86ca3a587395f8deaf1578a82cd322b4f789442b135322fa3bce6e3cbbc4f69ea
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stimulus_reflex (0.1.4)
4
+ stimulus_reflex (0.1.5)
5
5
  actioncable (>= 5.2.1)
6
6
  actionpack (>= 5.2.1)
7
7
  cable_ready (>= 2.0.5)
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Lines of Code](http://img.shields.io/badge/lines_of_code-128-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-123-brightgreen.svg?style=flat)](http://blog.codinghorror.com/the-best-code-is-no-code-at-all/)
2
2
 
3
3
  # StimulusReflex
4
4
 
@@ -23,11 +23,11 @@ gem "stimulus_reflex"
23
23
  ```
24
24
 
25
25
  ```javascript
26
- // javascript/controllers/example.js
26
+ // app/javascript/controllers/example.js
27
27
  import { Controller } from "stimulus"
28
28
 
29
29
  export default class extends Controller {
30
- initialize() {
30
+ connect() {
31
31
  StimulusReflex.register(this);
32
32
  }
33
33
 
@@ -1,3 +1,3 @@
1
1
  module StimulusReflex
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -1 +1 @@
1
- window.StimulusReflex=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){(function(e){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,c=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof e&&e&&e.Object===Object&&e,s="object"==typeof self&&self&&self.Object===Object&&self,p=l||s||Function("return this")(),d=Object.prototype.toString,v=Math.max,b=Math.min,y=function(){return p.Date.now()};function m(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function j(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&d.call(t)==i}(t))return r;if(m(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=m(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=f.test(t);return n||c.test(t)?a(t.slice(2),n?2:8):u.test(t)?r:+t}t.exports=function(t,e,r){var i,o,u,f,c,a,l=0,s=!1,p=!1,d=!0;if("function"!=typeof t)throw new TypeError(n);function x(e){var n=i,r=o;return i=o=void 0,l=e,f=t.apply(r,n)}function g(t){var n=t-a;return void 0===a||n>=e||n<0||p&&t-l>=u}function h(){var t=y();if(g(t))return w(t);c=setTimeout(h,function(t){var n=e-(t-a);return p?b(n,u-(t-l)):n}(t))}function w(t){return c=void 0,d&&i?x(t):(i=o=void 0,f)}function O(){var t=y(),n=g(t);if(i=arguments,o=this,a=t,n){if(void 0===c)return function(t){return l=t,c=setTimeout(h,e),s?x(t):f}(a);if(p)return c=setTimeout(h,e),x(a)}return void 0===c&&(c=setTimeout(h,e)),f}return e=j(e)||0,m(r)&&(s=!!r.leading,u=(p="maxWait"in r)?v(j(r.maxWait)||0,e):u,d="trailing"in r?!!r.trailing:d),O.cancel=function(){void 0!==c&&clearTimeout(c),l=0,i=a=o=c=void 0},O.flush=function(){return void 0===c?f:w(y())},O}}).call(this,n(1))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n.n(r);window.App=window.App||{},App.cable=App.cable||ActionCable.createConsumer(),App.stimulusReflex=App.stimulusReflex||App.cable.subscriptions.create("StimulusReflex::Channel",{received:function(t){t.cableReady&&u(t.operations)}});var o=i()(function(t){return App.stimulusReflex.send(t)},250,{}),u=i()(function(t){CableReady.perform(t),document.dispatchEvent(new Event("turbolinks:load"))},200,{}),f={send:function(){var t=Array.prototype.slice.call(arguments),e=t.shift();o({url:location.href,target:e,args:t})}};n.d(e,"controllers",function(){return c}),n.d(e,"register",function(){return a});var c={},a=function(t){return c[t.identifier]||(Object.assign(t,f),c[t.identifier]=t),t}}]);
1
+ window.StimulusReflex=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){(function(e){var n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof e&&e&&e.Object===Object&&e,s="object"==typeof self&&self&&self.Object===Object&&self,p=l||s||Function("return this")(),d=Object.prototype.toString,b=Math.max,v=Math.min,y=function(){return p.Date.now()};function m(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function j(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&d.call(t)==o}(t))return r;if(m(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=m(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var n=c.test(t);return n||f.test(t)?a(t.slice(2),n?2:8):u.test(t)?r:+t}t.exports=function(t,e,r){var o,i,u,c,f,a,l=0,s=!1,p=!1,d=!0;if("function"!=typeof t)throw new TypeError(n);function x(e){var n=o,r=i;return o=i=void 0,l=e,c=t.apply(r,n)}function g(t){var n=t-a;return void 0===a||n>=e||n<0||p&&t-l>=u}function h(){var t=y();if(g(t))return w(t);f=setTimeout(h,function(t){var n=e-(t-a);return p?v(n,u-(t-l)):n}(t))}function w(t){return f=void 0,d&&o?x(t):(o=i=void 0,c)}function O(){var t=y(),n=g(t);if(o=arguments,i=this,a=t,n){if(void 0===f)return function(t){return l=t,f=setTimeout(h,e),s?x(t):c}(a);if(p)return f=setTimeout(h,e),x(a)}return void 0===f&&(f=setTimeout(h,e)),c}return e=j(e)||0,m(r)&&(s=!!r.leading,u=(p="maxWait"in r)?b(j(r.maxWait)||0,e):u,d="trailing"in r?!!r.trailing:d),O.cancel=function(){void 0!==f&&clearTimeout(f),l=0,o=a=i=f=void 0},O.flush=function(){return void 0===f?c:w(y())},O}}).call(this,n(2))},function(t,e,n){"use strict";n.r(e),n.d(e,"register",function(){return f});var r=n(0),o=n.n(r);window.App=window.App||{},App.cable=App.cable||ActionCable.createConsumer(),App.stimulusReflex=App.stimulusReflex||App.cable.subscriptions.create("StimulusReflex::Channel",{received:function(t){t.cableReady&&u(t.operations)}});var i=o()(function(t){return App.stimulusReflex.send(t)},250,{}),u=o()(function(t){CableReady.perform(t),document.dispatchEvent(new Event("turbolinks:load"))},200,{}),c={send:function(){var t=Array.prototype.slice.call(arguments),e=t.shift();i({url:location.href,target:e,args:t})}},f=function(t){return Object.assign(t,c),t}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n}]);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stimulus_reflex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins