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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4af59fe5624f0ad6a25a16d2f3a34e6b4b24f7cc
4
- data.tar.gz: 385279725b2ebbc9210535c274de95060025a4cd
3
+ metadata.gz: 448af287bc5592b8f11475e11c5363bf742ed9ba
4
+ data.tar.gz: 63765f85f69ce238b612192b195bba8f9d0aad02
5
5
  SHA512:
6
- metadata.gz: 11d83a8c30d72bca7e25e86239d6170f6687bdc5113e0a0775feabc979ca9e8e743dbd30af3dc68607a37eb7eaaeb586302b33e641d48ad8359700e23fa614aa
7
- data.tar.gz: 3900e69be07c8310c89955a858d100bef14132d47e87cddcd1eab83dc6e70176d152c4a05a568dbf3ccdb178f93b60c2045cddb4956d7ddc526aa93e2d99ed29
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 |relation, url|
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}")
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Pragma
3
3
  module Operation
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.1'
5
5
  end
6
6
  end
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.0
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-28 00:00:00.000000000 Z
11
+ date: 2016-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: interactor