apiphobic-authorization 1.6.0 → 1.7.0
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/apiphobic/authorization/resource.rb +8 -2
- data/lib/apiphobic/authorization/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6545946cd0dd43da1ee7ba9ad6c630c0f621219b50515a11e3e9458ec1c51fd4
|
|
4
|
+
data.tar.gz: 15192e3bde8064f9f5211512438700accbf8dbbb9b332321706c0e5ac3538c54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90ad4d024ba604d3e8aa408f29526c976ea69a1382986225683bbd13033149125f20755566668230b760a52beb2cce0f0d6e13703d189509cf1ec7e7d9a419a4
|
|
7
|
+
data.tar.gz: d13c43e139feb1958ac9fd62b1cd8941a9a2b52e6c9108b522c04b4a1b6448519b019315396b79028270939645925bf44756b0e7bf528eb454b82918377cdd53
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -32,7 +32,8 @@ module Resource
|
|
|
32
32
|
[
|
|
33
33
|
name_components['root_module'],
|
|
34
34
|
'Authorizers',
|
|
35
|
-
|
|
35
|
+
name_components['submodules'],
|
|
36
|
+
base_resource_name,
|
|
36
37
|
type,
|
|
37
38
|
]
|
|
38
39
|
.compact
|
|
@@ -110,12 +111,17 @@ module Resource
|
|
|
110
111
|
token: token)
|
|
111
112
|
end
|
|
112
113
|
|
|
114
|
+
def authorized_resource_class
|
|
115
|
+
@authorized_resource_class ||= Object
|
|
116
|
+
.const_get(self.class.singular_resource_class_name)
|
|
117
|
+
end
|
|
118
|
+
|
|
113
119
|
def authorized_resource
|
|
114
120
|
return if RESOURCE_COLLECTION_ACTIONS.include?(action_name)
|
|
115
121
|
|
|
116
122
|
@authorized_resource ||= \
|
|
117
123
|
::Apiphobic::Resource::Model
|
|
118
|
-
.new(resource:
|
|
124
|
+
.new(resource: authorized_resource_class,
|
|
119
125
|
id: params[:id],
|
|
120
126
|
parameters: authorized_parameters)
|
|
121
127
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apiphobic-authorization
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thegranddesign
|
|
@@ -37,7 +37,7 @@ cert_chain:
|
|
|
37
37
|
3yXL4G6eW3rdBW/OiLF7GgG2o26d02OMzf4+ubUVS5LQDOcd4vgNPLWzJSBt1YIh
|
|
38
38
|
TgBsED7Me5YdMVXxtTWYsF1VMzaL9hReD3UXGcxe
|
|
39
39
|
-----END CERTIFICATE-----
|
|
40
|
-
date: 2022-07-
|
|
40
|
+
date: 2022-07-17 00:00:00.000000000 Z
|
|
41
41
|
dependencies:
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: apiphobic-resource
|
|
@@ -165,7 +165,7 @@ metadata:
|
|
|
165
165
|
allowed_push_host: https://rubygems.org
|
|
166
166
|
bug_tracker_uri: https://github.com/thekompanee/apiphobic-authorization/issues
|
|
167
167
|
changelog_uri: https://github.com/thekompanee/apiphobic-authorization/blob/master/CHANGELOG.md
|
|
168
|
-
documentation_uri: https://github.com/thekompanee/apiphobic-authorization/tree/releases/v1.
|
|
168
|
+
documentation_uri: https://github.com/thekompanee/apiphobic-authorization/tree/releases/v1.7.0
|
|
169
169
|
homepage_uri: https://github.com/thekompanee/apiphobic-authorization
|
|
170
170
|
source_code_uri: https://github.com/thekompanee/apiphobic-authorization
|
|
171
171
|
wiki_uri: https://github.com/thekompanee/apiphobic-authorization/wiki
|
metadata.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
:��#�
|
|
2
|
+
��;��K�g�v#r+Z:�8,Ś%�wTK~x*�m�!@�a�s��Nz#�"1R��
|