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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20cc5f03079a6989647e7953904a8ccfb5ee8ade
4
- data.tar.gz: 95a3fb328632d1d9bbaf46942f4591377374dc6b
3
+ metadata.gz: 1a057aea9fde00c1fece1badea0112c09a0c0d92
4
+ data.tar.gz: b2d13e8db0031a61aeee53e1e4e25c3559f91e4c
5
5
  SHA512:
6
- metadata.gz: e609c39dc84798b33a664ef4788b0ab46a8525516dc7fa635991139a08cb0fa2a0846407ec489e61b58dadbc5bbcd4cda4ca39a884cccfa15417b5ef60d01878
7
- data.tar.gz: 1e783b6d2b101189972a4b2743824f9a94a90387cb05872019da8762ee1e91f0953d15e8e16dccda6400994bca6ceee57bfa285d39f50fa38aedfe303dc57ac8
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(name)
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(rel)
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(name)
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.2
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-03 00:00:00.000000000 Z
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