rails-metro 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7984159d5d4815a8dd34c8e801453a681891477cd7462dc9ca2bc17a7afac16e
4
- data.tar.gz: 76fb628dbd3ffb5ba2c903ce1939255529ba3e6b09b3fac2e8d518002d783f20
3
+ metadata.gz: b5e5f5c675772d8433c1f94833ca3fb9b7c22c88ffab3732005e5b394b3870f9
4
+ data.tar.gz: 2e29d9e4a4ecd30aa8624f696245b13c6888efbaac511a3bf21cfacb037b8769
5
5
  SHA512:
6
- metadata.gz: af5c65587ee121c14352822e51500702c8eb6fb6573b8a07c9c6fe2124ec7cbe958a1b49f461037fcd379206c8ae8a995d1392cbd40b2a31fd523d40bc95dedf
7
- data.tar.gz: 43d8d9d05da67ee9bed0fdad6c42d47d58cf7e9802c3034758c3a0dfcae77d9c7e44c4a8c75828ed8858dc832426c4f84e00627f9c2596ac736e350854dca243
6
+ metadata.gz: 1cf2a8c78c73f634ee54ac1c50323e9d87d9d49b2f36d4ea80dd09d1b561d4e2b7e0c626b7778c290e596704e081784a57689386589262e10cb9887676d1421d
7
+ data.tar.gz: 043c0c3c288a0361ef0c1001cb65ed640ac4ec2cf747e3d46f469e7621971be2ee2f60b656b7218b6b25471922a7ca104f18c60c0fa2d9bf111b01b37c1bd6e7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.0] - 2026-03-31
4
+
5
+ ### Added
6
+ - **`spark` pack** — Hotwire Spark hot reloading for HTML, CSS, and Ruby changes without full page reload (conflicts with `hotwire_livereload`)
7
+ - **`anycable` pack** — AnyCable high-performance WebSocket server replacing ActionCable (conflicts with `websockets`)
8
+
3
9
  ## [0.1.0] - 2026-03-31
4
10
 
5
11
  ### Added
data/README.md CHANGED
@@ -6,6 +6,7 @@ rails-metro compiles your selections into a [Rails Application Template](https:/
6
6
 
7
7
  ## Installation
8
8
 
9
+ **RubyGems**
9
10
  ```bash
10
11
  gem install rails-metro
11
12
 
@@ -13,6 +14,17 @@ gem install rails-metro
13
14
  gem install bubbletea
14
15
  ```
15
16
 
17
+ **Homebrew**
18
+ ```bash
19
+ brew tap rish/tap
20
+ brew install metro
21
+ ```
22
+
23
+ **Arch Linux (AUR)**
24
+ ```bash
25
+ yay -S ruby-rails-metro
26
+ ```
27
+
16
28
  ## Quick Start
17
29
 
18
30
  ```bash
@@ -0,0 +1,33 @@
1
+ module Rails
2
+ module Metro
3
+ module Packs
4
+ class AnycablePack < FeaturePack
5
+ pack_name "anycable"
6
+ description "AnyCable — high-performance WebSocket server replacing ActionCable"
7
+ category "core"
8
+
9
+ conflicts_with "websockets"
10
+
11
+ def gems
12
+ [
13
+ {name: "anycable-rails"}
14
+ ]
15
+ end
16
+
17
+ def template_lines
18
+ [
19
+ 'generate "anycable:setup"'
20
+ ]
21
+ end
22
+
23
+ def post_install_notes
24
+ [
25
+ "AnyCable: Install the AnyCable Go server: https://docs.anycable.io/anycable-go/getting_started",
26
+ "AnyCable: Start alongside Rails with: anycable & rails s",
27
+ "AnyCable: See https://docs.anycable.io for full configuration"
28
+ ]
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -6,6 +6,8 @@ module Rails
6
6
  description "Hotwire LiveReload for automatic page refresh on file changes"
7
7
  category "ops"
8
8
 
9
+ conflicts_with "spark"
10
+
9
11
  def gems
10
12
  [
11
13
  {name: "hotwire-livereload", group: :development}
@@ -0,0 +1,30 @@
1
+ module Rails
2
+ module Metro
3
+ module Packs
4
+ class SparkPack < FeaturePack
5
+ pack_name "spark"
6
+ description "Hotwire Spark — hot reloading for HTML, CSS, and Ruby changes without full page reload"
7
+ category "ops"
8
+
9
+ conflicts_with "hotwire_livereload"
10
+
11
+ def gems
12
+ [
13
+ {name: "hotwire-spark", group: :development}
14
+ ]
15
+ end
16
+
17
+ def template_lines
18
+ []
19
+ end
20
+
21
+ def post_install_notes
22
+ [
23
+ "Spark: HTML, CSS, and Ruby file changes are streamed live without full page reload",
24
+ "Spark: No browser extension needed -- works via Turbo Streams over ActionCable"
25
+ ]
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -6,6 +6,8 @@ module Rails
6
6
  description "Solid Cable (Rails 8 default, database-backed ActionCable)"
7
7
  category "core"
8
8
 
9
+ conflicts_with "anycable"
10
+
9
11
  def gems
10
12
  [
11
13
  {name: "solid_cable"}
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module Metro
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-metro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rails-metro contributors
@@ -52,6 +52,7 @@ files:
52
52
  - lib/rails/metro/packs/ahoy_pack.rb
53
53
  - lib/rails/metro/packs/amplitude_pack.rb
54
54
  - lib/rails/metro/packs/annotate_pack.rb
55
+ - lib/rails/metro/packs/anycable_pack.rb
55
56
  - lib/rails/metro/packs/api_cors_pack.rb
56
57
  - lib/rails/metro/packs/api_docs_pack.rb
57
58
  - lib/rails/metro/packs/api_guard_pack.rb
@@ -157,6 +158,7 @@ files:
157
158
  - lib/rails/metro/packs/slack_notifier_pack.rb
158
159
  - lib/rails/metro/packs/soft_deletes_pack.rb
159
160
  - lib/rails/metro/packs/solidus_pack.rb
161
+ - lib/rails/metro/packs/spark_pack.rb
160
162
  - lib/rails/metro/packs/spreadsheets_pack.rb
161
163
  - lib/rails/metro/packs/statcounter_pack.rb
162
164
  - lib/rails/metro/packs/stimulus_components_pack.rb