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 +4 -4
- data/CHANGELOG.md +5 -0
- data/src/foobify_rails_app_config.rb +18 -12
- 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: 88945c65b1deb28f2defcb0e372f9e188ae24143a71eda998b8cc3ebf02c7276
|
|
4
|
+
data.tar.gz: 34ab2d517a25144d91aad26e26db8a37f79cd4e3dbd48e1eed22d921dd7a7ed0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f033a3cd9450810e8880339ceb4f68cfba7f738194d0c227f95c48500a7922831833e82137173bc8b00c5b9bd3618d7865a415f9fd369c71cef7d69cc57683df
|
|
7
|
+
data.tar.gz: 600c9abb749a865f43638a1fec0231e8ac66c62f0ef7b4d8f83e69e91911a514daa028ee5b171c943b59bdf7c765bd34631e3359342a83c45084f4c24ad9f19c
|
data/CHANGELOG.md
CHANGED
|
@@ -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,
|
|
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: "
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
26
|
+
active_record_type
|
|
21
27
|
end
|
|
22
28
|
|
|
23
29
|
def use_rails_command_connector?
|
|
24
|
-
|
|
30
|
+
rails_command_connector
|
|
25
31
|
end
|
|
26
32
|
|
|
27
33
|
def use_rspec?
|