foobara-foobify-rails-app 0.0.8 → 0.0.9

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: 6eb5f6037c355e47e15313d2c4274996d60849838ad794cf664a1a7d758aa200
4
- data.tar.gz: 3f119248ad4359760212ae1e45d0fde9fc10a25b5fbf58b78feddc5fd42f3567
3
+ metadata.gz: 88945c65b1deb28f2defcb0e372f9e188ae24143a71eda998b8cc3ebf02c7276
4
+ data.tar.gz: 34ab2d517a25144d91aad26e26db8a37f79cd4e3dbd48e1eed22d921dd7a7ed0
5
5
  SHA512:
6
- metadata.gz: dbfed87a6626256f515bc9a9d07a1bce1c60ec22909fb00371ee843f5161a13d38b81ab74c1ccd3ed2e2884088904a385a914613fbbd6e63bbd82e12c182c28e
7
- data.tar.gz: 39863179a160bb2b31f6462e6f03772f32ddc47e2eccc2b3e6ff17e99711937e08fc5f2399c7bfdc5b9cb2bf0d22bfadfdd9407fa4a4bdcd5b4e0056ef08b0a8
6
+ metadata.gz: f033a3cd9450810e8880339ceb4f68cfba7f738194d0c227f95c48500a7922831833e82137173bc8b00c5b9bd3618d7865a415f9fd369c71cef7d69cc57683df
7
+ data.tar.gz: 600c9abb749a865f43638a1fec0231e8ac66c62f0ef7b4d8f83e69e91911a514daa028ee5b171c943b59bdf7c765bd34631e3359342a83c45084f4c24ad9f19c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [0.0.9] - 2025-12-19
2
+
3
+ - Make --include-sample-command default to false
4
+ - Improve config descriptions/interface
5
+
1
6
  ## [0.0.8] - 2025-12-18
2
7
 
3
8
  - Improve some formatting in the generated output
@@ -3,25 +3,31 @@ module Foobara
3
3
  module FoobifyRailsApp
4
4
  class FoobifyRailsAppConfig < Foobara::Model
5
5
  attributes do
6
- include_sample_command :boolean, default: true
7
- use_rails_command_connector :boolean,
8
- default: false,
9
- description: "Do you want to expose commands through the rails " \
10
- "router directly instead of running them in controller actions?"
11
- use_active_record_type :boolean,
6
+ include_sample_command :boolean,
12
7
  default: false,
13
- description: "Do you want to treat ActiveRecord classes like Foobara entities? " \
14
- "This means automatically casting primary keys to records and " \
15
- "being able to expose their attributes via command connectors"
16
- rspec :boolean, default: false
8
+ description: "Includes a sample Foobara command in the output"
9
+ rails_command_connector :boolean,
10
+ default: false,
11
+ description: "Wires up a RailsCommandConnector with the Rails router. " \
12
+ "You can use this to see what it would be like to run " \
13
+ "Foobara commands via RPC."
14
+ active_record_type :boolean,
15
+ default: false,
16
+ description: "Will add foobara-active-record-type to the Gemfile which will allow " \
17
+ "ActiveRecord classes to be used in certain ways " \
18
+ "as if they were Foobara entities."
19
+ rspec :boolean,
20
+ default: false,
21
+ description: "If including a sample command then " \
22
+ "this will also generate an RSpec spec for the sample command."
17
23
  end
18
24
 
19
25
  def use_active_record_type?
20
- use_active_record_type
26
+ active_record_type
21
27
  end
22
28
 
23
29
  def use_rails_command_connector?
24
- use_rails_command_connector
30
+ rails_command_connector
25
31
  end
26
32
 
27
33
  def use_rspec?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-foobify-rails-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi