pragma-operation 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pragma/operation/authorization.rb +5 -0
- data/lib/pragma/operation/base.rb +1 -1
- data/lib/pragma/operation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 448af287bc5592b8f11475e11c5363bf742ed9ba
|
4
|
+
data.tar.gz: 63765f85f69ce238b612192b195bba8f9d0aad02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '018c231d13a8afec86fc5bdfe52f73bda8fba96ea9725765307c7a5869a67fd00d909137a69b2db44b5fd8cf49ba6841f4b2b5f301ff5466bbea92cf57070c62'
|
7
|
+
data.tar.gz: d57d5deb6f608e458d8a385e39f754fb044041524864a7ba9ac2de30e2a8cebb471cdc6fb6bd06fc03637a46ff1e5eb13fdaffc9bb553c99164ce09bd1320669
|
@@ -69,6 +69,11 @@ module Pragma
|
|
69
69
|
build_policy(authorizable)
|
70
70
|
end
|
71
71
|
|
72
|
+
params.each_pair do |name, value|
|
73
|
+
next unless policy.resource.respond_to?("#{name}=")
|
74
|
+
policy.resource.send("#{name}=", value)
|
75
|
+
end
|
76
|
+
|
72
77
|
policy.send("#{self.class.operation_name}?")
|
73
78
|
end
|
74
79
|
|
@@ -245,7 +245,7 @@ module Pragma
|
|
245
245
|
def build_links
|
246
246
|
headers.delete('Link')
|
247
247
|
|
248
|
-
link_header = context.links.each_pair.select do |
|
248
|
+
link_header = context.links.each_pair.select do |_relation, url|
|
249
249
|
url && !url.empty?
|
250
250
|
end.map do |relation, url|
|
251
251
|
%(<#{url}>; rel="#{relation}")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pragma-operation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Desantis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: interactor
|