almodovar 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/almodovar/to_xml.rb +6 -10
- data/lib/almodovar/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: b19f145513065282e66a50128438782214bb2bb5
|
4
|
+
data.tar.gz: 03ce3b45231c091f9ca6d166ad663b7ecc073585
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7ff66acbc2cd20268dd447587d4a8129a058b4e1f6f843ac78a082763e290b66a9df8224b9b75bea208d4482d16d4ffae874ecec068a03606d01e3c7223a16b
|
7
|
+
data.tar.gz: 7574afcfa409d58a79eb69537e086d352503f8eef9fef615de384c7bbf08bdfbce560bf316f03003e042b1fb542d25085093d057c74dd2e8326b57c0db1234d6
|
data/lib/almodovar/to_xml.rb
CHANGED
@@ -1,17 +1,13 @@
|
|
1
1
|
module Almodovar
|
2
2
|
module ToXml
|
3
|
-
def
|
4
|
-
|
5
|
-
end
|
6
|
-
|
7
|
-
def to_xml_with_links(options = {}, &block)
|
8
|
-
return to_xml_without_links(options, &block) if !options[:convert_links] || options.delete(:skip_links_one_level)
|
3
|
+
def to_xml(options = {}, &block)
|
4
|
+
return super(options, &block) if !options[:convert_links] || options.delete(:skip_links_one_level)
|
9
5
|
options[:builder].tag!(:link, rel: options[:root]) do |xml|
|
10
|
-
|
6
|
+
super options.merge(skip_links_one_level: self.is_a?(Array)), &block
|
11
7
|
end
|
12
8
|
end
|
13
9
|
end
|
14
|
-
|
10
|
+
|
15
11
|
class Resource
|
16
12
|
def to_xml(options = {})
|
17
13
|
options[:builder].tag!(:link, rel: options[:root], href: url)
|
@@ -19,5 +15,5 @@ module Almodovar
|
|
19
15
|
end
|
20
16
|
end
|
21
17
|
|
22
|
-
Array.send :
|
23
|
-
Hash.send :
|
18
|
+
Array.send :prepend, Almodovar::ToXml
|
19
|
+
Hash.send :prepend, Almodovar::ToXml
|
data/lib/almodovar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: almodovar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BeBanjo S.L.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|