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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc546c375c4b0197063352e38e055f4c51366768
4
- data.tar.gz: 929c83c4e93004697e980ec92688598c681640ec
3
+ metadata.gz: b19f145513065282e66a50128438782214bb2bb5
4
+ data.tar.gz: 03ce3b45231c091f9ca6d166ad663b7ecc073585
5
5
  SHA512:
6
- metadata.gz: 40563773b89f684fc4564c77d436ded0d58e479ecdcb622d5742ce49a430cbea6d1864d634caab50967efd0fb2d35b39c2ac5521652312c200de2c8d87794a12
7
- data.tar.gz: b939721c3185ac43dc70b6d667ddfe00552877a7712e4d785876111148962597320893144b458bd35991423d3dcdea435ba6908de93374cee5a66daf0c82f7bb
6
+ metadata.gz: b7ff66acbc2cd20268dd447587d4a8129a058b4e1f6f843ac78a082763e290b66a9df8224b9b75bea208d4482d16d4ffae874ecec068a03606d01e3c7223a16b
7
+ data.tar.gz: 7574afcfa409d58a79eb69537e086d352503f8eef9fef615de384c7bbf08bdfbce560bf316f03003e042b1fb542d25085093d057c74dd2e8326b57c0db1234d6
@@ -1,17 +1,13 @@
1
1
  module Almodovar
2
2
  module ToXml
3
- def self.included(base)
4
- base.alias_method_chain :to_xml, :links
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
- to_xml_without_links options.merge(skip_links_one_level: self.is_a?(Array)), &block
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 :include, Almodovar::ToXml
23
- Hash.send :include, Almodovar::ToXml
18
+ Array.send :prepend, Almodovar::ToXml
19
+ Hash.send :prepend, Almodovar::ToXml
@@ -1,3 +1,3 @@
1
1
  module Almodovar
2
- VERSION = '1.6.0'
2
+ VERSION = '1.7.0'
3
3
  end
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.6.0
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: 2017-12-27 00:00:00.000000000 Z
11
+ date: 2018-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder