turbo_boost-streams 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -8
- data/lib/turbo_boost/streams/engine.rb +11 -0
- data/lib/turbo_boost/streams/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbf5c6f7d153530d60e070a09d8310ddd7e7f0b894125f5f5154b12257058f81
|
4
|
+
data.tar.gz: b5715c20c9defc1887cec395f733a5ce7b0b1402ea35dd3b71d5c9ebe46ca48b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d212f56f49fd2974592d8a677179036e59a672724dc96ea9cea42b4241448efbc1c7c51d5464b69a36dd0d3339f6e79e88b4224154d63e735ae88a8081f2b296
|
7
|
+
data.tar.gz: 5438fecc2b4d15fe04962000269b2f6248f1083265bb222dbab3b24793e44cdb8b1a28318cc42275719ad027f160c77ca6181b84022eed97c30cb6fa9b4d2de9
|
data/README.md
CHANGED
@@ -135,7 +135,7 @@ Be sure to install the same version for each library.
|
|
135
135
|
|
136
136
|
```sh
|
137
137
|
bundle add "turbo_boost-streams --version VERSION"
|
138
|
-
|
138
|
+
npm install "@turbo-boost/streams@VERSION"
|
139
139
|
```
|
140
140
|
|
141
141
|
## Setup
|
@@ -428,19 +428,15 @@ fly deploy
|
|
428
428
|
> [!TIP]
|
429
429
|
> Run these commands on the host machine _(i.e. not inside the dev container)_
|
430
430
|
|
431
|
-
|
432
|
-
> Ensure you're using the latest stable version of `yarn`
|
433
|
-
> `corepack enable && yarn set version stable`
|
434
|
-
|
435
|
-
1. Run `yarn upgrade-interactive` and `bundle update` to pick up the latest dependencies
|
431
|
+
1. Run `npm update` and `bundle update` to pick up the latest dependencies
|
436
432
|
1. Bump version number at `lib/turbo_boost-streams/version.rb`. Pre-release versions use `.preN`
|
437
433
|
1. Bump version number at `package.json` _(make sure it matches)_. Pre-release versions use `-preN`
|
438
434
|
1. Run `bin/standardize`
|
439
435
|
1. Run `rake build`
|
440
|
-
1. Run `
|
436
|
+
1. Run `npm run build`
|
441
437
|
1. Commit and push any changes to GitHub
|
442
438
|
1. Run `rake release`
|
443
|
-
1. Run `
|
439
|
+
1. Run `npm publish ???? --access public`
|
444
440
|
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
|
445
441
|
|
446
442
|
## About TurboBoost
|
@@ -5,9 +5,20 @@ require_relative "version"
|
|
5
5
|
require_relative "patches"
|
6
6
|
|
7
7
|
class TurboBoost::Engine < ::Rails::Engine
|
8
|
+
config.turbo_boost_streams = ActiveSupport::OrderedOptions.new
|
9
|
+
config.turbo_boost_streams.precompile_assets = true
|
10
|
+
|
8
11
|
config.after_initialize do
|
9
12
|
::Turbo::Streams::TagBuilder.send :include, TurboBoost::Streams::Patches::TagBuilder
|
10
13
|
::Turbo::Streams::Broadcasts.send :include, TurboBoost::Streams::Patches::Broadcasts
|
11
14
|
::Turbo::Broadcastable.send :include, TurboBoost::Streams::Patches::Broadcastable
|
12
15
|
end
|
16
|
+
|
17
|
+
initializer "turbo_boost_streams.asset" do
|
18
|
+
config.after_initialize do |app|
|
19
|
+
if app.config.respond_to?(:assets) && app.config.turbo_boost_streams.precompile_assets
|
20
|
+
app.config.assets.precompile += %w[@turbo-boost/streams.js]
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
13
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbo_boost-streams
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nate Hopkins (hopsoft)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|