rails-worktrees 0.2.1 → 0.2.2
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 +4 -4
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +7 -0
- data/README.md +4 -2
- data/lib/generators/worktrees/install/install_generator.rb +4 -2
- data/lib/rails/worktrees/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 19ad567125176f17f962138eaf218f8e8c91a7a6585b61db0bddfa4c259f7d17
|
|
4
|
+
data.tar.gz: 7c29590624ed404c362deb38866f134ba9516bbd3e6f83f3b04cfb00792caeb4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f35103be9855cc4e262f12b4dbff0ff935cb65b67d3ae6d2ca619eb1d47bdfcf8829be5b03f2d8ff3cc587509098045d32ccea539fa48395a02c6180ca69546b
|
|
7
|
+
data.tar.gz: ef54f096ea64e518519b59f9f74af756bec7601ee492c0d1aec98736c485e62998cc6ec9149b251fa903f4acdb39f5e8cc36e4ed66aa650357df76090c3fd67b
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{".":"0.2.
|
|
1
|
+
{".":"0.2.2"}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.2](https://github.com/asjer/rails-worktrees/compare/v0.2.1...v0.2.2) (2026-03-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **yolo:** skip generating `Procfile.dev.worktree.example` in --yolo mode ([b2320be](https://github.com/asjer/rails-worktrees/commit/b2320be92c84bfdcbb4f781fb34fc079df09f0b1))
|
|
9
|
+
|
|
3
10
|
## [0.2.1](https://github.com/asjer/rails-worktrees/compare/v0.2.0...v0.2.1) (2026-03-30)
|
|
4
11
|
|
|
5
12
|
|
data/README.md
CHANGED
|
@@ -21,11 +21,12 @@ The installer adds:
|
|
|
21
21
|
|
|
22
22
|
- `bin/wt` — a thin wrapper that executes the gem-owned CLI
|
|
23
23
|
- `config/initializers/rails_worktrees.rb` — optional configuration
|
|
24
|
-
- `Procfile.dev.worktree.example` — a copy-paste helper for `${DEV_PORT:-3000}` in `Procfile.dev`
|
|
24
|
+
- `Procfile.dev.worktree.example` — a copy-paste helper for `${DEV_PORT:-3000}` in `Procfile.dev` on regular installs
|
|
25
25
|
- a safe update to `config/database.yml` for common development/test database names
|
|
26
26
|
|
|
27
27
|
With `--yolo`, the installer also:
|
|
28
28
|
|
|
29
|
+
- skips `Procfile.dev.worktree.example`
|
|
29
30
|
- replaces the existing `web:` entry in `Procfile.dev` with the DEV_PORT-aware command when `Procfile.dev` already exists
|
|
30
31
|
- updates `config/puma.rb` to use `port ENV['DEV_PORT'] || ENV.fetch('PORT', 3000)` when it still uses a supported default `PORT` binding
|
|
31
32
|
- updates `mise.toml` or `.mise.toml` to load `.env` from `[env]` when either file already exists
|
|
@@ -131,6 +132,7 @@ web: env RUBY_DEBUG_OPEN=true bin/rails server -b 0.0.0.0 -p ${DEV_PORT:-3000}
|
|
|
131
132
|
|
|
132
133
|
If you run `bin/rails generate worktrees:install --yolo`, the installer applies the three common follow-ups for you when the files already exist:
|
|
133
134
|
|
|
135
|
+
- skip generating `Procfile.dev.worktree.example`
|
|
134
136
|
- replace the existing `web:` entry in `Procfile.dev`
|
|
135
137
|
- update `config/puma.rb` to `port ENV['DEV_PORT'] || ENV.fetch('PORT', 3000)` when it still uses a supported default `PORT` binding
|
|
136
138
|
- add `_.file = ".env"` to the `[env]` section of `mise.toml` or `.mise.toml`
|
|
@@ -158,7 +160,7 @@ This smoke test:
|
|
|
158
160
|
- creates a temporary Rails app from a compatible Rails version
|
|
159
161
|
- installs `rails-worktrees` from the current checkout path
|
|
160
162
|
- runs `bin/rails generate worktrees:install --yolo`
|
|
161
|
-
- verifies `bin/wt`, the generated initializer, the Procfile example, yolo updates to `Procfile.dev`, `config/puma.rb`, and `mise.toml`, `config/database.yml` patching, and worktree `.env` bootstrapping
|
|
163
|
+
- verifies `bin/wt`, the generated initializer, that `--yolo` skips the Procfile example, yolo updates to `Procfile.dev`, `config/puma.rb`, and `mise.toml`, `config/database.yml` patching, and worktree `.env` bootstrapping
|
|
162
164
|
- creates a temporary bare `origin` and confirms `bin/wt smoke-branch` creates a real worktree
|
|
163
165
|
|
|
164
166
|
By default, the script cleans up all temp directories after the run. Set `KEEP_SMOKE_TEST_ARTIFACTS=1` to keep them around for debugging, or set `RAILS_WORKTREES_SMOKE_RAILS_VERSION` to try a different compatible Rails version.
|
|
@@ -51,6 +51,8 @@ module Worktrees
|
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
def create_procfile_worktree_example
|
|
54
|
+
return if options[:yolo]
|
|
55
|
+
|
|
54
56
|
template('Procfile.dev.worktree.example.tt', 'Procfile.dev.worktree.example')
|
|
55
57
|
end
|
|
56
58
|
|
|
@@ -128,9 +130,9 @@ module Worktrees
|
|
|
128
130
|
def installed_items_text
|
|
129
131
|
items = [
|
|
130
132
|
' • bin/wt',
|
|
131
|
-
' • config/initializers/rails_worktrees.rb'
|
|
132
|
-
' • Procfile.dev.worktree.example'
|
|
133
|
+
' • config/initializers/rails_worktrees.rb'
|
|
133
134
|
]
|
|
135
|
+
items << ' • Procfile.dev.worktree.example' unless options[:yolo]
|
|
134
136
|
items << database_follow_up_line if database_follow_up_line
|
|
135
137
|
items.join("\n")
|
|
136
138
|
end
|