apiphobic-authorization 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/apiphobic/authorization/authorizers/parameters.rb +1 -1
- data/lib/apiphobic/authorization/resource.rb +3 -2
- data/lib/apiphobic/authorization/version.rb +1 -1
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2e52789dfd4bdcb81496f57b65640060f9b5507dfb88dea346e6e4e70a00338
|
4
|
+
data.tar.gz: 8b7d3db6a3afd89a0d373957b0441469c1b07f9566e91ccd460cd4ec5aff842a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1e9d81247767c12439d0e168dbdf8369d8a8aeb122b1e53288db5f567f017691d13d45038f265c31a8566178c8fb7fd67ca808d926ce35c85d1a9a3460ef0a6
|
7
|
+
data.tar.gz: dff1d9610235548089b9081da50588b46e9c3e0167a7b78511f5e5765d0919816b9f31e257b9a6eeccbc36df3ec98c00dc36ac0ae090479279fc0d7ef7aff807
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -115,7 +115,8 @@ module Resource
|
|
115
115
|
|
116
116
|
@authorized_resource ||= \
|
117
117
|
::Apiphobic::Resource::Model
|
118
|
-
.new(resource:
|
118
|
+
.new(resource: Object.const_get(self.class.singular_resource_class_name),
|
119
|
+
id: params[:id],
|
119
120
|
parameters: authorized_parameters)
|
120
121
|
end
|
121
122
|
|
@@ -124,7 +125,7 @@ module Resource
|
|
124
125
|
|
125
126
|
@authorized_collection ||= \
|
126
127
|
::Apiphobic::Resource::Collection
|
127
|
-
.new(resource:
|
128
|
+
.new(resource: authorized_scope,
|
128
129
|
parameters: authorized_parameters)
|
129
130
|
end
|
130
131
|
|
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.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thegranddesign
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
Y2GAoHKstmfIVhc4XHOPpmTd2o/C29O9oaRgjrkfQEhF/KvJ/PhoV5hvokzsCyI5
|
32
32
|
iUeXPfvrGD/itYIBCgk+fnzyQQ4QtE5hTQaWQ3o2
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2018-
|
34
|
+
date: 2018-07-09 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: apiphobic-resource
|
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
181
|
rubyforge_project:
|
182
|
-
rubygems_version: 2.7.
|
182
|
+
rubygems_version: 2.7.7
|
183
183
|
signing_key:
|
184
184
|
specification_version: 4
|
185
185
|
summary: Authorization for API Requests
|
metadata.gz.sig
CHANGED
Binary file
|