rhino_project_core 0.20.0.beta.83 → 0.20.0.beta.85

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: bd57de63a18b8a021116e0ec157032a1a1a6323e6a3268d0230793c2d31e0c2c
4
- data.tar.gz: 986496180423b662b597f5f455404b69e4e4e650566720fc1ff34a6e6e60303e
3
+ metadata.gz: 46772df05fc53e4b8c4f04485648ff5cbefd59347d626090704e7dc13f33e0d2
4
+ data.tar.gz: 1fb2e9c12bb26e4a05c2b125e8c959162927a59268fd8df7225435838758f5fb
5
5
  SHA512:
6
- metadata.gz: 2b05c1607cacbf9069d3ca0cc4e507c09a8a09e49feadb7d8bfe153209fb45a4557932ccc64a6fb544ef4ebab04b24de84a0f23b2b55cc96de8cf9c055b5d38c
7
- data.tar.gz: e3cde116627a912b8d7ffa2ac6f55d572f22598fc48606aca962d2f627ac6fe8c5342ec73fd82397702391321e6fee98fb97def75dc7c4dcedf864218d16e169
6
+ metadata.gz: cf145e9c230b347b7b38af48cfcd03bbfb30558a979ffb7f72fd1ec18e0b08cb66edba42b08506e6c9375988758127409f612599d822cf4300a33989c01713fc
7
+ data.tar.gz: 3ed5e5fd034e572db52be0a924e6363a3be87b357f50036463daac42e66c521ccdf6e898018cac26d964aba5ae183d5eac447445e0806630fa82b2c5a3d99913
@@ -30,7 +30,7 @@ module DeviseTokenAuth::OmniauthCallbacksController::Extensions
30
30
 
31
31
  # set a server cookie if configured
32
32
  if DeviseTokenAuth.cookie_enabled
33
- auth_header = @resource.build_auth_header(@token.token, @token.client)
33
+ auth_header = @resource.build_auth_headers(@token.token, @token.client)
34
34
  cookies[DeviseTokenAuth.cookie_name] = DeviseTokenAuth.cookie_attributes.merge(value: auth_header.to_json)
35
35
  end
36
36
  rescue ActiveRecord::RecordInvalid
@@ -5,15 +5,20 @@ require "rails/generators/active_record/model/model_generator"
5
5
 
6
6
  module Rhino
7
7
  class ModelGenerator < ::ActiveRecord::Generators::ModelGenerator
8
- # This is the path to the templates used by the original model generator
9
- # I think this can be removed in Rails 7.1 https://github.com/rails/rails/pull/47181
10
- source_root File.join(File.dirname(::ActiveRecord::Generators::ModelGenerator.instance_method(:create_migration_file).source_location.first),
11
- "templates")
8
+ source_root File.expand_path("templates", __dir__)
12
9
 
13
10
  class_option :owner, type: :string, desc: "The model is owned by the reference attribute", group: :owner
14
11
  class_option :base_owner, type: :boolean, default: false, desc: "The model is owned by the base owner", group: :owner
15
12
  class_option :global_owner, type: :boolean, default: false, desc: "The model is globally owned", group: :owner
16
13
 
14
+ # Parent source paths
15
+ def source_paths
16
+ [
17
+ File.expand_path("templates", __dir__),
18
+ ::ActiveRecord::Generators::ModelGenerator.source_root
19
+ ]
20
+ end
21
+
17
22
  def create_migration_file
18
23
  # We check the ownership of the reference attributes before creating the migration
19
24
  check_ownership
data/lib/rhino/engine.rb CHANGED
@@ -1,6 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "rhino/version"
4
+
5
+ # https://guides.rubyonrails.org/engines.html#other-gem-dependencies
6
+ require "devise"
7
+ require "devise_invitable"
8
+ require "devise_token_auth"
9
+ require "pundit"
10
+
4
11
  module Rhino
5
12
  class Engine < ::Rails::Engine
6
13
  config.before_configuration do
@@ -12,19 +19,19 @@ module Rhino
12
19
  end
13
20
  end
14
21
 
15
- initializer 'rhino.active_record_extension' do
22
+ initializer "rhino.active_record_extension" do
16
23
  ActiveSupport.on_load(:active_record) do
17
- require_relative 'resource/active_record_extension'
18
- require_relative 'resource/active_record_tree'
19
- require_relative 'resource/active_model_extension'
24
+ require_relative "resource/active_record_extension"
25
+ require_relative "resource/active_record_tree"
26
+ require_relative "resource/active_model_extension"
20
27
 
21
28
  include Rhino::Resource::ActiveRecordExtension if Rhino.auto_include_active_record
22
29
  end
23
30
  end
24
31
 
25
- initializer 'rhino.active_storage_extension' do
32
+ initializer "rhino.active_storage_extension" do
26
33
  ActiveSupport.on_load(:active_storage_attachment) do
27
- require_relative 'resource/active_storage_extension'
34
+ require_relative "resource/active_storage_extension"
28
35
 
29
36
  include Rhino::Resource::ActiveStorageExtension
