cable_ready 4.1.0 → 4.1.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 +4 -4
- data/README.md +59 -11
- data/lib/cable_ready/channel.rb +13 -0
- data/lib/cable_ready/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6e0b8015c3ed4d9b16a6d06eb7c20bc34ea1b4603e9b4b16d88e4f181616fe9
|
4
|
+
data.tar.gz: ee145f0915fe687258e5a8f9a532f2a8b16a39d8db8d1027ae66784d531bb8cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a202a67d5f858ee6743f94af0bc8741eb7b7396a2b9f92b5ff7a71500ad5348e287c1de0c8446eb91134d26d5b2b80c8b9633ac3340e0d738408554aa7eb227
|
7
|
+
data.tar.gz: 77fd0b0754eabb3ff126a2e947c6525e8d980a78ce02c75c6ebcce89841c8707ee21c2c6875bc554f89e3ae71cd63d4da31c6108d9471e58dd61d51295a1771c
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cable_ready (4.1.
|
4
|
+
cable_ready (4.1.1)
|
5
5
|
rails (>= 5.2)
|
6
6
|
|
7
7
|
GEM
|
@@ -73,7 +73,7 @@ GEM
|
|
73
73
|
i18n (1.8.2)
|
74
74
|
concurrent-ruby (~> 1.0)
|
75
75
|
jaro_winkler (1.5.4)
|
76
|
-
loofah (2.
|
76
|
+
loofah (2.5.0)
|
77
77
|
crass (~> 1.0.2)
|
78
78
|
nokogiri (>= 1.5.9)
|
79
79
|
mail (2.7.1)
|
@@ -89,7 +89,7 @@ GEM
|
|
89
89
|
nokogiri (1.10.9)
|
90
90
|
mini_portile2 (~> 2.4.0)
|
91
91
|
parallel (1.19.1)
|
92
|
-
parser (2.7.1.
|
92
|
+
parser (2.7.1.1)
|
93
93
|
ast (~> 2.4.0)
|
94
94
|
pry (0.12.2)
|
95
95
|
coderay (~> 1.1.0)
|
@@ -172,4 +172,4 @@ DEPENDENCIES
|
|
172
172
|
standardrb
|
173
173
|
|
174
174
|
BUNDLED WITH
|
175
|
-
1.
|
175
|
+
2.1.4
|
data/README.md
CHANGED
@@ -1,21 +1,69 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
<p align="center">
|
2
|
+
<img src="assets/cable-ready-logo-with-copy.svg" width="360" />
|
3
|
+
<h1 align="center">Welcome to CableReady 👋</h1>
|
4
|
+
<p align="center">
|
5
|
+
<img src="https://img.shields.io/gem/v/cable_ready.svg?color=red" />
|
6
|
+
<img src="https://img.shields.io/npm/v/cable_ready.svg?color=blue" />
|
7
|
+
<a href="https://www.npmjs.com/package/cable_ready">
|
8
|
+
<img alt="downloads" src="https://img.shields.io/npm/dm/cable_ready.svg?color=blue" target="_blank" />
|
9
|
+
</a>
|
10
|
+
<a href="https://github.com/hopsoft/cable_ready/blob/master/LICENSE">
|
11
|
+
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-brightgreen.svg" target="_blank" />
|
12
|
+
</a>
|
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-295-brightgreen.svg?style=flat" />
|
15
|
+
</a>
|
16
|
+
<a href="https://cableready.stimulusreflex.com" target="_blank">
|
17
|
+
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
|
18
|
+
</a>
|
19
|
+
<br />
|
20
|
+
<a href="#badge">
|
21
|
+
<img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
|
22
|
+
</a>
|
23
|
+
<a href="https://github.com/testdouble/standard" target="_blank">
|
24
|
+
<img alt="Ruby Code Style" src="https://img.shields.io/badge/Ruby_Code_Style-standard-brightgreen.svg" />
|
25
|
+
</a>
|
26
|
+
<a href="https://github.com/sheerun/prettier-standard" target="_blank">
|
27
|
+
<img alt="JavaScript Code Style" src="https://img.shields.io/badge/JavaScript_Code_Style-prettier_standard-ff69b4.svg" />
|
28
|
+
</a>
|
29
|
+
<br />
|
30
|
+
<a href="https://codeclimate.com/github/hopsoft/cable_ready/maintainability" target="_blank">
|
31
|
+
<img alt="Maintainability" src="https://api.codeclimate.com/v1/badges/83ddf1fee4af7e51a681/maintainability" />
|
32
|
+
</a>
|
33
|
+
<a target="_blank" rel="noopener noreferrer" href="https://github.com/hopsoft/cable_ready/workflows/Prettier-Standard/badge.svg">
|
34
|
+
<img src="https://github.com/hopsoft/cable_ready/workflows/Prettier-Standard/badge.svg" alt="Prettier-Standard" style="max-width:100%;">
|
35
|
+
</a>
|
36
|
+
<a target="_blank" rel="noopener noreferrer" href="https://github.com/hopsoft/cable_ready/workflows/StandardRB/badge.svg">
|
37
|
+
<img src="https://github.com/hopsoft/cable_ready/workflows/StandardRB/badge.svg" alt="StandardRB" style="max-width:100%;">
|
38
|
+
</a>
|
39
|
+
</p>
|
40
|
+
</p>
|
41
|
+
<br />
|
5
42
|
|
6
|
-
|
7
|
-
|
8
|
-
CableReady helps you create great real-time user experiences by making it simple to trigger client-side DOM changes from server-side Ruby. It establishes a standard for interacting with the client via ActionCable web sockets. No need for custom JavaScript.
|
43
|
+
CableReady helps you create great real-time user experiences by making it simple to trigger client-side DOM changes from server-side Ruby. It establishes a standard for interacting with the client via ActionCable web sockets. No need for custom JavaScript.
|
9
44
|
|
10
45
|
Please read the official [ActionCable docs](http://guides.rubyonrails.org/action_cable_overview.html)
|
11
46
|
to learn more about ActionCable before proceeding.
|
12
47
|
|
13
|
-
## Docs
|
48
|
+
## 📚 Docs
|
14
49
|
|
15
50
|
- [Official Documentation](https://cableready.stimulusreflex.com)
|
16
51
|
- [Documentation Source Code](https://github.com/hopsoft/cable_ready/tree/master/docs)
|
17
52
|
|
18
|
-
##
|
53
|
+
## 💙 Community
|
54
|
+
|
55
|
+
- [Discord](https://discord.gg/XveN625) - chat root
|
56
|
+
|
57
|
+
## 🚀 Install
|
58
|
+
|
59
|
+
```sh
|
60
|
+
bundle add cable_ready && yarn add cable_ready
|
61
|
+
```
|
62
|
+
|
63
|
+
Checkout the [documentation](https://cableready.stimulusreflex.com) to continue!
|
64
|
+
|
65
|
+
|
66
|
+
## 🙏 Contributing
|
19
67
|
|
20
68
|
### Code of Conduct
|
21
69
|
|
@@ -28,7 +76,7 @@ and [prettier-standard](https://github.com/sheerun/prettier-standard) to minimiz
|
|
28
76
|
|
29
77
|
Please run `./bin/standardize` prior submitting pull requests.
|
30
78
|
|
31
|
-
### Releasing
|
79
|
+
### 📦 Releasing
|
32
80
|
|
33
81
|
1. Bump version number at `lib/cable_ready/version.rb`
|
34
82
|
1. Run `rake build`
|
@@ -36,6 +84,6 @@ Please run `./bin/standardize` prior submitting pull requests.
|
|
36
84
|
1. Change directories `cd ./javascript`
|
37
85
|
1. Run `yarn publish` - NOTE: this will throw a fatal error because the tag already exists but the package will still publish
|
38
86
|
|
39
|
-
## License
|
87
|
+
## 📝 License
|
40
88
|
|
41
89
|
CableReady is released under the [MIT License](LICENSE.txt).
|
data/lib/cable_ready/channel.rb
CHANGED
@@ -95,6 +95,14 @@ module CableReady
|
|
95
95
|
# name: "string"
|
96
96
|
# }, ...],
|
97
97
|
#
|
98
|
+
# # Style Mutations ...........................................................................................
|
99
|
+
#
|
100
|
+
# set_style: [{
|
101
|
+
# selector: "string",
|
102
|
+
# name: "string",
|
103
|
+
# value: "string"
|
104
|
+
# }, ...],
|
105
|
+
#
|
98
106
|
# # Dataset Mutations ...........................................................................................
|
99
107
|
#
|
100
108
|
# set_dataset_property: [{
|
@@ -175,6 +183,10 @@ module CableReady
|
|
175
183
|
add_operation(:remove_css_class, options)
|
176
184
|
end
|
177
185
|
|
186
|
+
def set_style(options = {})
|
187
|
+
add_operation(:set_style, options)
|
188
|
+
end
|
189
|
+
|
178
190
|
def set_dataset_property(options = {})
|
179
191
|
add_operation(:set_dataset_property, options)
|
180
192
|
end
|
@@ -201,6 +213,7 @@ module CableReady
|
|
201
213
|
set_attribute: [],
|
202
214
|
set_cookie: [],
|
203
215
|
set_dataset_property: [],
|
216
|
+
set_style: [],
|
204
217
|
set_value: [],
|
205
218
|
text_content: []
|
206
219
|
}
|
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: 4.1.
|
4
|
+
version: 4.1.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: 2020-04-
|
11
|
+
date: 2020-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
|
-
rubygems_version: 3.
|
127
|
+
rubygems_version: 3.1.2
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Out-of-Band Server Triggered DOM Operations
|