almodovar 0.9.5 → 0.9.6

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: 71f07634a67e62ee4456897e2480a0c69401acdd
4
- data.tar.gz: 428137c90a12c326e0a9763fc529d51b72410690
3
+ metadata.gz: b289e05bdd883582037d1abffa2db9394e10a068
4
+ data.tar.gz: 6f3301dee15a2044aa615441a2462a87708d49ae
5
5
  SHA512:
6
- metadata.gz: 0ddcc8825b2c5b54ff4ed676a1eb9e9cca02c08f3e1dc8c86f45aa75f98dc7fa1460d3f57bac0224cdd2f7b0704c6864214b3a43d3a3362ce30de90094d39c1b
7
- data.tar.gz: c95821c3ff07b2ad1dd080a8ca82f9649e5840fdca44922daced8152a8e1d80f306b3d0a4938dd0e370d551ff0947d9079d06511dd4785acb67231c96d52cc53
6
+ metadata.gz: dc30ff144bdbe5ea05348c5e6616eea3e6b0be218c67bf7f3c37364cfbe0a8350f4c9041c62a53af84b6e50a26069d5e56782cc34e86077b445e3ec791e5f93b
7
+ data.tar.gz: 0267c8b5a0b7aef7010a2c18988a79ce4aa03741184602a7d7e105bb91c7066676be2236a0bba10691728dbe7d3d64ecc5c3ad7f08ea31fa1c11de0076993590
@@ -28,8 +28,8 @@ module Almodovar
28
28
  xml.instruct! unless options[:skip_instruct]
29
29
  xml.tag! resource_type.pluralize.dasherize, :type => 'array' do
30
30
  xml.tag!('total-entries', @total) if @total
31
- next_link.to_xml(:builder => xml) if next_link
32
31
  prev_link.to_xml(:builder => xml) if prev_link
32
+ next_link.to_xml(:builder => xml) if next_link
33
33
  @resources.each { |value| value.to_xml(options.merge(:root => resource_type.singularize, :skip_instruct => true)) }
34
34
  end
35
35
  end
@@ -37,8 +37,8 @@ module Almodovar
37
37
  def as_json(options = {})
38
38
  message = ActiveSupport::OrderedHash.new.tap do |message|
39
39
  message[:total_entries] = @total if @total
40
- message.merge! next_link.as_json if next_link
41
40
  message.merge! prev_link.as_json if prev_link
41
+ message.merge! next_link.as_json if next_link
42
42
  message[:entries] = @resources.map { |resource| resource.as_json(options) }
43
43
  end
44
44
  end
@@ -1,3 +1,3 @@
1
1
  module Almodovar
2
- VERSION = '0.9.5'
2
+ VERSION = '0.9.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: almodovar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - BeBanjo S.L.