apidae 0.9.5 → 0.9.6
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.
- checksums.yaml +4 -4
- data/app/models/apidae/obj.rb +4 -2
- data/lib/apidae/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: bacffbefd10b3a83d529b47c6a6e633a750a16a0
|
|
4
|
+
data.tar.gz: c9854183498dc623b805a06a7ccaebf387e9df32
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd7a3409f95af7415eb4144479c16d3956f50738462a81bafc9ab87b49bc7379148a3a73c0024f02c47b3a355ace3bd6de693ba6d7f39409b7b1e76a68c1e2ce
|
|
7
|
+
data.tar.gz: 64f4fff6724b1aa3ce02eebf96658451295a07a0a58e7bb96b93ca8174187cf30bd72d65768ad3086e49e781efd9382ea4c1e8bcdf6ffa5498fe76e7b5f108b3
|
data/app/models/apidae/obj.rb
CHANGED
|
@@ -204,7 +204,9 @@ module Apidae
|
|
|
204
204
|
attachments_array.select { |att| att.is_a?(Hash) && !att[:traductionFichiers].blank? }.each do |att|
|
|
205
205
|
atts_data[locale] << {
|
|
206
206
|
name: localized_value(att, :nom, locale),
|
|
207
|
-
url: att[:traductionFichiers][0][:url]
|
|
207
|
+
url: att[:traductionFichiers][0][:url],
|
|
208
|
+
type: att[:type],
|
|
209
|
+
description: localized_value(att, :legende, locale)
|
|
208
210
|
}
|
|
209
211
|
end
|
|
210
212
|
end
|
|
@@ -279,7 +281,7 @@ module Apidae
|
|
|
279
281
|
|
|
280
282
|
def self.parse_rates(rates_hash, *locales)
|
|
281
283
|
if rates_hash
|
|
282
|
-
desc = rates_hash[:gratuit] ? 'gratuit' : node_value(rates_hash, :tarifsEnClair, *locales)
|
|
284
|
+
desc = rates_hash[:gratuit] ? {DEFAULT_LOCALE => 'gratuit'} : node_value(rates_hash, :tarifsEnClair, *locales)
|
|
283
285
|
values = rates_hash[:periodes].blank? ? [] : rates_hash[:periodes].map {|p| build_rate(p)}
|
|
284
286
|
methods = rates_hash[:modesPaiement].blank? ? [] : rates_hash[:modesPaiement].map {|p| p[:id]}
|
|
285
287
|
{
|
data/lib/apidae/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apidae
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jean-Baptiste Vilain
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-03-
|
|
11
|
+
date: 2019-03-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|