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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: acfd5f037ca1ba885ab7fc2d2ed11618947a96e8bb8847e051baee377a0181ec
4
- data.tar.gz: 8f6a40a4382092ab12d4d356d0b8ca5a6d991a164ce8ce30fbbae5b48818f5c5
3
+ metadata.gz: 7426138fffb907d9917ac5d115a954002023efcc6a2ccbe0d6e27a0ca5f4e85d
4
+ data.tar.gz: d4716809c8a3bb226d8cf538a23c07e2e926a65b1d396911f680cef4dba8cc3f
5
5
  SHA512:
6
- metadata.gz: 56a436f4892053be5b30c06535d95da37534986ce4c0283d3de0306a5184a96dbbd5a431589d1971b85a29fb27b9bac4482f99e946a3cefac1aa47fcbcb4df9e
7
- data.tar.gz: 54df029782ed8fa2a7550702459f976b5768d2e8f01983e67a7bdb99d638094f6d195101b30e8e1eded29b77e115d6e1f6433a5105cb60e328a74419e6ee8a2e
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: pic[:traductionFichiers][0][:url].gsub('http:', 'https:'),
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
@@ -1,3 +1,3 @@
1
1
  module Apidae
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
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.0
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-02-17 00:00:00.000000000 Z
11
+ date: 2023-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails