Skip to content

Commit

Permalink
Prepare for release (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
hopsoft authored Jun 13, 2024
1 parent 7e8d9cc commit b318912
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 23 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</h1>
<p align="center">
<a href="http://blog.codinghorror.com/the-best-code-is-no-code-at-all/">
<img alt="Lines of Code" src="https://img.shields.io/badge/loc-1736-47d299.svg" />
<img alt="Lines of Code" src="https://img.shields.io/badge/loc-1783-47d299.svg" />
</a>
<a href="https://codeclimate.com/github/hopsoft/turbo_boost-commands/maintainability">
<img src="https://api.codeclimate.com/v1/badges/fe1162a742fe83a4fdfd/maintainability" />
Expand Down Expand Up @@ -62,6 +62,7 @@

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

_The primary distinction being that **state is wholly managed by the server**._

Commands are executed via a Rails `before_action` which means that reactivity runs over HTTP.
_**Web sockets are NOT used for the reactive critical path!** 🎉_
This also means that standard Rails mechanics drive their behavior.
Expand All @@ -134,10 +134,10 @@ Your contribution will help drive the evolution of **TurboBoost**, enabling new
<p>
<a href="https://donate.stripe.com/fZe9EjfhZbZRdeE9AA?utm_source=github&utm_medium=readme&utm_campaign=hopsoft&utm_content=turbo_boost-commands">
<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" />
<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" />
</a>
<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">
<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" />
<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" />
</a>
</p>

Expand Down Expand Up @@ -527,7 +527,11 @@ _Learn more about Turbo Stream broadcasting by reading through the
> [!NOTE]
> `broadcast_invoke_later_to` is a [TurboBoost Streams](https://github.com/hopsoft/turbo_boost-streams#broadcasting) feature.
### Tracking Page State
## State

TODO: Document state tracking

### Ephemeral Page State

You can opt-in to remember transient page state when using Rails tag helpers with `turbo_boost[:remember]` to track
element attribute values between requests.
Expand Down
2 changes: 1 addition & 1 deletion app/assets/builds/@turbo-boost/commands.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/assets/builds/@turbo-boost/commands.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/javascript/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default '0.3.1'
export default '0.3.2'
8 changes: 4 additions & 4 deletions lib/turbo_boost/commands/middlewares/exit_middleware.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# frozen_string_literal: true

class TurboBoost::Commands::ExitMiddleware
BODY_PATTERN = /<\/\s*body/io
TURBO_FRAME_PATTERN = /<\/\s*turbo-frame/io
TURBO_STREAM_PATTERN = /<\/\s*turbo-stream/io
TAIL_PATTERN = /\z/io
BODY_PATTERN = /<\/\s*body/i
TURBO_FRAME_PATTERN = /<\/\s*turbo-frame/i
TURBO_STREAM_PATTERN = /<\/\s*turbo-stream/i
TAIL_PATTERN = /\z/i

def initialize(app)
@app = app
Expand Down
2 changes: 1 addition & 1 deletion lib/turbo_boost/commands/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module TurboBoost
module Commands
VERSION = "0.3.1"
VERSION = "0.3.2"
end
end
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@turbo-boost/commands",
"version": "0.3.1",
"version": "0.3.2",
"description": "Commands to help you build robust reactive applications with Rails & Hotwire.",
"keywords": [
"hotwire",
Expand Down Expand Up @@ -31,7 +31,7 @@
"flowbite": "1.7.0",
"playwright": "^1.44.0",
"prettier": "^3.3.2",
"prettier-plugin-tailwindcss": "^0.5.14",
"prettier-plugin-tailwindcss": "^0.6.4",
"tailwindcss": "^3.4.4"
},
"scripts": {
Expand Down

0 comments on commit b318912

Please sign in to comment.