apiphobic-authorization 1.6.0 → 1.7.0

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: ebe1b6813491f637fc907e1d68455b3eb94550c52a77297a12ddfc26d8847975
4
- data.tar.gz: ecc7acaaee95c033c6b5a9c22c54127abcffe03553890b48a5b89c8c07765008
3
+ metadata.gz: 6545946cd0dd43da1ee7ba9ad6c630c0f621219b50515a11e3e9458ec1c51fd4
4
+ data.tar.gz: 15192e3bde8064f9f5211512438700accbf8dbbb9b332321706c0e5ac3538c54
5
5
  SHA512:
6
- metadata.gz: 04ca46de212a7b5fb46db8a4f94b809df95ed744e0ea5e0e2a73a8a79359499ddb347d96f8466d54c770eeb67fd356545f037cc36f254dc18ffde4358a956e4c
7
- data.tar.gz: d853205773ad8b0de8ebfb1ae2704c06ddfe99c296ea7117df5de0f9b431d3c6ed5dd770e837fcb518f55ffb7cb77d7f2b42313b32a74ae60b27c08049588a1b
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
- resource_name,
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: Object.const_get(self.class.singular_resource_class_name),
124
+ .new(resource: authorized_resource_class,
119
125
  id: params[:id],
120
126
  parameters: authorized_parameters)
121
127
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Apiphobic
4
4
  module Authorization
5
- VERSION = '1.6.0'
5
+ VERSION = '1.7.0'
6
6
  end
7
7
  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.6.0
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-09 00:00:00.000000000 Z
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.6.0
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
- 7�$���3<=<U{_� �� XD';�{x��S4T���t����ٽ|��‘�Af��F�qW)+k��F����7p���ˑQ�;T!����\��>ޮ{K�r��J��2\�M�,��)I"�|h e��Sy���j���Oȋ��M�m�P&$���*L�Gǹ�8Ќ��"O�@e�c��T��GB^&��o���Q;b����j�̜�y��v���������%��l\(U�ƺ��������=i���tX�|�����1,�
2
- z��U���>�7W�>���z��u:��]����������W ��$N(<�M�>]���PG��I'w�r���(��;��
1
+ :��#�
2
+ ��;��Kg�v#r+Z:�8,Ś%�wTK~x*�m�!@�a�s��Nz#�"1R��