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: 7520f275c9fd07c84bf318a9988b67c800786abeba61f4f477625c27fb8ae8b2
4
- data.tar.gz: 8c9fa7dd8c821453e5704ae12d8ed5dc8bac8719564d3567335fb84006e5c24b
3
+ metadata.gz: bd57de63a18b8a021116e0ec157032a1a1a6323e6a3268d0230793c2d31e0c2c
4
+ data.tar.gz: 986496180423b662b597f5f455404b69e4e4e650566720fc1ff34a6e6e60303e
5
5
  SHA512:
6
- metadata.gz: a955a636c91c58bc12f3ec216f8262a92129960138518a48947e8aca791dc33700b29d85454f2aed24c6213a64e859d65ac0fd429777576e3947b941485c4d3e
7
- data.tar.gz: 6f1c65fe43c9abd00f7594cfe9cb3ee246cb63de1aa2fb3a6c635dd89e00e6d42a60b83aaaaa7b6efcaf5f8af1afbd6c9e0fe817d89bfc2bc8ce879a289673aa
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
@@ -94,7 +94,9 @@ module Rhino
94
94
  password: @current_user.password
95
95
  }, as: :json
96
96
  assert_response_ok
97
- assert response.cookies[DeviseTokenAuth.cookie_name], "Auth cookie #{DeviseTokenAuth.cookie_name} not present"
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
@@ -10,7 +10,7 @@ module Rhino
10
10
  MAJOR = 0
11
11
  MINOR = 20
12
12
  TINY = 0
13
- PRE = "beta.81"
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.81
4
+ version: 0.20.0.beta.83
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Rosevear