almodovar 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,10 +2,11 @@ module Almodovar
|
|
|
2
2
|
class ResourcePresenter
|
|
3
3
|
class Link
|
|
4
4
|
|
|
5
|
-
attr_reader :rel, :href, :expand_resource, :expand_args
|
|
5
|
+
attr_reader :rel, :href, :expand_resource, :expand_args, :attributes
|
|
6
6
|
|
|
7
7
|
def initialize(*args)
|
|
8
|
-
@rel, @href, @expand_resource, @expand_args = args
|
|
8
|
+
@rel, @href, @expand_resource, @expand_args, @attributes = args
|
|
9
|
+
@attributes ||= {}
|
|
9
10
|
end
|
|
10
11
|
|
|
11
12
|
def to_xml(options = {})
|
|
@@ -60,7 +61,7 @@ module Almodovar
|
|
|
60
61
|
class XmlSerializer < Serializer
|
|
61
62
|
|
|
62
63
|
def to_xml
|
|
63
|
-
builder.link :rel => link.rel, :href => link.href, &expand_block
|
|
64
|
+
builder.link link.attributes.merge(:rel => link.rel, :href => link.href), &expand_block
|
|
64
65
|
end
|
|
65
66
|
|
|
66
67
|
private
|
data/lib/almodovar/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: almodovar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 59
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
8
|
+
- 9
|
|
9
9
|
- 0
|
|
10
|
-
version: 0.
|
|
10
|
+
version: 0.9.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- BeBanjo S.L.
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2013-
|
|
18
|
+
date: 2013-04-15 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: patron
|