cable_ready-element 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 64e893c012d6e3d0de1522522dae333de8bff5f5d485f4f2f488f34d8720e798
4
+ data.tar.gz: 2d5e25223746c469dfec92229e8b3204d6c20e6e5d195c0a946be0f4cc1c5a0d
5
+ SHA512:
6
+ metadata.gz: d6ec22159605400f6d96d26d8fd71f8eaecfcc1e0a22a8f723820ac5960b6dc32b45fc4a48042b05f9f7811c2fcc242793085bf36afbf0f109241ddcbfd05e10
7
+ data.tar.gz: a6903df9840ff3004f6eaad7938db695e883ad9ac0966e82cf01b32e9d2803066cb51e9c8efb41a4bb12c82068ad80c6744583b2a54d5b9104824965a75acdfb
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ## Changelog
2
+
3
+ Please see [GitHub](https://github.com/cableready/element/releases) for detailed changelogs.
@@ -0,0 +1,76 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, sex characteristics, gender identity and expression,
9
+ level of experience, education, socio-economic status, nationality, personal
10
+ appearance, race, religion, or sexual identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ - Using welcoming and inclusive language
18
+ - Being respectful of differing viewpoints and experiences
19
+ - Gracefully accepting constructive criticism
20
+ - Focusing on what is best for the community
21
+ - Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ - The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ - Trolling, insulting/derogatory comments, and personal or political attacks
28
+ - Public or private harassment
29
+ - Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ - Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at natehop@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
+
73
+ [homepage]: https://www.contributor-covenant.org
74
+
75
+ For answers to common questions about this code of conduct, see
76
+ https://www.contributor-covenant.org/faq
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ group :test do
6
+ gem "rails", "~> 6.1"
7
+ end
8
+
9
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,209 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cable_ready-element (5.0.0)
5
+ actionpack (>= 5.2)
6
+ actionview (>= 5.2)
7
+ activesupport (>= 5.2)
8
+ cable_ready (~> 5.0.0)
9
+ railties (>= 5.2)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ actioncable (6.1.7)
15
+ actionpack (= 6.1.7)
16
+ activesupport (= 6.1.7)
17
+ nio4r (~> 2.0)
18
+ websocket-driver (>= 0.6.1)
19
+ actionmailbox (6.1.7)
20
+ actionpack (= 6.1.7)
21
+ activejob (= 6.1.7)
22
+ activerecord (= 6.1.7)
23
+ activestorage (= 6.1.7)
24
+ activesupport (= 6.1.7)
25
+ mail (>= 2.7.1)
26
+ actionmailer (6.1.7)
27
+ actionpack (= 6.1.7)
28
+ actionview (= 6.1.7)
29
+ activejob (= 6.1.7)
30
+ activesupport (= 6.1.7)
31
+ mail (~> 2.5, >= 2.5.4)
32
+ rails-dom-testing (~> 2.0)
33
+ actionpack (6.1.7)
34
+ actionview (= 6.1.7)
35
+ activesupport (= 6.1.7)
36
+ rack (~> 2.0, >= 2.0.9)
37
+ rack-test (>= 0.6.3)
38
+ rails-dom-testing (~> 2.0)
39
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
40
+ actiontext (6.1.7)
41
+ actionpack (= 6.1.7)
42
+ activerecord (= 6.1.7)
43
+ activestorage (= 6.1.7)
44
+ activesupport (= 6.1.7)
45
+ nokogiri (>= 1.8.5)
46
+ actionview (6.1.7)
47
+ activesupport (= 6.1.7)
48
+ builder (~> 3.1)
49
+ erubi (~> 1.4)
50
+ rails-dom-testing (~> 2.0)
51
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
52
+ activejob (6.1.7)
53
+ activesupport (= 6.1.7)
54
+ globalid (>= 0.3.6)
55
+ activemodel (6.1.7)
56
+ activesupport (= 6.1.7)
57
+ activerecord (6.1.7)
58
+ activemodel (= 6.1.7)
59
+ activesupport (= 6.1.7)
60
+ activestorage (6.1.7)
61
+ actionpack (= 6.1.7)
62
+ activejob (= 6.1.7)
63
+ activerecord (= 6.1.7)
64
+ activesupport (= 6.1.7)
65
+ marcel (~> 1.0)
66
+ mini_mime (>= 1.1.0)
67
+ activesupport (6.1.7)
68
+ concurrent-ruby (~> 1.0, >= 1.0.2)
69
+ i18n (>= 1.6, < 2)
70
+ minitest (>= 5.1)
71
+ tzinfo (~> 2.0)
72
+ zeitwerk (~> 2.3)
73
+ ast (2.4.2)
74
+ builder (3.2.4)
75
+ cable_ready (5.0.1)
76
+ actionpack (>= 5.2)
77
+ actionview (>= 5.2)
78
+ activesupport (>= 5.2)
79
+ railties (>= 5.2)
80
+ thread-local (>= 1.1.0)
81
+ concurrent-ruby (1.1.10)
82
+ crass (1.0.6)
83
+ date (3.3.3)
84
+ erubi (1.12.0)
85
+ globalid (1.0.0)
86
+ activesupport (>= 5.0)
87
+ i18n (1.12.0)
88
+ concurrent-ruby (~> 1.0)
89
+ json (2.6.3)
90
+ language_server-protocol (3.17.0.2)
91
+ loofah (2.19.1)
92
+ crass (~> 1.0.2)
93
+ nokogiri (>= 1.5.9)
94
+ magic_frozen_string_literal (1.2.0)
95
+ mail (2.8.0)
96
+ mini_mime (>= 0.1.1)
97
+ net-imap
98
+ net-pop
99
+ net-smtp
100
+ marcel (1.0.2)
101
+ method_source (1.0.0)
102
+ mini_mime (1.1.2)
103
+ minitest (5.17.0)
104
+ net-imap (0.3.4)
105
+ date
106
+ net-protocol
107
+ net-pop (0.1.2)
108
+ net-protocol
109
+ net-protocol (0.2.1)
110
+ timeout
111
+ net-smtp (0.3.3)
112
+ net-protocol
113
+ nio4r (2.5.8)
114
+ nokogiri (1.13.10-x86_64-darwin)
115
+ racc (~> 1.4)
116
+ nokogiri (1.13.10-x86_64-linux)
117
+ racc (~> 1.4)
118
+ parallel (1.22.1)
119
+ parser (3.1.3.0)
120
+ ast (~> 2.4.1)
121
+ racc (1.6.2)
122
+ rack (2.2.7)
123
+ rack-test (2.0.2)
124
+ rack (>= 1.3)
125
+ rails (6.1.7)
126
+ actioncable (= 6.1.7)
127
+ actionmailbox (= 6.1.7)
128
+ actionmailer (= 6.1.7)
129
+ actionpack (= 6.1.7)
130
+ actiontext (= 6.1.7)
131
+ actionview (= 6.1.7)
132
+ activejob (= 6.1.7)
133
+ activemodel (= 6.1.7)
134
+ activerecord (= 6.1.7)
135
+ activestorage (= 6.1.7)
136
+ activesupport (= 6.1.7)
137
+ bundler (>= 1.15.0)
138
+ railties (= 6.1.7)
139
+ sprockets-rails (>= 2.0.0)
140
+ rails-dom-testing (2.0.3)
141
+ activesupport (>= 4.2.0)
142
+ nokogiri (>= 1.6)
143
+ rails-html-sanitizer (1.4.4)
144
+ loofah (~> 2.19, >= 2.19.1)
145
+ railties (6.1.7)
146
+ actionpack (= 6.1.7)
147
+ activesupport (= 6.1.7)
148
+ method_source
149
+ rake (>= 12.2)
150
+ thor (~> 1.0)
151
+ rainbow (3.1.1)
152
+ rake (13.0.6)
153
+ regexp_parser (2.6.1)
154
+ rexml (3.2.5)
155
+ rubocop (1.39.0)
156
+ json (~> 2.3)
157
+ parallel (~> 1.10)
158
+ parser (>= 3.1.2.1)
159
+ rainbow (>= 2.2.2, < 4.0)
160
+ regexp_parser (>= 1.8, < 3.0)
161
+ rexml (>= 3.2.5, < 4.0)
162
+ rubocop-ast (>= 1.23.0, < 2.0)
163
+ ruby-progressbar (~> 1.7)
164
+ unicode-display_width (>= 1.4.0, < 3.0)
165
+ rubocop-ast (1.24.1)
166
+ parser (>= 3.1.1.0)
167
+ rubocop-performance (1.15.1)
168
+ rubocop (>= 1.7.0, < 2.0)
169
+ rubocop-ast (>= 0.4.0)
170
+ ruby-progressbar (1.11.0)
171
+ sprockets (4.2.0)
172
+ concurrent-ruby (~> 1.0)
173
+ rack (>= 2.2.4, < 4)
174
+ sprockets-rails (3.4.2)
175
+ actionpack (>= 5.2)
176
+ activesupport (>= 5.2)
177
+ sprockets (>= 3.0.0)
178
+ standard (1.19.1)
179
+ language_server-protocol (~> 3.17.0.2)
180
+ rubocop (= 1.39.0)
181
+ rubocop-performance (= 1.15.1)
182
+ standardrb (1.0.1)
183
+ standard
184
+ thor (1.2.1)
185
+ thread-local (1.1.0)
186
+ timeout (0.3.1)
187
+ tzinfo (2.0.5)
188
+ concurrent-ruby (~> 1.0)
189
+ unicode-display_width (2.3.0)
190
+ websocket-driver (0.7.5)
191
+ websocket-extensions (>= 0.1.0)
192
+ websocket-extensions (0.1.5)
193
+ zeitwerk (2.6.6)
194
+
195
+ PLATFORMS
196
+ x86_64-darwin-19
197
+ x86_64-darwin-22
198
+ x86_64-linux
199
+
200
+ DEPENDENCIES
201
+ cable_ready-element!
202
+ magic_frozen_string_literal
203
+ rails (~> 6.1)
204
+ rake
205
+ standard (= 1.19.1)
206
+ standardrb
207
+
208
+ BUNDLED WITH
209
+ 2.3.24
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Nathan Hopkins
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,77 @@
1
+ # `<cable-ready>` Element
2
+
3
+ ## Install
4
+
5
+ ### Rubygem
6
+
7
+ ```sh
8
+ bundle add cable_ready-element
9
+ ```
10
+
11
+ ### JavaScript
12
+
13
+ There are a few ways to install the CableReady JavaScript client, depending on your application setup.
14
+
15
+ #### ESBuild / Webpacker
16
+
17
+ ```sh
18
+ yarn add @cable_ready/element
19
+ ```
20
+
21
+ #### Importmaps:
22
+
23
+ ```ruby
24
+ # config/importmap.rb
25
+
26
+ # ...
27
+
28
+ pin 'cable_ready', to: 'cable_ready.min.js', preload: true
29
+ pin '@cable_ready/element', to: 'cable_ready-element.min.js', preload: true
30
+ ```
31
+
32
+ #### Rails Asset pipeline (Sprockets):
33
+
34
+ ```html+erb
35
+ <!-- app/views/layouts/application.html.erb -->
36
+
37
+ <%= javascript_include_tag "cable_ready-element.umd.min.js", "data-turbo-track": "reload" %>
38
+ ```
39
+
40
+ ### Installing the element
41
+
42
+ Within your `application.js` import the `@cable_ready/element` package:
43
+
44
+ ```js
45
+ // app/javascript/application.js
46
+
47
+ import "@cable_ready/element"
48
+ ```
49
+
50
+ ## Contributing
51
+
52
+ ### Code of Conduct
53
+
54
+ Everyone interacting with CableReady is expected to follow the [Code of Conduct](CODE_OF_CONDUCT.md)
55
+
56
+ ### Coding Standards
57
+
58
+ This project uses [Standard](https://github.com/testdouble/standard)
59
+ and [prettier-standard](https://github.com/sheerun/prettier-standard) to minimize bike shedding related to code formatting.
60
+
61
+ Please run `./bin/standardize` prior submitting pull requests.
62
+
63
+ ### Releasing
64
+
65
+ 1. Make sure that you run `yarn` and `bundle` to pick up the latest.
66
+ 1. Bump version number at `lib/cable_ready/element/version.rb`. Pre-release versions use `.preN`
67
+ 1. Run `rake build` and `yarn build`
68
+ 1. Commit and push changes to github
69
+ 1. Run `rake release`
70
+ 1. Run `yarn publish --no-git-tag-version`
71
+ 1. Yarn will prompt you for the new version. Pre-release versions use `-preN`
72
+ 1. Commit and push changes to GitHub
73
+ 1. Create a new release on GitHub ([here](https://github.com/cableready/element/releases)) and generate the changelog for the stable release for it
74
+
75
+ ## License
76
+
77
+ CableReady is released under the [MIT License](LICENSE.txt).
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ task default: [:test]
7
+
8
+ Rake::TestTask.new(:test) do |t|
9
+ t.libs << "lib"
10
+ t.libs << "test"
11
+ t.pattern = "test/**/*_test.rb"
12
+ t.verbose = true
13
+ t.warning = false
14
+ end