cable_ready 4.4.0.pre0 → 4.4.0.pre1

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: f9e80c88ee4b5f489f4dae10d4fa4928ec1f2fe122045e079edfb60b67671c17
4
- data.tar.gz: 1785e8a0e3e44eb48c07c8dd5d78de0e7ccce0de26578d8e1aec0a3145f32376
3
+ metadata.gz: be824a0305f8417ebd3aee0bd8a64144e42b35a614f77f894b377c91613678e1
4
+ data.tar.gz: 5608ede1c9b6b00adf16e21eb4ebbe82ac6b5a1e1ef4ffabca235e00afadab23
5
5
  SHA512:
6
- metadata.gz: 99a851b96f1ec3165e690b3c8aba93a1ffb39776092bce8972164912ea65de51e8a0ce91043507ca1750259000afac3f1f099e190537362f5bcd8a859134d9a3
7
- data.tar.gz: 4cd74f4379d0e71ab516269df9cbd7804d673b77a5229f401c50cde36e2a4bed603db02e15b6487156f8e187510d8ed6dec76ee34691bd7bdb1c9b2b9f8eb595
6
+ metadata.gz: a0b76d5e5b31a40c17d949faf153f7490a5ad5cd9daded8b34812dc128d84125022c33ca9eb7ce0b0745f4d580356fa5cd780aa6e5e2edca1c9498d50aebbbc6
7
+ data.tar.gz: d8dae8b936daf39d8433048003e12c1397fce3594cfccbe1bfda400d8c738f7627152e0e71f241bae05ec2e8fc5b844225b6c99d8bdc558aa2d6cd2cd5a806df
@@ -1,8 +1,8 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/hopsoft/cable_ready/tree/HEAD)
3
+ ## [v4.4.0.pre0](https://github.com/hopsoft/cable_ready/tree/v4.4.0.pre0) (2020-09-02)
4
4
 
5
- [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.3.0...HEAD)
5
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.3.0...v4.4.0.pre0)
6
6
 
7
7
  **Implemented enhancements:**
8
8
 
@@ -1,62 +1,62 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cable_ready (4.4.0.pre0)
4
+ cable_ready (4.4.0.pre1)
5
5
  rails (>= 5.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (6.0.3.2)
11
- actionpack (= 6.0.3.2)
10
+ actioncable (6.0.3.3)
11
+ actionpack (= 6.0.3.3)
12
12
  nio4r (~> 2.0)
13
13
  websocket-driver (>= 0.6.1)
14
- actionmailbox (6.0.3.2)
15
- actionpack (= 6.0.3.2)
16
- activejob (= 6.0.3.2)
17
- activerecord (= 6.0.3.2)
18
- activestorage (= 6.0.3.2)
19
- activesupport (= 6.0.3.2)
14
+ actionmailbox (6.0.3.3)
15
+ actionpack (= 6.0.3.3)
16
+ activejob (= 6.0.3.3)
17
+ activerecord (= 6.0.3.3)
18
+ activestorage (= 6.0.3.3)
19
+ activesupport (= 6.0.3.3)
20
20
  mail (>= 2.7.1)
21
- actionmailer (6.0.3.2)
22
- actionpack (= 6.0.3.2)
23
- actionview (= 6.0.3.2)
24
- activejob (= 6.0.3.2)
21
+ actionmailer (6.0.3.3)
22
+ actionpack (= 6.0.3.3)
23
+ actionview (= 6.0.3.3)
24
+ activejob (= 6.0.3.3)
25
25
  mail (~> 2.5, >= 2.5.4)
26
26
  rails-dom-testing (~> 2.0)
27
- actionpack (6.0.3.2)
28
- actionview (= 6.0.3.2)
29
- activesupport (= 6.0.3.2)
27
+ actionpack (6.0.3.3)
28
+ actionview (= 6.0.3.3)
29
+ activesupport (= 6.0.3.3)
30
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.3.2)
35
- actionpack (= 6.0.3.2)
36
- activerecord (= 6.0.3.2)
37
- activestorage (= 6.0.3.2)
38
- activesupport (= 6.0.3.2)
34
+ actiontext (6.0.3.3)
35
+ actionpack (= 6.0.3.3)
36
+ activerecord (= 6.0.3.3)
37
+ activestorage (= 6.0.3.3)
38
+ activesupport (= 6.0.3.3)
39
39
  nokogiri (>= 1.8.5)
