railstart 0.4.3 → 0.4.5

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: 19e0e8c63924f2843dc08337513ca8febb437e05b3980c08bd82187ba2df7b5a
4
- data.tar.gz: 1eb0505613f463b428b885518cf1a60fbc4ccfae34a365ecf703779231bc1a2a
3
+ metadata.gz: 335bb58fb0448ef183a5dab96d9d866e212d75a09310db0ed4c017d9e27cf327
4
+ data.tar.gz: 42fea9cfc2d16dc6b167eb8580f108d43a940f6809de97c308cc64d467bb5056
5
5
  SHA512:
6
- metadata.gz: 9b4b40a19194ff3eba2e11f364c70b394ac5ce2d58df45f40b7efa74629ae7533ed1619ee3b01672133cb5000258f4caf99b2b9d91053689f4cf33456cd26720
7
- data.tar.gz: e87d1cec832d42aca5b77276198b76baa0acd6fa1a8b1e92af28be6202671288fcc4cc773f15ee16c87d7a61f2ac986fa2d84ff58671a723c56f41847396220e
6
+ metadata.gz: a7b8a26a4060fc6e1c449ab759d5dbbf8911ceba0166a8ce5b094fe81f069ee70b38c9ee88671f38e91eb4f1a6cb4f334815c8457efccc570a9fc57d94f7bf12
7
+ data.tar.gz: 29d65e728974f716e6d514135f574b48a7b335842c9330e6457553462bf943dcc5b9beead5e5c5bcfb4212a8c6b30301f689df342e861e2e7f83bfce345f6729
data/CHANGELOG.md CHANGED
@@ -5,6 +5,27 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [Unreleased]
9
+
10
+ ## [0.4.5] - 2026-04-30
11
+
12
+ ### Added
13
+ - **Example configs**: Added copyable `examples/` YAML files for global defaults, API apps, standard PostgreSQL apps, minimal SQLite apps, Vite/Bun apps, and template post-actions
14
+
15
+ ### Changed
16
+ - **Agent guidance**: Tracked `AGENTS.md` in git while excluding it from gem builds
17
+
18
+ ## [0.4.4] - 2026-04-30
19
+
20
+ ### Changed
21
+ - **Agent skill**: Refactored `.agents/skills/railstart-coder/` into a lean skill with focused reference files for CLI usage, presets, post-actions, and gem development
22
+ - **Agent metadata**: Added `agents/openai.yaml` metadata for the railstart skill
23
+ - **Gem packaging**: Excluded local `.omx/` orchestration state from gem builds
24
+ - **README**: Updated the skill section to describe the agent-oriented skill layout
25
+
26
+ ### Removed
27
+ - **Redundant preset skill doc**: Removed `docs/railstart-preset-builder/SKILL.md`; preset authoring guidance now lives in `.agents/skills/railstart-coder/references/`
28
+
8
29
  ## [0.4.3] - 2026-01-04
9
30
 
10
31
  ### Added
@@ -26,7 +47,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
26
47
  - **CRITICAL ARCHITECTURE FIX**: Fixed `multi_select` question defaults to use stable choice **values** (internal IDs like "action_mailer") instead of fragile display **names** (like "Action Mailer"). This prevents preset breakage when display text changes.
27
48
  - Updated `lib/railstart/generator.rb` `ask_multi_select` method to transform values → names at the TTY::Prompt boundary
28
49
  - Updated `config/presets/api-only.yaml` to use values in defaults
29
- - Updated all examples in `docs/railstart-preset-builder/SKILL.md` to use values
50
+ - Updated preset documentation examples to use values
30
51
  - Added comprehensive test coverage (3 new tests) validating transformation and storage behavior
31
52
  - **Documentation**: Corrected SKILL.md to explain values-based approach with stability rationale
32
53
  - Improved discoverability of configuration options - users no longer need to guess what can be configured
data/README.md CHANGED
@@ -143,15 +143,15 @@ railstart new my_app --preset api-only --default
143
143
 
144
144
  ## Creating Custom Presets
145
145
 
146
- Presets are powerful tools for defining opinionated Rails configurations for specific stacks or team standards. For comprehensive guidance on creating presets, see **[Creating Presets Guide](docs/railstart-preset-builder/SKILL.md)**.
146
+ Presets are powerful tools for defining opinionated Rails configurations for specific stacks or team standards.
147
147
 
