rolemodel-rails 2.7.0 → 2.7.1

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: 30fe14227c2e8b6871de0ae74dd94bb58a204fd1d1db523cbd34c006f81b3d08
4
- data.tar.gz: 03c31aa3406bb87521c205bfe4e60a21834710e81a6bc40672291bf5ce7760dd
3
+ metadata.gz: b95ac3ec58a4a00a09e5777f82d033bedf584615a874de02f32cdfcc353ef5b7
4
+ data.tar.gz: 760c16f159ed100048c949bb01e94f5ac4d4a8e46a2aa3c2d64f5f30ff6ced93
5
5
  SHA512:
6
- metadata.gz: 02b574434c6cd1ecc72ed48a8b64205a5ac3430a708eabaf1529f2cd49261ec6bf15257af4e04c06cf7eb21331e674cdba104ee3f3ebe2c2692bcd2b614968c1
7
- data.tar.gz: 331e633f75a0b959c76a81d082f9a3f983a09838d5ff29258e544271e2ff98302bee2bace098c6f409136247bb6f7a248a1cacb433f34a046a2ec1fb798640dd
6
+ metadata.gz: c72e0e6e196fb8e5b09447cb439126d4112f76746f4f1e017d858cfa93265f2c2131a8a81b35d4181e182f79dc4c1819c76e43a114253dacc43b0a729f96645f
7
+ data.tar.gz: 865f6f41f36e2060d4328ca7756a6688c8ed886d6db9a42ba1975a1c0d0f996a36857227ac862be7e780f1938af1c8d6e8094654009cd3306dbffe9427657b3e
data/README.md CHANGED
@@ -121,6 +121,7 @@ Generators that leave behind conventions a coding agent needs to follow also ins
121
121
  | `rolemodel:turbo:modals` | `turbo-modals` |
122
122
  | `rolemodel:turbo:form` | `dynamic-forms` |
123
123
  | `rolemodel:soft_destroyable` | `soft-destroyable` |
124
+ | `rolemodel:core_setup` | `polymorphic-parent-resources`, `rake-tasks` |
124
125
 
125
126
  ## Utilities
126
127
 
@@ -1,5 +1,7 @@
1
1
  # Core Setup Generator
2
2
 
3
+ [USAGE](./USAGE)
4
+
3
5
  Runs the core generators every new Rails app should have. Unlike
4
6
  `rolemodel:all`, this skips the app-specific extras (React, SaaS/Devise,
5
7
  GoodJob, Kaminari, etc.) so you get just the standard baseline — a new Rails
@@ -9,21 +11,28 @@ app you can push straight to Heroku right after generation.
9
11
 
10
12
  - A freshly generated Rails app
11
13
 
14
+ ## Options
15
+
16
+ - `--material`, `--phosphor`, `--tabler`, `--feather`, `--lucide`, or `--custom`
17
+ picks the Optics icon library up front. Without one, the icons generator asks.
18
+ - `--skip-deployable` skips Heroku, Sentry, and Lograge.
19
+
12
20
  ## What you get
13
21
 
14
- - [GitHub](../github) — standard GitHub configuration
15
- - [Heroku](../heroku) — standard Heroku deployment configuration
16
- - [Readme](../readme) — standard project README
17
- - [Webpack](../webpack) — Webpack v5 for JS and CSS
18
- - [Sentry](../sentry) — error monitoring for Ruby and JavaScript
19
22
  - [Slim](../slim) — Slim templates
20
- - [Optics](../optics) — Optics design system (pass an icon library flag such as
21
- `--material` to choose it up front; otherwise the icons generator asks)
22
- - [Testing](../testing) — RSpec, FactoryBot, parallel_tests, TestProf
23
- (pass `--js-runner` to include jasmine-playwright-runner)
23
+ - [Webpack](../webpack) — Webpack v5 for JS and CSS
24
+ - [Optics](../optics) — Optics design system and icons
24
25
  - [SimpleForm](../simple_form) — SimpleForm with our configuration
