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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c7fba48d20c6751a32106889f7f3d5ebc587be77465b754e9338f9dc3d4e167
4
- data.tar.gz: 5003ab4e695da063a69033e36a617b6a8e3ad3e35b21e641ba5ecf4a67d1fb7e
3
+ metadata.gz: fbf5c6f7d153530d60e070a09d8310ddd7e7f0b894125f5f5154b12257058f81
4
+ data.tar.gz: b5715c20c9defc1887cec395f733a5ce7b0b1402ea35dd3b71d5c9ebe46ca48b
5
5
  SHA512:
6
- metadata.gz: '087f55ab14e910f7681fb67895f242d6ebe0d1ee12701c3d87e0265a1718c8a9909d7bdcfafe384b9eb8c32fd89d62ad467a1d75a9aa39fd77ac4a725a868dcc'
7
- data.tar.gz: a1ee3d3bd0d02475cfd2963cf54201070a20fc91d613104742b62d7d5864979f5c09e031da9b3f5e893a5fedf8940d9762f580f9f9913356ea7c00806d86126e
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
- yarn add "@turbo-boost/streams@VERSION --exact"
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
- > [!TIP]
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 `yarn build`
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 `yarn npm publish --access public`
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TurboBoost
4
4
  module Streams
5
- VERSION = "0.1.6"
5
+ VERSION = "0.1.7"
6
6
  end
7
7
  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.6
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-12 00:00:00.000000000 Z
11
+ date: 2024-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails