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: d7f6123816342296824d915b225178c13a79bd0871a121557ccaf339305365a3
4
- data.tar.gz: 56f08bd75c8aea4b341e865834ccd6502ca6f05bb49c957fcc20474aeffda8d6
3
+ metadata.gz: bd57de63a18b8a021116e0ec157032a1a1a6323e6a3268d0230793c2d31e0c2c
4
+ data.tar.gz: 986496180423b662b597f5f455404b69e4e4e650566720fc1ff34a6e6e60303e
5
5
  SHA512:
6
- metadata.gz: 15782f70f64a12b73b61c5352212e120f0b3ddb6b4b0823842fa747229a6f8afe0eb67b2ab5f1bc0051c6292782cb568d9f110ff293b88822a3898a750c6f4eb
7
- data.tar.gz: a1967b590b68299ec87bb95567552e8835ed56f64db246e2cafd65dc04af70cbf2c11cd33c7213f256ff5b984cb61b3c9c5ec397d1fb777f1d04e75f6eb895de
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
@@ -4,6 +4,7 @@ require "rhino/engine"
4
4
 
5
5
  module <%= camelized_modules %>
6
6
  class Engine < ::Rails::Engine
7
+ <%= engine_config -%>
7
8
  config.autoload_paths << File.expand_path("../../lib", __dir__)
8
9
 
9
10
  initializer "<%= namespaced_name %>.register_module" do
data/lib/rhino/version.rb CHANGED
@@ -10,7 +10,7 @@ module Rhino
10
10
  MAJOR = 0
11
11
  MINOR = 20
12
12
  TINY = 0
13
- PRE = "beta.82"
13
+ PRE = "beta.83"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhino_project_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0.beta.82
4
+ version: 0.20.0.beta.83
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Rosevear