40
- actionview (6.0.3.2)
41
- activesupport (= 6.0.3.2)
40
+ actionview (6.0.3.3)
41
+ activesupport (= 6.0.3.3)
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.3.2)
47
- activesupport (= 6.0.3.2)
46
+ activejob (6.0.3.3)
47
+ activesupport (= 6.0.3.3)
48
48
  globalid (>= 0.3.6)
49
- activemodel (6.0.3.2)
50
- activesupport (= 6.0.3.2)
51
- activerecord (6.0.3.2)
52
- activemodel (= 6.0.3.2)
53
- activesupport (= 6.0.3.2)
54
- activestorage (6.0.3.2)
55
- actionpack (= 6.0.3.2)
56
- activejob (= 6.0.3.2)
57
- activerecord (= 6.0.3.2)
49
+ activemodel (6.0.3.3)
50
+ activesupport (= 6.0.3.3)
51
+ activerecord (6.0.3.3)
52
+ activemodel (= 6.0.3.3)
53
+ activesupport (= 6.0.3.3)
54
+ activestorage (6.0.3.3)
55
+ actionpack (= 6.0.3.3)
56
+ activejob (= 6.0.3.3)
57
+ activerecord (= 6.0.3.3)
58
58
  marcel (~> 0.3.1)
59
- activesupport (6.0.3.2)
59
+ activesupport (6.0.3.3)
60
60
  concurrent-ruby (~> 1.0, >= 1.0.2)
61
61
  i18n (>= 0.7, < 2)
62
62
  minitest (~> 5.1)
@@ -101,68 +101,69 @@ GEM
101
101
  minitest (5.14.2)
102
102
  multi_json (1.15.0)
103
103
  multipart-post (2.1.1)
104
- nio4r (2.5.2)
104
+ nio4r (2.5.4)
105
105
  nokogiri (1.10.10)
106
106
  mini_portile2 (~> 2.4.0)
107
107
  octokit (4.18.0)
108
108
  faraday (>= 0.9)
109
109
  sawyer (~> 0.8.0, >= 0.5.3)
110
110
  parallel (1.19.2)
111
- parser (2.7.1.4)
111
+ parser (2.7.1.5)
112
112
  ast (~> 2.4.1)
113
113
  pry (0.12.2)
114
114
  coderay (~> 1.1.0)
115
115
  method_source (~> 0.9.0)
116
116
  pry-nav (0.3.0)
117
117
  pry (>= 0.9.10, < 0.13.0)
118
- public_suffix (4.0.5)
118
+ public_suffix (4.0.6)
119
119
  rack (2.2.3)
120
120
  rack-test (1.1.0)
121
121
  rack (>= 1.0, < 3)
122
- rails (6.0.3.2)
123
- actioncable (= 6.0.3.2)
124
- actionmailbox (= 6.0.3.2)
125
- actionmailer (= 6.0.3.2)
126
- actionpack (= 6.0.3.2)
127
- actiontext (= 6.0.3.2)
128
- actionview (= 6.0.3.2)
129
- activejob (= 6.0.3.2)
130
- activemodel (= 6.0.3.2)
131
- activerecord (= 6.0.3.2)
132
- activestorage (= 6.0.3.2)
133
- activesupport (= 6.0.3.2)
122
+ rails (6.0.3.3)
123
+ actioncable (= 6.0.3.3)
124
+ actionmailbox (= 6.0.3.3)
125
+ actionmailer (= 6.0.3.3)
126
+ actionpack (= 6.0.3.3)
127
+ actiontext (= 6.0.3.3)
128
+ actionview (= 6.0.3.3)
129
+ activejob (= 6.0.3.3)
130
+ activemodel (= 6.0.3.3)
131
+ activerecord (= 6.0.3.3)
132
+ activestorage (= 6.0.3.3)
133
+ activesupport (= 6.0.3.3)
134
134
  bundler (>= 1.3.0)
135
- railties (= 6.0.3.2)
135
+ railties (= 6.0.3.3)
136
136
  sprockets-rails (>= 2.0.0)
137
137
  rails-dom-testing (2.0.3)
138
138
  activesupport (>= 4.2.0)
139
139
  nokogiri (>= 1.6)
140
140
  rails-html-sanitizer (1.3.0)
141
141
  loofah (~> 2.3)
142
- railties (6.0.3.2)
143
- actionpack (= 6.0.3.2)
144
- activesupport (= 6.0.3.2)
142
+ railties (6.0.3.3)
143
+ actionpack (= 6.0.3.3)
144
+ activesupport (= 6.0.3.3)
145
145
  method_source