30
37
  end
@@ -32,7 +39,7 @@ module Rhino
32
39
 
33
40
  # https://guides.rubyonrails.org/engines.html#overriding-models-and-controllers
34
41
  # Use root instead of Rails.root to scope for this engine
35
- initializer 'rhino.overrides' do
42
+ initializer "rhino.overrides" do
36
43
  overrides = "#{root}/app/overrides"
37
44
  Rails.autoloaders.main.ignore(overrides)
38
45
 
@@ -43,13 +50,13 @@ module Rhino
43
50
  end
44
51
  end
45
52
 
46
- initializer 'rhino.check_resources' do
53
+ initializer "rhino.check_resources" do
47
54
  config.after_initialize do
48
55
  check_resources
49
56
  end
50
57
  end
51
58
 
52
- initializer 'rhino.resource_reloader' do
59
+ initializer "rhino.resource_reloader" do
53
60
  config.after_initialize do
54
61
  Rails.application.reloader.to_prepare do
55
62
  Rhino.resource_classes = nil
@@ -57,8 +64,8 @@ module Rhino
57
64
  end
58
65
  end
59
66
 
60
- initializer 'rhino.register_module' do
61
- require 'rhino/omniauth/strategies/azure_o_auth2'
67
+ initializer "rhino.register_module" do
68
+ require "rhino/omniauth/strategies/azure_o_auth2"
62
69
 
63
70
  config.after_initialize do
64
71
  Rhino.registered_modules[:rhino] = {
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.83"
13
+ PRE = "beta.85"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.83
4
+ version: 0.20.0.beta.85
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Rosevear
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-21 00:00:00.000000000 Z
11
+ date: 2024-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -34,68 +34,70 @@ dependencies:
34
34
  name: activeadmin
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - '='
38
38
  - !ruby/object:Gem::Version
39
39
  version: 2.14.0
40
- - - "<="
41
- - !ruby/object:Gem::Version
42
- version: 3.0.0
43
40
  type: :runtime
44
41
  prerelease: false
45
42
  version_requirements: !ruby/object:Gem::Requirement
46
43
  requirements:
47
- - - "~>"
44
+ - - '='
48
45
  - !ruby/object:Gem::Version
49
46
  version: 2.14.0
50
- - - "<="
47
+ - !ruby/object:Gem::Dependency
48
+ name: devise
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - '='
51
52
  - !ruby/object:Gem::Version
52
- version: 3.0.0
53
+ version: 4.9.4
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - '='
59
+ - !ruby/object:Gem::Version
60
+ version: 4.9.4
53
61
  - !ruby/object:Gem::Dependency
54
62
  name: devise_token_auth
55
63
  requirement: !ruby/object:Gem::Requirement
56
64
  requirements:
57
- - - ">="
65
+ - - '='
58
66
  - !ruby/object:Gem::Version
59
- version: '0'
67
+ version: 1.2.3
60
68
  type: :runtime
61
69
  prerelease: false
62
70
  version_requirements: !ruby/object:Gem::Requirement
63
71
  requirements:
64
- - - ">="
72
+ - - '='
65
73
  - !ruby/object:Gem::Version
66
- version: '0'
74
+ version: 1.2.3
67
75
  - !ruby/object:Gem::Dependency
68
76
  name: js_regex
69
77
  requirement: !ruby/object:Gem::Requirement
70
78
  requirements:
71
- - - "~>"
79
+ - - '='
72
80
  - !ruby/object:Gem::Version
73
81
  version: 3.11.1
74
82
  type: :runtime
75
83
  prerelease: false
76
84
  version_requirements: !ruby/object:Gem::Requirement
77
85
  requirements:
78
- - - "~>"
86
+ - - '='
79
87
  - !ruby/object:Gem::Version
80
88
  version: 3.11.1
81
89
  - !ruby/object:Gem::Dependency
82
90
  name: pundit
83
91
  requirement: !ruby/object:Gem::Requirement
84
92
  requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: 2.1.0
88
- - - "<="
93
+ - - '='
89
94
  - !ruby/object:Gem::Version
90
95
  version: 2.1.0
91
96
  type: :runtime
92
97
  prerelease: false
93
98
  version_requirements: !ruby/object:Gem::Requirement
94
99
  requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: 2.1.0
98
- - - "<="
100
+ - - '='
99
101
  - !ruby/object:Gem::Version
100
102
  version: 2.1.0
101
103
  - !ruby/object:Gem::Dependency
@@ -112,6 +114,20 @@ dependencies:
112
114
  - - "~>"
113
115
  - !ruby/object:Gem::Version
114
116
  version: '13.1'
117
+ - !ruby/object:Gem::Dependency
118
+ name: rgl
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - '='
122
+ - !ruby/object:Gem::Version
123
+ version: 0.6.6
124
+ type: :runtime
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - '='
129
+ - !ruby/object:Gem::Version
130
+ version: 0.6.6
115
131
  description: ''
116
132
  email:
117
133
  - jprosevear@nubinary.com