apidae 1.4.0 → 1.4.1
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/apidae_data_parser.rb +4 -2
- data/lib/apidae/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7426138fffb907d9917ac5d115a954002023efcc6a2ccbe0d6e27a0ca5f4e85d
|
|
4
|
+
data.tar.gz: d4716809c8a3bb226d8cf538a23c07e2e926a65b1d396911f680cef4dba8cc3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0e49d2d72be1d4f9f0036ca7da7138fb778af340a363b97b2a027062d166dfdf88dc7bc9db9ba83b4b66a186290d157767592552eb889f42c4ba8b5a4b0671d
|
|
7
|
+
data.tar.gz: 44d1a75ac8f9a9a14d3bc54ab31a9b9fdb1bef8bfa35f9edb7d2c19891e1637e89ed6e6f10bd1fd3131966293de66c788508988b1ac3b46cb71017dd3235bb37
|
|
@@ -130,13 +130,15 @@ module Apidae
|
|
|
130
130
|
l.each do |locale|
|
|
131
131
|
pics_data[locale] = []
|
|
132
132
|
pictures_array.select { |p| p.is_a?(Hash) && !p[:traductionFichiers].blank? }.each do |pic|
|
|
133
|
+
pic_file = pic[:traductionFichiers][0]
|
|
133
134
|
pics_data[locale] << {
|
|
134
135
|
id: pic[:identifiant],
|
|
135
136
|
name: localized_value(pic, :nom, locale),
|
|
136
|
-
url:
|
|
137
|
+
url: pic_file[:url].gsub('http:', 'https:'),
|
|
137
138
|
description: localized_value(pic, :legende, locale),
|
|
138
139
|
credits: localized_value(pic, :copyright, locale),
|
|
139
|
-
expiration_date: pic[:dateLimiteDePublication] || ''
|
|
140
|
+
expiration_date: pic[:dateLimiteDePublication] || '',
|
|
141
|
+
properties: {size: pic_file[:taille], width: pic_file[:largeur], height: pic_file[:height]}
|
|
140
142
|
}
|
|
141
143
|
end
|
|
142
144
|
end
|
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: 1.4.
|
|
4
|
+
version: 1.4.1
|
|
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: 2023-
|
|
11
|
+
date: 2023-04-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|