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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 971ba5f8f872a37a91d2e8c1755bf838db8bf67a767dbfba1b105b727440d9b7
4
- data.tar.gz: dd0441f61442afffc29b7ab5f70968abd0c35c59e2731247cc55ddeae6e18265
3
+ metadata.gz: 19ad567125176f17f962138eaf218f8e8c91a7a6585b61db0bddfa4c259f7d17
4
+ data.tar.gz: 7c29590624ed404c362deb38866f134ba9516bbd3e6f83f3b04cfb00792caeb4
5
5
  SHA512:
6
- metadata.gz: 1e77b1961db51bcaca110efe1b8c9c6c96e848b523f30e158cc55c94550023fb85289b124ec859abd6957542ae0fcc4e20a63f793985b87ea5a03e2302b9748a
7
- data.tar.gz: 5955435a25990d85b834e9c22d3c37d9621cab21a69dac6c6b9e038e763bc8346a8f6a23886f37098285cd6f055496417f85b34f8351e9f5b4d3e6115b429753
6
+ metadata.gz: f35103be9855cc4e262f12b4dbff0ff935cb65b67d3ae6d2ca619eb1d47bdfcf8829be5b03f2d8ff3cc587509098045d32ccea539fa48395a02c6180ca69546b
7
+ data.tar.gz: ef54f096ea64e518519b59f9f74af756bec7601ee492c0d1aec98736c485e62998cc6ec9149b251fa903f4acdb39f5e8cc36e4ed66aa650357df76090c3fd67b
@@ -1 +1 @@
1
- {".":"0.2.1"}
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
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module Worktrees
3
- VERSION = '0.2.1'.freeze
3
+ VERSION = '0.2.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-worktrees
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asjer Querido