Skip to content

Commit b318912

Browse files
authored
Prepare for release (#143)
1 parent 7e8d9cc commit b318912

File tree

8 files changed

+27
-23
lines changed

8 files changed

+27
-23
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</h1>
1010
<p align="center">
1111
<a href="http://blog.codinghorror.com/the-best-code-is-no-code-at-all/">
12-
<img alt="Lines of Code" src="https://img.shields.io/badge/loc-1736-47d299.svg" />
12+
<img alt="Lines of Code" src="https://img.shields.io/badge/loc-1783-47d299.svg" />
1313
</a>
1414
<a href="https://codeclimate.com/github/hopsoft/turbo_boost-commands/maintainability">
1515
<img src="https://api.codeclimate.com/v1/badges/fe1162a742fe83a4fdfd/maintainability" />
@@ -62,6 +62,7 @@
6262

6363
- [Why TurboBoost Commands?](#why-turboboost-commands)
6464
- [Sponsors](#sponsors)
65+
- [Open Source projects like TurboBoost rely on your support](#open-source-projects-like-turboboost-rely-on-your-support)
6566
- [Dependencies](#dependencies)
6667
- [Setup](#setup)
6768
- [Configuration](#configuration)
@@ -75,7 +76,8 @@
7576
- [Setting Instance Variables](#setting-instance-variables)
7677
- [Prevent Controller Action](#prevent-controller-action)
7778
- [Broadcasting Turbo Streams](#broadcasting-turbo-streams)
78-
- [Tracking Page State](#tracking-page-state)
79+
- [State](#state)
80+
- [Ephemeral Page State](#ephemeral-page-state)
7981
- [Community](#community)
8082
- [Developing](#developing)
8183
- [Notable Files](#notable-files)
@@ -113,8 +115,6 @@ Namely,
113115
3. **(Re)render to reflect the new state**
114116
4. _repeat..._
115117

116-
_The primary distinction being that **state is wholly managed by the server**._
117-
118118
Commands are executed via a Rails `before_action` which means that reactivity runs over HTTP.
119119
_**Web sockets are NOT used for the reactive critical path!** 🎉_
120120
This also means that standard Rails mechanics drive their behavior.
@@ -134,10 +134,10 @@ Your contribution will help drive the evolution of **TurboBoost**, enabling new
134134
135135
<p>
136136
<a href="https://donate.stripe.com/fZe9EjfhZbZRdeE9AA?utm_source=github&utm_medium=readme&utm_campaign=hopsoft&utm_content=turbo_boost-commands">
137-
<img src="https://img.shields.io/badge/Donate_with_Stripe-635bff?style=flat&labelColor=c4b8ff&logo=Stripe&logoColor=635bff&logoSize=auto" alt="Make a one-time Stripe donation" height="32" />
137+
<img src="https://img.shields.io/badge/Donate_with_Stripe-635bff?style=flat&labelColor=c4b8ff&logo=Stripe&logoColor=635bff&logoSize=auto" alt="Make a one-time Stripe donation" height="28" />
138138
</a>
139139
<a href="https://commerce.coinbase.com/checkout/0a6079bf-5c7a-4a93-a943-401bba8981a0?utm_source=github&utm_medium=readme&utm_campaign=hopsoft&utm_content=turbo_boost-commands">
140-
<img src="https://img.shields.io/badge/Donate_with_Coinbase-0052ff.svg?style=flat&logoSize=30&labelColor=a3c4ff&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHJlY3Qgd2lkdGg9IjEwMjQiIGhlaWdodD0iMTAyNCIgZmlsbD0iIzAwNTJmZiIgcng9IjUxMiIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik01MTIuMTQ3IDY5MmMtOTkuNDUgMC0xODAtODAuNTUtMTgwLTE4MHM4MC41NS0xODAgMTgwLTE4MGM4OS4xIDAgMTYzLjA1IDY0Ljk1IDE3Ny4zIDE1MGgxODEuMzVjLTE1LjMtMTg0LjgtMTcwLTMzMC0zNTguNjUtMzMwLTE5OC43NSAwLTM2MCAxNjEuMjUtMzYwIDM2MHMxNjEuMjUgMzYwIDM2MCAzNjBjMTg4LjY1IDAgMzQzLjM1LTE0NS4yIDM1OC42NS0zMzBoLTE4MS41Yy0xNC4yNSA4NS4wNS04OC4yNSAxNTAtMTc3LjE1IDE1MHoiLz48L3N2Zz4=" alt="Make a one-time Coinbase donation" height="32" />
140+
<img src="https://img.shields.io/badge/Donate_with_Coinbase-0052ff.svg?style=flat&logoSize=30&labelColor=a3c4ff&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHJlY3Qgd2lkdGg9IjEwMjQiIGhlaWdodD0iMTAyNCIgZmlsbD0iIzAwNTJmZiIgcng9IjUxMiIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik01MTIuMTQ3IDY5MmMtOTkuNDUgMC0xODAtODAuNTUtMTgwLTE4MHM4MC41NS0xODAgMTgwLTE4MGM4OS4xIDAgMTYzLjA1IDY0Ljk1IDE3Ny4zIDE1MGgxODEuMzVjLTE1LjMtMTg0LjgtMTcwLTMzMC0zNTguNjUtMzMwLTE5OC43NSAwLTM2MCAxNjEuMjUtMzYwIDM2MHMxNjEuMjUgMzYwIDM2MCAzNjBjMTg4LjY1IDAgMzQzLjM1LTE0NS4yIDM1OC42NS0zMzBoLTE4MS41Yy0xNC4yNSA4NS4wNS04OC4yNSAxNTAtMTc3LjE1IDE1MHoiLz48L3N2Zz4=" alt="Make a one-time Coinbase donation" height="28" />
141141
</a>
142142
</p>
143143

@@ -527,7 +527,11 @@ _Learn more about Turbo Stream broadcasting by reading through the
527527
> [!NOTE]
528528
> `broadcast_invoke_later_to` is a [TurboBoost Streams](https://github.com/hopsoft/turbo_boost-streams#broadcasting) feature.
529529
530-
### Tracking Page State
530+
## State
531+
532+
TODO: Document state tracking
533+
534+
### Ephemeral Page State
531535

532536
You can opt-in to remember transient page state when using Rails tag helpers with `turbo_boost[:remember]` to track
533537
element attribute values between requests.

app/assets/builds/@turbo-boost/commands.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/assets/builds/@turbo-boost/commands.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/javascript/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default '0.3.1'
1+
export default '0.3.2'

lib/turbo_boost/commands/middlewares/exit_middleware.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# frozen_string_literal: true
22

33
class TurboBoost::Commands::ExitMiddleware
4-
BODY_PATTERN = /<\/\s*body/io
5-
TURBO_FRAME_PATTERN = /<\/\s*turbo-frame/io
6-
TURBO_STREAM_PATTERN = /<\/\s*turbo-stream/io
7-
TAIL_PATTERN = /\z/io
4+
BODY_PATTERN = /<\/\s*body/i
5+
TURBO_FRAME_PATTERN = /<\/\s*turbo-frame/i
6+
TURBO_STREAM_PATTERN = /<\/\s*turbo-stream/i
7+
TAIL_PATTERN = /\z/i
88

99
def initialize(app)
1010
@app = app

lib/turbo_boost/commands/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module TurboBoost
44
module Commands
5-
VERSION = "0.3.1"
5+
VERSION = "0.3.2"
66
end
77
end

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@turbo-boost/commands",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "Commands to help you build robust reactive applications with Rails & Hotwire.",
55
"keywords": [
66
"hotwire",
@@ -31,7 +31,7 @@
3131
"flowbite": "1.7.0",
3232
"playwright": "^1.44.0",
3333
"prettier": "^3.3.2",
34-
"prettier-plugin-tailwindcss": "^0.5.14",
34+
"prettier-plugin-tailwindcss": "^0.6.4",
3535
"tailwindcss": "^3.4.4"
3636
},
3737
"scripts": {

0 commit comments

Comments
 (0)