hal_decorator 0.3.2 → 0.3.3
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/lib/hal_decorator/policy/dsl.rb +6 -6
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a057aea9fde00c1fece1badea0112c09a0c0d92
|
4
|
+
data.tar.gz: b2d13e8db0031a61aeee53e1e4e25c3559f91e4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19f2b2cc25265859f03b6fabda3518cdafa0ea1177c28c879134100f09ccdcd053676d16b19ad1f5205ad0b07d10735c6f8200b9d8b3f43598625b989a3180e4
|
7
|
+
data.tar.gz: 98bfed67cd1a6d0b00e759d8506dfe83ebc853cedfc4a06ac9286899c93a90b111dc021a6260a9a5a35734cc2052c20e7355ec4360c4fb3e01d7687f52ab2008
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -56,19 +56,19 @@ module HALDecorator
|
|
56
56
|
rules.defaults(*types, value: true)
|
57
57
|
end
|
58
58
|
|
59
|
-
def attribute(
|
59
|
+
def attribute(*names)
|
60
60
|
b = block_given? ? Proc.new : Proc.new { true }
|
61
|
-
rules.add_attribute(name, b)
|
61
|
+
names.each { |name| rules.add_attribute(name, b) }
|
62
62
|
end
|
63
63
|
|
64
|
-
def link(
|
64
|
+
def link(*rels)
|
65
65
|
b = block_given? ? Proc.new : Proc.new { true }
|
66
|
-
rules.add_link(rel, b)
|
66
|
+
rels.each { |rel| rules.add_link(rel, b) }
|
67
67
|
end
|
68
68
|
|
69
|
-
def embed(
|
69
|
+
def embed(*names)
|
70
70
|
b = block_given? ? Proc.new : Proc.new { true }
|
71
|
-
rules.add_embed(name, b)
|
71
|
+
names.each { |name| rules.add_embed(name, b) }
|
72
72
|
end
|
73
73
|
|
74
74
|
def rules
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hal_decorator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sammy Henningsson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
CNZdF8Vavp6xMQbPHZwqjaeZz2WRXYS7jyYSvCunjwa3OtvXtfbIEGEWE6IM+t9k
|
32
32
|
H1g6Q+B6qk9O6g==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-09-
|
34
|
+
date: 2017-09-10 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
metadata.gz.sig
CHANGED
Binary file
|