rhino_project_core 0.20.0.beta.81 → 0.20.0.beta.83
Sign up to get free protection for your applications and to get access to all the features.
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
|
@@ -94,7 +94,9 @@ module Rhino
|
|
94
94
|
password: @current_user.password
|
95
95
|
}, as: :json
|
96
96
|
assert_response_ok
|
97
|
-
|
97
|
+
headers = response.headers
|
98
|
+
# Use the configured header names
|
99
|
+
assert headers[DeviseTokenAuth.headers_names[:"access-token"]]
|
98
100
|
end
|
99
101
|
|
100
102
|
def parsed_response_ids
|
data/lib/rhino/version.rb
CHANGED