148
148
  ### Quick Preset Creation
149
149
 
150
- Create a new preset file in `config/presets/{name}.yaml`:
150
+ Create a new preset file in `~/.config/railstart/presets/{name}.yaml`:
151
151
 
152
152
  ```yaml
153
153
  ---
154
- # My Team Preset - PostgreSQL + RSpec + Vite
154
+ # My Team Preset - PostgreSQL + Tailwind + Importmap
155
155
 
156
156
  questions:
157
157
  - id: database
@@ -160,23 +160,21 @@ questions:
160
160
  value: postgresql
161
161
  default: true
162
162
 
163
- - id: javascript
163
+ - id: css
164
164
  choices:
165
- - name: Vite (via vite_rails gem)
166
- value: vite
165
+ - name: Tailwind
166
+ value: tailwind
167
167
  default: true
168
168
 
169
- - id: test_framework
169
+ - id: javascript
170
170
  choices:
171
- - name: RSpec
172
- value: rspec
171
+ - name: Importmap
172
+ value: importmap
173
173
  default: true
174
+ rails_flag: "--javascript=importmap"
174
175
 
175
176
  post_actions:
176
- - id: setup_vite
177
- enabled: true
178
-
179
- - id: setup_rspec
177
+ - id: init_git
180
178
  enabled: true
181
179
  ```
182
180
 
@@ -198,16 +196,29 @@ Railstart includes several ready-to-use presets:
198
196
  - **`api-only`** - Minimal Rails for JSON APIs (no views, no frontend)
199
197
  - **`vite-bun`** - Modern SPA with Vite + Bundlebun
200
198
 
201
- ### Learn More
199
+ ### Example YAML Files
200
+
201
+ This repository also includes copyable YAML examples in `examples/`:
202
+
203
+ - `examples/config.yml` - global defaults for `~/.config/railstart/config.yaml`
204
+ - `examples/presets/api-postgresql.yml` - JSON API service with PostgreSQL
205
+ - `examples/presets/standard-postgresql.yml` - full-stack PostgreSQL app
206
+ - `examples/presets/minimal-sqlite.yml` - lightweight local prototype app
207
+ - `examples/presets/vite-bun.yml` - Vite, Bun, Tailwind, and PostgreSQL
208
+ - `examples/presets/template-action.yml` - template post-action reference
209
+
210
+ Use a preset example directly by passing its path:
202
211
 
203
- For detailed documentation including:
204
- - Available questions and post-actions
205
- - ID-based merging system
206
- - Step-by-step workflow
207
- - Real-world examples
208
- - Best practices and troubleshooting
212
+ ```bash
213
+ railstart new my_app --preset ./examples/presets/standard-postgresql.yml --default
214
+ ```
209
215
 
210
- See the comprehensive **[Creating Presets Guide](docs/railstart-preset-builder/SKILL.md)**.
216
+ Or copy one into your user presets directory:
217
+
218
+ ```bash
219
+ cp examples/presets/standard-postgresql.yml ~/.config/railstart/presets/standard-postgresql.yml
220
+ railstart new my_app --preset standard-postgresql --default
221
+ ```
211
222
 
212
223
  ## Configuration
213
224
 
@@ -411,6 +422,10 @@ Merging is by `id` for both `questions` and `post_actions`, allowing surgical ov
411
422
  - **Command Builder** (`lib/railstart/command_builder.rb`) - Translates answers to `rails new` flags
412
423
  - **CLI** (`lib/railstart/cli.rb`) - Thor command interface with `--preset` option
413
424
 
425
+ ## AI Agent Skill
426
+
427
+ Railstart ships with an agent skill at `.agents/skills/railstart-coder/` for Codex- and Claude-style coding agents. The skill is structured as a lean `SKILL.md` plus focused reference files covering CLI usage, config layering, preset authoring, template post-actions, and gem development.
428
+
414
429
  ## Contributing
415
430
 
416
431
  Bug reports and pull requests are welcome on GitHub at https://github.com/dpaluy/railstart.
@@ -418,3 +433,5 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/dpaluy
418
433
  ## License
419
434
 
420
435
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
436
+
437
+ Supported by [Majestic Labs](https://majesticlabs.dev/).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Railstart
4
- VERSION = "0.4.3"
4
+ VERSION = "0.4.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railstart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - dpaluy