turbo_boost-streams 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -8
- data/README.md +30 -18
- data/app/assets/images/apple-touch-icon.png +0 -0
- data/app/assets/images/favicon-16x16.png +0 -0
- data/app/assets/images/favicon-32x32.png +0 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/turbo-boost-logo-dark-bg.webp +0 -0
- data/app/assets/images/turbo-boost-logo.afdesign +0 -0
- data/app/assets/images/turbo-boost-logo.webp +0 -0
- data/app/assets/images/turbo-boost-mark.afdesign +0 -0
- data/bin/standardize +1 -1
- data/fly.toml +4 -2
- data/lib/turbo_boost/streams/version.rb +1 -1
- data/package.json +19 -7
- data/tags +240 -80
- data/yarn-error.log +177 -177
- data/yarn.lock +152 -152
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d97e002d6438e734f96cd2df765310e116ccea2341880cb05e43983dba785e2
|
4
|
+
data.tar.gz: c57f1f735a06f7cd8476904c2f999d5a76d0db00f13feb10ca959b588dcd35f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ec967e800db6e30c8132394c4501445de2037dcd5346913bd7bdeab5658de18af041d9b5dd425d21c180662683cfa09bb3f09ccc1b52cd7ab85abd3cd79349e
|
7
|
+
data.tar.gz: 155c1b988e7d2754ef614db5098f403b19e7ad6cf4afad779d25f9625c6f19e9dfed34eab91490f716e6848fc061da164423fd069f4b3259b6e1bb383b82ef70
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
turbo_boost-streams (0.0.
|
4
|
+
turbo_boost-streams (0.0.3)
|
5
5
|
rails (>= 6.1)
|
6
6
|
turbo-rails (>= 1.1)
|
7
7
|
|
@@ -96,7 +96,7 @@ GEM
|
|
96
96
|
capybara (~> 3.0)
|
97
97
|
ferrum (~> 0.13.0)
|
98
98
|
date (3.3.3)
|
99
|
-
erubi (1.
|
99
|
+
erubi (1.12.0)
|
100
100
|
ferrum (0.13)
|
101
101
|
addressable (~> 2.5)
|
102
102
|
concurrent-ruby (~> 1.1)
|
@@ -125,13 +125,13 @@ GEM
|
|
125
125
|
matrix (0.4.2)
|
126
126
|
method_source (1.0.0)
|
127
127
|
mini_mime (1.1.2)
|
128
|
-
minitest (5.
|
128
|
+
minitest (5.17.0)
|
129
129
|
minitest-reporters (1.5.0)
|
130
130
|
ansi
|
131
131
|
builder
|
132
132
|
minitest (>= 5.0)
|
133
133
|
ruby-progressbar
|
134
|
-
net-imap (0.3.
|
134
|
+
net-imap (0.3.4)
|
135
135
|
date
|
136
136
|
net-protocol
|
137
137
|
net-pop (0.1.2)
|
@@ -155,10 +155,10 @@ GEM
|
|
155
155
|
byebug (~> 11.0)
|
156
156
|
pry (>= 0.13, < 0.15)
|
157
157
|
public_suffix (5.0.1)
|
158
|
-
puma (6.0.
|
158
|
+
puma (6.0.2)
|
159
159
|
nio4r (~> 2.0)
|
160
|
-
racc (1.6.
|
161
|
-
rack (2.2.
|
160
|
+
racc (1.6.2)
|
161
|
+
rack (2.2.5)
|
162
162
|
rack-test (2.0.2)
|
163
163
|
rack (>= 1.3)
|
164
164
|
rails (7.0.4)
|
@@ -202,7 +202,7 @@ GEM
|
|
202
202
|
rubocop-ast (>= 1.23.0, < 2.0)
|
203
203
|
ruby-progressbar (~> 1.7)
|
204
204
|
unicode-display_width (>= 1.4.0, < 3.0)
|
205
|
-
rubocop-ast (1.24.
|
205
|
+
rubocop-ast (1.24.1)
|
206
206
|
parser (>= 3.1.1.0)
|
207
207
|
rubocop-performance (1.15.1)
|
208
208
|
rubocop (>= 1.7.0, < 2.0)
|
data/README.md
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
<p align="center">
|
2
2
|
<picture>
|
3
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://ik.imagekit.io/hopsoft/turbo-boost-logo-dark-
|
4
|
-
<img height="60" src="https://ik.imagekit.io/hopsoft/turbo-boost-
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://ik.imagekit.io/hopsoft/turbo-boost-logo-dark-bg_o_f0bVskz.webp?ik-sdk-version=javascript-1.4.3&updatedAt=1671722004391">
|
4
|
+
<img height="60" src="https://ik.imagekit.io/hopsoft/turbo-boost-logo_zHiiimlvT.webp?ik-sdk-version=javascript-1.4.3&updatedAt=1671722004342" />
|
5
5
|
</picture>
|
6
6
|
<h1 align="center">
|
7
|
-
Welcome to
|
7
|
+
Welcome to TurboBoost Streams 👋
|
8
8
|
</h1>
|
9
9
|
<p align="center">
|
10
10
|
<a href="http://blog.codinghorror.com/the-best-code-is-no-code-at-all/">
|
11
11
|
<img alt="Lines of Code" src="https://img.shields.io/badge/loc-179-47d299.svg" />
|
12
12
|
</a>
|
13
13
|
<a href="https://codeclimate.com/github/hopsoft/turbo_boost-streams/maintainability">
|
14
|
-
<img src="https://api.codeclimate.com/v1/badges/
|
14
|
+
<img src="https://api.codeclimate.com/v1/badges/a6671f4294ec0f21f732/maintainability" />
|
15
15
|
</a>
|
16
16
|
<a href="https://rubygems.org/gems/turbo_boost-streams">
|
17
17
|
<img alt="GEM Version" src="https://img.shields.io/gem/v/turbo_boost-streams?color=168AFE&include_prereleases&logo=ruby&logoColor=FE1616">
|
@@ -22,14 +22,14 @@
|
|
22
22
|
<a href="https://github.com/testdouble/standard">
|
23
23
|
<img alt="Ruby Style" src="https://img.shields.io/badge/style-standard-168AFE?logo=ruby&logoColor=FE1616" />
|
24
24
|
</a>
|
25
|
-
<a href="https://www.npmjs.com/package/
|
26
|
-
<img alt="NPM Version" src="https://img.shields.io/npm/v/
|
25
|
+
<a href="https://www.npmjs.com/package/@turbo-boost/streams">
|
26
|
+
<img alt="NPM Version" src="https://img.shields.io/npm/v/@turbo-boost/streams?color=168AFE&logo=npm">
|
27
27
|
</a>
|
28
|
-
<a href="https://www.npmjs.com/package/
|
29
|
-
<img alt="NPM Downloads" src="https://img.shields.io/npm/dm/
|
28
|
+
<a href="https://www.npmjs.com/package/@turbo-boost/streams">
|
29
|
+
<img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@turbo-boost/streams?color=168AFE&logo=npm">
|
30
30
|
</a>
|
31
|
-
<a href="https://bundlephobia.com/package/
|
32
|
-
<img alt="NPM Bundle Size" src="https://img.shields.io/bundlephobia/minzip/
|
31
|
+
<a href="https://bundlephobia.com/package/@turbo-boost/streams@">
|
32
|
+
<img alt="NPM Bundle Size" src="https://img.shields.io/bundlephobia/minzip/@turbo-boost/streams?label=bundle%20size&logo=npm&color=47d299">
|
33
33
|
</a>
|
34
34
|
<a href="https://github.com/sheerun/prettier-standard">
|
35
35
|
<img alt="JavaScript Style" src="https://img.shields.io/badge/style-prettier--standard-168AFE?logo=javascript&logoColor=f4e137" />
|
@@ -37,13 +37,19 @@
|
|
37
37
|
<a href="https://github.com/hopsoft/turbo_boost-streams/actions/workflows/tests.yml">
|
38
38
|
<img alt="Tests" src="https://github.com/hopsoft/turbo_boost-streams/actions/workflows/tests.yml/badge.svg" />
|
39
39
|
</a>
|
40
|
+
<a href="https://github.com/hopsoft/turbo_boost-streams/discussions" target="_blank">
|
41
|
+
<img alt="GitHub Discussions" src="https://img.shields.io/github/discussions/hopsoft/turbo_boost-streams?color=168AFE&logo=github">
|
42
|
+
</a>
|
43
|
+
<a href="https://github.com/sponsors/hopsoft">
|
44
|
+
<img alt="Sponsors" src="https://img.shields.io/github/sponsors/hopsoft?color=eb4aaa&logo=GitHub%20Sponsors" />
|
45
|
+
</a>
|
40
46
|
<a href="https://twitter.com/hopsoft">
|
41
47
|
<img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/hopsoft?logo=twitter&style=social">
|
42
48
|
</a>
|
43
49
|
</p>
|
44
50
|
</p>
|
45
51
|
|
46
|
-
|
52
|
+
**TurboBoost Streams extends [Turbo Streams](https://turbo.hotwired.dev/reference/streams) to give you full control of the
|
47
53
|
browser's [Document Object Model (DOM).](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model)**
|
48
54
|
|
49
55
|
```ruby
|
@@ -76,6 +82,7 @@ You can `invoke` any DOM method on the client with Turbo Streams.
|
|
76
82
|
- [Discussions](#discussions)
|
77
83
|
- [Twitter](#twitter)
|
78
84
|
- [Releasing](#releasing)
|
85
|
+
- [About TurboBoost](#about-turboboost)
|
79
86
|
- [License](#license)
|
80
87
|
|
81
88
|
<!-- Tocer[finish]: Auto-generated, don't remove. -->
|
@@ -334,11 +341,11 @@ TurboBoost::Streams::BroadcastInvokeJob.queue_name = :turbo_streams
|
|
334
341
|
|
335
342
|
## A Word of Warning
|
336
343
|
|
337
|
-
|
344
|
+
TurboBoost Streams is a foundational tool designed to help you build modern, maintainable, and scalable reactive web apps with Hotwire.
|
338
345
|
It allows you to break free from the strict CRUD/REST conventions that Rails and Hotwire wisely encourage.
|
339
346
|
You should consider boosted streams a substrate for building additional libraries and abstractions.
|
340
347
|
|
341
|
-
*Please don't use
|
348
|
+
*Please don't use TurboBoost Streams to manually orchestrate micro DOM updates (from the server).
|
342
349
|
Such techniques are what gave rise to Full Stack Frontend and sent the industry on a decade long journey of complexity and frustration.*
|
343
350
|
|
344
351
|
## Community
|
@@ -347,10 +354,6 @@ Such techniques are what gave rise to Full Stack Frontend and sent the industry
|
|
347
354
|
|
348
355
|
Feel free to add to the conversation here on [GitHub Discussions](https://github.com/hopsoft/turbo_boost-streams/discussions).
|
349
356
|
|
350
|
-
<a href="https://github.com/hopsoft/turbo_boost-streams/discussions" target="_blank">
|
351
|
-
<img alt="GitHub Discussions" src="https://img.shields.io/github/discussions/hopsoft/turbo_boost-streams?color=168AFE&logo=github">
|
352
|
-
</a>
|
353
|
-
|
354
357
|
### Twitter
|
355
358
|
|
356
359
|
Connect with the core team on Twitter.
|
@@ -367,11 +370,20 @@ Connect with the core team on Twitter.
|
|
367
370
|
1. Run `bin/standardize`
|
368
371
|
1. Commit and push changes to GitHub
|
369
372
|
1. Run `rake release`
|
370
|
-
1. Run `yarn publish --no-git-tag-version`
|
373
|
+
1. Run `yarn publish --no-git-tag-version --access public`
|
371
374
|
1. Yarn will prompt you for the new version. Pre-release versions use `-preN`
|
372
375
|
1. Commit and push changes to GitHub
|
373
376
|
1. Create a new release on GitHub ([here](https://github.com/hopsoft/turbo_boost-streams/releases)) and generate the changelog for the stable release for it
|
374
377
|
|
378
|
+
## About TurboBoost
|
379
|
+
|
380
|
+
TurboBoost is a suite of projects that enhance Rails and Hotwire to make building server rendered reactive applications simpler and more powerful.
|
381
|
+
Be sure to check out all of the various the libraries.
|
382
|
+
|
383
|
+
- [Streams](https://github.com/hopsoft/turbo_boost-streams)
|
384
|
+
- [Commands](https://github.com/hopsoft/turbo_boost-commands)
|
385
|
+
- Coming soon...
|
386
|
+
|
375
387
|
## License
|
376
388
|
|
377
389
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/bin/standardize
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
bundle exec magic_frozen_string_literal
|
4
4
|
bundle exec standardrb --fix
|
5
|
-
yarn run prettier-standard app/javascript/**/*.js
|
5
|
+
yarn run prettier-standard package.json app/javascript/**/*.js
|
6
6
|
yarn run prettier-standard test/dummy/app/javascript/**/*.js
|
7
7
|
yarn run rustywind --write test/dummy/app
|
8
8
|
yarn run rustywind --write --custom-regex "(:\s[\"'])(.+)[\"']" test/dummy/app/views/_tailwind.yml.erb
|
data/fly.toml
CHANGED
@@ -1,11 +1,13 @@
|
|
1
|
-
# fly.toml file generated for
|
1
|
+
# fly.toml file generated for turboboost-streams on 2022-12-23T08:47:54-07:00
|
2
2
|
|
3
|
-
app = "
|
3
|
+
app = "turboboost-streams"
|
4
4
|
kill_signal = "SIGINT"
|
5
5
|
kill_timeout = 5
|
6
6
|
processes = []
|
7
7
|
|
8
8
|
[env]
|
9
|
+
# Must match the proxy config in the smallteam-tech/proxy repo
|
10
|
+
RAILS_RELATIVE_URL_ROOT = "/@turbo-boost/streams"
|
9
11
|
|
10
12
|
[experimental]
|
11
13
|
allowed_public_ports = []
|
data/package.json
CHANGED
@@ -1,11 +1,27 @@
|
|
1
1
|
{
|
2
2
|
"name": "@turbo-boost/streams",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.2",
|
4
4
|
"description": "Take full control of the DOM with Turbo Streams",
|
5
|
-
"
|
5
|
+
"keywords": [
|
6
|
+
"hotwire",
|
7
|
+
"hotwired",
|
8
|
+
"rails",
|
9
|
+
"turbo",
|
10
|
+
"turbo-boost"
|
11
|
+
],
|
12
|
+
"type": "module",
|
13
|
+
"main": "app/assets/builds/@turbo-boost/streams.js",
|
14
|
+
"exports": "app/assets/builds/@turbo-boost/streams.js",
|
15
|
+
"files": [
|
16
|
+
"app/assets/builds"
|
17
|
+
],
|
6
18
|
"repository": "https://github.com/hopsoft/turbo_boost-streams",
|
7
19
|
"author": "Nate Hopkins (hopsoft) <natehop@gmail.com>",
|
8
20
|
"license": "MIT",
|
21
|
+
"dependencies": {
|
22
|
+
"@alpinejs/morph": ">=3.10.4",
|
23
|
+
"alpinejs": ">=3.10.4"
|
24
|
+
},
|
9
25
|
"peerDependencies": {
|
10
26
|
"@hotwired/turbo-rails": ">= 7.2.0"
|
11
27
|
},
|
@@ -17,10 +33,6 @@
|
|
17
33
|
"rustywind": "^0.15.1"
|
18
34
|
},
|
19
35
|
"scripts": {
|
20
|
-
"build": "esbuild app/javascript/index.js --bundle --minify --sourcemap --format=esm --target=
|
21
|
-
},
|
22
|
-
"dependencies": {
|
23
|
-
"@alpinejs/morph": ">=3.10.4",
|
24
|
-
"alpinejs": ">=3.10.4"
|
36
|
+
"build": "esbuild app/javascript/index.js --bundle --minify --sourcemap --format=esm --target=es2020,chrome58,firefox57,safari11 --analyze --outfile=app/assets/builds/@turbo-boost/streams.js"
|
25
37
|
}
|
26
38
|
}
|