146
146
  rake (>= 0.8.7)
147
147
  thor (>= 0.20.3, < 2.0)
148
148
  rainbow (3.0.0)
149
149
  rake (13.0.1)
150
- regexp_parser (1.7.1)
150
+ regexp_parser (1.8.0)
151
151
  retriable (3.1.2)
152
152
  rexml (3.2.4)
153
- rubocop (0.89.1)
153
+ rubocop (0.92.0)
154
154
  parallel (~> 1.10)
155
- parser (>= 2.7.1.1)
155
+ parser (>= 2.7.1.5)
156
156
  rainbow (>= 2.2.2, < 4.0)
157
157
  regexp_parser (>= 1.7)
158
158
  rexml
159
- rubocop-ast (>= 0.3.0, < 1.0)
159
+ rubocop-ast (>= 0.5.0)
160
160
  ruby-progressbar (~> 1.7)
161
161
  unicode-display_width (>= 1.4.0, < 2.0)
162
- rubocop-ast (0.3.0)
163
- parser (>= 2.7.1.4)
164
- rubocop-performance (1.7.1)
165
- rubocop (>= 0.82.0)
162
+ rubocop-ast (0.5.1)
163
+ parser (>= 2.7.1.5)
164
+ rubocop-performance (1.8.1)
165
+ rubocop (>= 0.87.0)
166
+ rubocop-ast (>= 0.4.0)
166
167
  ruby-progressbar (1.10.1)
167
168
  sawyer (0.8.2)
168
169
  addressable (>= 2.3.5)
@@ -170,13 +171,13 @@ GEM
170
171
  sprockets (4.0.2)
171
172
  concurrent-ruby (~> 1.0)
172
173
  rack (> 1, < 3)
173
- sprockets-rails (3.2.1)
174
+ sprockets-rails (3.2.2)
174
175
  actionpack (>= 4.0)
175
176
  activesupport (>= 4.0)
176
177
  sprockets (>= 3.0.0)
177
- standard (0.5.2)
178
- rubocop (~> 0.89.1)
179
- rubocop-performance (~> 1.7.1)
178
+ standard (0.7)
179
+ rubocop (= 0.92)
180
+ rubocop-performance (= 1.8.1)
180
181
  standardrb (1.0.0)
181
182
  standard
182
183
  thor (1.0.1)
data/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
  <img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-brightgreen.svg" target="_blank" />
12
12
  </a>
13
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-375-brightgreen.svg?style=flat" />
14
+ <img alt="Lines of Code" src="https://img.shields.io/badge/lines_of_code-403-brightgreen.svg?style=flat" />
15
15
  </a>
16
16
  <a href="https://cableready.stimulusreflex.com" target="_blank">
17
17
  <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
@@ -27,6 +27,9 @@
27
27
  <img alt="JavaScript Code Style" src="https://img.shields.io/badge/JavaScript_Code_Style-prettier_standard-ff69b4.svg" />
28
28
  </a>
29
29
  <br />
30
+ <a href="https://www.codacy.com/manual/hopsoft/cable_ready/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=hopsoft/cable_ready&amp;utm_campaign=Badge_Grade" target="_blank">
31
+ <img alt="Code Quality" src="https://app.codacy.com/project/badge/Grade/8e6971e3410347eaaa16be2555160b9c"/>
32
+ </a>
30
33
  <a href="https://codeclimate.com/github/hopsoft/cable_ready/maintainability" target="_blank">
31
34
  <img alt="Maintainability" src="https://api.codeclimate.com/v1/badges/83ddf1fee4af7e51a681/maintainability" />
32
35
  </a>
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
+ bundle exec magic_frozen_string_literal
3
4
  bundle exec standardrb --fix
4
5
  cd ./javascript && yarn run prettier-standard cable_ready.js
@@ -24,12 +24,14 @@ module CableReady
24
24
  morph
25
25
  notification
26
26
  outer_html
27
+ push_state
27
28
  remove
28
29
  remove_attribute
29
30
  remove_css_class
30
31
  set_attribute
31
32
  set_cookie
32
33
  set_dataset_property
34
+ set_focus
33
35
  set_property
34
36
  set_style
35
37
  set_styles
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CableReady
4
- VERSION = "4.4.0.pre0"
4
+ VERSION = "4.4.0.pre1"
5
5
  end
data/tags CHANGED
@@ -13,31 +13,42 @@ 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
15
  Engine lib/cable_ready.rb /^ class Engine < Rails::Engine$/;" c class:CableReady
