stimulus_reflex 0.3.1 → 0.3.2
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 +4 -4
- data/Gemfile.lock +22 -24
- data/README.md +3 -3
- data/app/assets/javascripts/stimulus_reflex.js +1 -1
- data/bin/cloc +3 -0
- data/bin/standardize +4 -0
- data/lib/stimulus_reflex/version.rb +1 -1
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f83c9d7ec54daaee156820a2f2cc8443ce559955bf63fba82f1fb8d733ff951
|
4
|
+
data.tar.gz: bc0b504e5d2ce9191b137029e92534cfd466a6bdfb9ad8b6f7e0deeb873eb6b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 973458b920d7c6bc2ffc84b74ed490b0c6abd89153f907ad46aa361a2e4266f55ea1fe11ffc9f5e1b853597e8069707bfc0086307747d2204019c14f246e4213
|
7
|
+
data.tar.gz: 1b9af609e968a7738d6b6b8c00704dc28cfd74e15c44961b846628fea145e8088c095a626ba26c77feeb24b66c84067370e54c3f7aec27e899bd1da022948b48
|
data/Gemfile.lock
CHANGED
@@ -1,46 +1,46 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
stimulus_reflex (0.3.
|
4
|
+
stimulus_reflex (0.3.2)
|
5
5
|
actioncable (>= 5.2.1)
|
6
6
|
actionpack (>= 5.2.1)
|
7
|
-
cable_ready (>=
|
7
|
+
cable_ready (>= 3.0.0)
|
8
8
|
nokogiri
|
9
9
|
rack
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
actioncable (5.2.2)
|
15
|
-
actionpack (= 5.2.2)
|
14
|
+
actioncable (5.2.2.1)
|
15
|
+
actionpack (= 5.2.2.1)
|
16
16
|
nio4r (~> 2.0)
|
17
17
|
websocket-driver (>= 0.6.1)
|
18
|
-
actionpack (5.2.2)
|
19
|
-
actionview (= 5.2.2)
|
20
|
-
activesupport (= 5.2.2)
|
18
|
+
actionpack (5.2.2.1)
|
19
|
+
actionview (= 5.2.2.1)
|
20
|
+
activesupport (= 5.2.2.1)
|
21
21
|
rack (~> 2.0)
|
22
22
|
rack-test (>= 0.6.3)
|
23
23
|
rails-dom-testing (~> 2.0)
|
24
24
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
25
|
-
actionview (5.2.2)
|
26
|
-
activesupport (= 5.2.2)
|
25
|
+
actionview (5.2.2.1)
|
26
|
+
activesupport (= 5.2.2.1)
|
27
27
|
builder (~> 3.1)
|
28
28
|
erubi (~> 1.4)
|
29
29
|
rails-dom-testing (~> 2.0)
|
30
30
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
31
|
-
activesupport (5.2.2)
|
31
|
+
activesupport (5.2.2.1)
|
32
32
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
33
33
|
i18n (>= 0.7, < 2)
|
34
34
|
minitest (~> 5.1)
|
35
35
|
tzinfo (~> 1.1)
|
36
36
|
ast (2.4.0)
|
37
37
|
builder (3.2.3)
|
38
|
-
cable_ready (
|
38
|
+
cable_ready (3.0.0)
|
39
39
|
activesupport (>= 5.0.0)
|
40
|
-
concurrent-ruby (1.1.
|
40
|
+
concurrent-ruby (1.1.5)
|
41
41
|
crass (1.0.4)
|
42
42
|
erubi (1.8.0)
|
43
|
-
i18n (1.
|
43
|
+
i18n (1.6.0)
|
44
44
|
concurrent-ruby (~> 1.0)
|
45
45
|
jaro_winkler (1.5.2)
|
46
46
|
loofah (2.2.3)
|
@@ -49,12 +49,11 @@ GEM
|
|
49
49
|
mini_portile2 (2.4.0)
|
50
50
|
minitest (5.11.3)
|
51
51
|
nio4r (2.3.1)
|
52
|
-
nokogiri (1.10.
|
52
|
+
nokogiri (1.10.2)
|
53
53
|
mini_portile2 (~> 2.4.0)
|
54
|
-
parallel (1.
|
55
|
-
parser (2.6.
|
54
|
+
parallel (1.15.0)
|
55
|
+
parser (2.6.2.0)
|
56
56
|
ast (~> 2.4.0)
|
57
|
-
powerpack (0.1.2)
|
58
57
|
psych (3.1.0)
|
59
58
|
rack (2.0.6)
|
60
59
|
rack-test (1.1.0)
|
@@ -66,24 +65,23 @@ GEM
|
|
66
65
|
loofah (~> 2.2, >= 2.2.2)
|
67
66
|
rainbow (3.0.0)
|
68
67
|
rake (12.3.2)
|
69
|
-
rubocop (0.
|
68
|
+
rubocop (0.66.0)
|
70
69
|
jaro_winkler (~> 1.5.1)
|
71
70
|
parallel (~> 1.10)
|
72
71
|
parser (>= 2.5, != 2.5.1.1)
|
73
|
-
powerpack (~> 0.1)
|
74
72
|
psych (>= 3.1.0)
|
75
73
|
rainbow (>= 2.2.2, < 4.0)
|
76
74
|
ruby-progressbar (~> 1.7)
|
77
|
-
unicode-display_width (
|
75
|
+
unicode-display_width (>= 1.4.0, < 1.6)
|
78
76
|
ruby-progressbar (1.10.0)
|
79
|
-
standard (0.0.
|
77
|
+
standard (0.0.36)
|
80
78
|
rubocop (>= 0.63)
|
81
79
|
standardrb (1.0.0)
|
82
80
|
standard
|
83
81
|
thread_safe (0.3.6)
|
84
82
|
tzinfo (1.2.5)
|
85
83
|
thread_safe (~> 0.1)
|
86
|
-
unicode-display_width (1.
|
84
|
+
unicode-display_width (1.5.0)
|
87
85
|
websocket-driver (0.7.0)
|
88
86
|
websocket-extensions (>= 0.1.0)
|
89
87
|
websocket-extensions (0.1.3)
|
@@ -92,10 +90,10 @@ PLATFORMS
|
|
92
90
|
ruby
|
93
91
|
|
94
92
|
DEPENDENCIES
|
95
|
-
bundler (~>
|
93
|
+
bundler (~> 2.0)
|
96
94
|
rake
|
97
95
|
standardrb
|
98
96
|
stimulus_reflex!
|
99
97
|
|
100
98
|
BUNDLED WITH
|
101
|
-
|
99
|
+
2.0.1
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[![Lines of Code](http://img.shields.io/badge/lines_of_code-
|
1
|
+
[![Lines of Code](http://img.shields.io/badge/lines_of_code-161-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/2b24fdbd1ae37a24bedb/maintainability)](https://codeclimate.com/github/hopsoft/stimulus_reflex/maintainability)
|
3
3
|
|
4
4
|
# StimulusReflex
|
@@ -102,10 +102,10 @@ and is typically loaded before the default ActionCable initialization code.
|
|
102
102
|
|
103
103
|
The page is always rerendered after triggering a `StimulusReflex`.
|
104
104
|
The client side JavaScript debounces this render via `setTimeout` to prevent a jarring user experience.
|
105
|
-
The default delay of `
|
105
|
+
The default delay of `200ms` can be overriddend with the following JavaScript.
|
106
106
|
|
107
107
|
```javascript
|
108
|
-
StimulusReflex.renderDelay =
|
108
|
+
StimulusReflex.renderDelay = 100;
|
109
109
|
```
|
110
110
|
|
111
111
|
## Instrumentation
|
@@ -1 +1 @@
|
|
1
|
-
window.StimulusReflex=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=0)}([function(e,t,n){"use strict";var r;n.r(t),n.d(t,"register",function(){return u});document.addEventListener("DOMContentLoaded",function(){document.querySelector("body[data-cable]")&&(window.App||(window.App={}),App.cable||(App.cable=ActionCable.createConsumer()),App.stimulusReflex||(App.stimulusReflex=App.cable.subscriptions.create("StimulusReflex::Channel",{received:function(e){e.cableReady&&(clearTimeout(r),r=setTimeout(function(){CableReady.perform(e.operations)},StimulusReflex.renderDelay||
|
1
|
+
window.StimulusReflex=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=0)}([function(e,t,n){"use strict";var r;n.r(t),n.d(t,"register",function(){return u});document.addEventListener("DOMContentLoaded",function(){document.querySelector("body[data-cable]")&&(window.App||(window.App={}),App.cable||(App.cable=ActionCable.createConsumer()),App.stimulusReflex||(App.stimulusReflex=App.cable.subscriptions.create("StimulusReflex::Channel",{received:function(e){e.cableReady&&(clearTimeout(r),r=setTimeout(function(){CableReady.perform(e.operations)},StimulusReflex.renderDelay||200))}})))});var o={stimulate:function(){if(!App.stimulusReflex)throw"ActionCable connection not established! Don't foget to opt-in with: body[data-cable]";clearTimeout(r);var e=Array.prototype.slice.call(arguments),t=e.shift();App.stimulusReflex.send({url:location.href,target:t,args:e})}},u=function(e){return Object.assign(e,o),e}}]);
|
data/bin/cloc
ADDED
data/bin/standardize
ADDED
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.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Hopkins
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-03-
|
12
|
+
date: 2019-03-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
@@ -73,28 +73,28 @@ dependencies:
|
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: 3.0.0
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
83
|
+
version: 3.0.0
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: bundler
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '
|
90
|
+
version: '2.0'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
97
|
+
version: '2.0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: rake
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,8 +137,10 @@ files:
|
|
137
137
|
- README.md
|
138
138
|
- Rakefile
|
139
139
|
- app/assets/javascripts/stimulus_reflex.js
|
140
|
+
- bin/cloc
|
140
141
|
- bin/console
|
141
142
|
- bin/setup
|
143
|
+
- bin/standardize
|
142
144
|
- bin/webpack
|
143
145
|
- bin/yarn
|
144
146
|
- lib/stimulus_reflex.rb
|
@@ -164,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
166
|
- !ruby/object:Gem::Version
|
165
167
|
version: '0'
|
166
168
|
requirements: []
|
167
|
-
rubygems_version: 3.0.
|
169
|
+
rubygems_version: 3.0.3
|
168
170
|
signing_key:
|
169
171
|
specification_version: 4
|
170
172
|
summary: Build rich interactive UIs with standard Rails
|