rhino_project_core 0.20.0.beta.82 → 0.20.0.beta.83
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd57de63a18b8a021116e0ec157032a1a1a6323e6a3268d0230793c2d31e0c2c
|
|
4
|
+
data.tar.gz: 986496180423b662b597f5f455404b69e4e4e650566720fc1ff34a6e6e60303e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b05c1607cacbf9069d3ca0cc4e507c09a8a09e49feadb7d8bfe153209fb45a4557932ccc64a6fb544ef4ebab04b24de84a0f23b2b55cc96de8cf9c055b5d38c
|
|
7
|
+
data.tar.gz: e3cde116627a912b8d7ffa2ac6f55d572f22598fc48606aca962d2f627ac6fe8c5342ec73fd82397702391321e6fee98fb97def75dc7c4dcedf864218d16e169
|
|
@@ -32,7 +32,8 @@ module Rhino
|
|
|
32
32
|
class ModuleGenerator < ::Rails::Generators::PluginGenerator
|
|
33
33
|
source_root File.expand_path("templates", __dir__)
|
|
34
34
|
|
|
35
|
-
class_option :database, type: :string, aliases: "-d", default: "postgresql"
|
|
35
|
+
class_option :database, type: :string, aliases: "-d", default: "postgresql", hide: true
|
|
36
|
+
class_option :full, type: :boolean, default: true, hide: true
|
|
36
37
|
remove_class_option :template
|
|
37
38
|
|
|
38
39
|
def self.banner
|
|
@@ -52,6 +53,17 @@ module Rhino
|
|
|
52
53
|
ModuleBuilder
|
|
53
54
|
end
|
|
54
55
|
|
|
56
|
+
def engine_config
|
|
57
|
+
content = []
|
|
58
|
+
|
|
59
|
+
content << "isolate_namespace #{camelized_modules}\n" if mountable?
|
|
60
|
+
content << "config.generators.api_only = true" if api?
|
|
61
|
+
|
|
62
|
+
return optimize_indentation(content.join("\n"), 4) if content.any?
|
|
63
|
+
|
|
64
|
+
nil
|
|
65
|
+
end
|
|
66
|
+
|
|
55
67
|
def rhino_version
|
|
56
68
|
::Rhino::VERSION::STRING
|
|
57
69
|
end
|
data/lib/rhino/version.rb
CHANGED