16
- [] lib/cable_ready/channels.rb /^ def [](channel_name)$/;" f class:CableReady.Channels
17
- add_css_class lib/cable_ready/channel.rb /^ def add_css_class(options = {})$/;" f class:CableReady.Channel
16
+ [] lib/cable_ready/channels.rb /^ def [](identifier)$/;" f class:CableReady.Channels
18
17
  add_operation lib/cable_ready/channel.rb /^ def add_operation(key, 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
18
+ add_operation lib/cable_ready/channels.rb /^ def add_operation(operation, &implementation)$/;" f class:CableReady.Channels
19
+ broadcast lib/cable_ready/channel.rb /^ def broadcast(clear)$/;" f class:CableReady.Channel
20
+ broadcast lib/cable_ready/channels.rb /^ def broadcast(*identifiers, clear: true)$/;" f class:CableReady.Channels
21
+ broadcast_to lib/cable_ready/channel.rb /^ def broadcast_to(model, clear)$/;" f class:CableReady.Channel
22
+ broadcast_to lib/cable_ready/channels.rb /^ def broadcast_to(model, *identifiers, clear: true)$/;" f class:CableReady.Channels
21
23
  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
+ configure lib/cable_ready/channels.rb /^ def self.configure$/;" F class:CableReady.Channels
24
25
  const.bubbles javascript/cable_ready.js /^ const init = { bubbles: true, cancelable: true }$/;" p
25
26
  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
28
- initialize lib/cable_ready/channel.rb /^ def initialize(name)$/;" f class:CableReady.Channel
27
+ const.color javascript/cable_ready.js /^ color: true,$/;" p
28
+ const.date javascript/cable_ready.js /^ date: true,$/;" p
29
+ const.datetime javascript/cable_ready.js /^ datetime: true,$/;" p
30
+ const.datetime-local javascript/cable_ready.js /^ 'datetime-local': true,$/;" p
31
+ const.email javascript/cable_ready.js /^ email: true,$/;" p
32
+ const.month javascript/cable_ready.js /^ month: true,$/;" p
33
+ const.number javascript/cable_ready.js /^ number: true,$/;" p
34
+ const.password javascript/cable_ready.js /^ password: true,$/;" p
35
+ const.pushState javascript/cable_ready.js /^ pushState: config => {$/;" p
36
+ const.range javascript/cable_ready.js /^ range: true,$/;" p
37
+ const.search javascript/cable_ready.js /^ search: true,$/;" p
38
+ const.select-multiple javascript/cable_ready.js /^ 'select-multiple': true,$/;" p
39
+ const.select-one javascript/cable_ready.js /^ 'select-one': true,$/;" p
40
+ const.tel javascript/cable_ready.js /^ tel: true,$/;" p
41
+ const.text javascript/cable_ready.js /^ text: true,$/;" p
42
+ const.textarea javascript/cable_ready.js /^ textarea: true,$/;" p
43
+ const.time javascript/cable_ready.js /^ time: true,$/;" p
44
+ const.url javascript/cable_ready.js /^ url: true,$/;" p
45
+ const.value javascript/cable_ready.js /^ const ignore = { value: true }$/;" p
46
+ const.week javascript/cable_ready.js /^ week: true$/;" p
47
+ dom_id lib/cable_ready/broadcaster.rb /^ def dom_id(record, prefix = nil)$/;" f class:CableReady.Broadcaster
48
+ import.INPUT javascript/cable_ready.js /^ INPUT: true,$/;" p
49
+ import.SELECT javascript/cable_ready.js /^ SELECT: true$/;" p
50
+ import.TEXTAREA javascript/cable_ready.js /^ TEXTAREA: true,$/;" p
51
+ initialize lib/cable_ready/channel.rb /^ def initialize(identifier, available_operations)$/;" f class:CableReady.Channel
29
52
  initialize lib/cable_ready/channels.rb /^ def initialize$/;" f class:CableReady.Channels
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
53
+ mutex lib/cable_ready/channels.rb /^ def mutex$/;" f class:CableReady.Channels
54
+ reset lib/cable_ready/channel.rb /^ def reset$/;" 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.4.0.pre0
4
+ version: 4.4.0.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-02 00:00:00.000000000 Z
11
+ date: 2020-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  - !ruby/object:Gem::Version
153
153
  version: 1.3.1
154
154
  requirements: []
155
- rubygems_version: 3.0.3
155
+ rubygems_version: 3.1.2
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Out-of-Band Server Triggered DOM Operations