25
26
  - [Tom Select](../tom_select) — Tom Select with a Stimulus controller and SimpleForm inputs
27
+ - [Testing](../testing) — RSpec, FactoryBot, parallel_tests, and TestProf
28
+ - [Turbo](../turbo) — Turbo 8 setup, confirm dialogs, modals, and dynamic forms
29
+ - [Flash](../ui_components/flash) — flash messages
30
+ - [GitHub](../github) — standard GitHub configuration
31
+ - [Readme](../readme) — standard project README
26
32
  - [Linters](../linters) — Rubocop and ESLint
27
- - [UI Components](../ui_components) — flash, the modal pattern, & Turbo 8 support
28
- - [Editors](../editors) — EditorConfig and recommended VSCode extensions
33
+ - [Heroku](../heroku) — standard Heroku deployment configuration
34
+ - [Sentry](../sentry) — error monitoring for Ruby and JavaScript
29
35
  - [Lograge](../lograge) — condensed request logging
36
+ - The [`polymorphic-parent-resources`](https://github.com/RoleModel/skills/tree/main/skills/polymorphic-parent-resources)
37
+ and [`rake-tasks`](https://github.com/RoleModel/skills/tree/main/skills/rake-tasks) agent skills for
38
+ `resource_for` and `Rolemodel::Utility::TaskTools`, installed into `.agents/skills`
@@ -1,12 +1,16 @@
1
1
  Description:
2
2
  Runs the core generators every new Rails app should have
3
3
 
4
- Sets up GitHub config, Heroku deployment, README, Webpack, Sentry, Slim,
5
- Optics, testing (RSpec & friends), SimpleForm, linters, Turbo 8+ support,
6
- and Lograge. The result is an app that is ready to push directly to Heroku.
4
+ Sets up Slim, Webpack, Optics, SimpleForm, Tom Select, testing (RSpec &
5
+ friends), Turbo, flash messages, GitHub config, README, linters, Heroku
6
+ deployment, Sentry, and Lograge. It also installs the agent skills for
7
+ resource_for and TaskTools. The result is an app that is ready to push
8
+ directly to Heroku.
7
9
 
8
- Pass --js-runner to also include jasmine-playwright-runner for browser
9
- JS testing.
10
+ Pass an icon library flag (--material, --phosphor, --tabler, --feather,
11
+ --lucide, or --custom) to choose the Optics icons up front.
12
+
13
+ Pass --skip-deployable to skip Heroku, Sentry, and Lograge.
10
14
 
11
15
  Example:
12
- rails generate rolemodel:core_setup
16
+ rails generate rolemodel:core_setup --material
@@ -6,6 +6,13 @@ module Rolemodel
6
6
 
7
7
  class_option :skip_deployable, type: :boolean, default: false, desc: 'skip generators for app deployment (Heroku, Sentry, Lograge)'
8
8
 
9
+ def install_agent_skills
10
+ say 'Installing agent skills for the rolemodel_rails utilities', :green
11
+
12
+ install_skill 'polymorphic-parent-resources'
13
+ install_skill 'rake-tasks'
14
+ end
15
+
9
16
  def run_the_core_generators
10
17
  generate 'rolemodel:slim'
11
18
  generate 'rolemodel:webpack'
@@ -5,5 +5,6 @@
5
5
  ## What you get
6
6
 
7
7
  * [Flash](./flash)
8
- * [Modals](./modals)
9
8
  * [Navbar](./navbar)
9
+
10
+ Modals moved to the [Turbo modals](../turbo/modals) generator.
@@ -62,7 +62,7 @@ module Rolemodel
62
62
  end
63
63
 
64
64
  def to_h
65
- @args.transform_values { it.to_s.strip.match?('_') ? nil : it.to_s.strip }.compact
65
+ @args.transform_values { it.to_s.strip.presence unless it.to_s.strip == '_' }.compact
66
66
  end
67
67
  end
68
68
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rolemodel
4
- VERSION = '2.7.0'
4
+ VERSION = '2.7.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rolemodel-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - RoleModel Software Inc