apidae 1.4.24 → 1.4.26

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: 5e513d29358cb1f27b691b5ed7737a2a150c58401293cad26bd5f16b70b2e9fa
4
- data.tar.gz: 5a2b4761a88125484589340bba590cd3c435884d34d517ed9997388f74b25420
3
+ metadata.gz: 1b5f1e7bc931578067144a5f16694fbc79e2f51c467656b2b1dcaf9fcc34b632
4
+ data.tar.gz: 70357a305970c3bc87e9a235ba1343cccb9d7f05fdcef6c87dd41087fb451e08
5
5
  SHA512:
6
- metadata.gz: dee928ac46fc6a92783a01d0c5b93dff176bfcfe4865c06317e271767ad9ed2aa1252b48c5875cfb05e000d4b5f23aed17d2539df4bda648089f3e39bb16ce07
7
- data.tar.gz: 13b2bf26534e8de01de8cadd47e60a8f658a0f7de8ed7d1f0c290aca51f1cb08767248e242a054c45225aa22a4fa0f619fc8f7850a0b27e45f29e7755f897cb4
6
+ metadata.gz: 4e33789e716ab48e998bb58b9daba74c9bb2d02a5208635a2ed4270fb7d8c76a89c43c00f23395e21919d38186164edaf1a56af9373f31e45f81d31ed79a71c3
7
+ data.tar.gz: 1d19cf480d60561f29554334b6b6ab14778750e6048555cd4b262b533e3c472f4c0bbe91847af12bcc2d8d564e97b16c103a81910a8b6215ceb320bc81c2808a
@@ -179,13 +179,21 @@ module Apidae
179
179
  case c[:type][:id]
180
180
  when PHONE, ALT_PHONE
181
181
  contact_details[:telephone] ||= {}
182
- contact_details[:telephone][c[:identifiant]] = {value: c[:coordonnees][:fr], description: c.dig(:observation, :libelleFr)}
182
+ contact_details[:telephone][c[:identifiant]] = {
183
+ value: c.dig(:coordonnees, :fr),
184
+ description: c.dig(:observation, :libelleFr),
185
+ locales: Hash[(c[:coordonnees] || {}).except(:fr).keys.map {|l| [l, {value: c.dig(:coordonnees, l), description: c.dig(:observation, localized_key(l.to_s))}]}]
186
+ }
183
187
  else
184
188
  contacts_refs_by_code = CONTACTS_MAP.invert
185
189
  if contacts_refs_by_code.keys.include?(c[:type][:id])
186
190
  contact_ref = contacts_refs_by_code[c[:type][:id]].to_sym
187
191
  contact_details[contact_ref] ||= {}
188
- contact_details[contact_ref][c[:identifiant]] = {value: c[:coordonnees][:fr], description: c.dig(:observation, :libelleFr)}
192
+ contact_details[contact_ref][c[:identifiant]] = {
193
+ value: c.dig(:coordonnees, :fr),
194
+ description: c.dig(:observation, :libelleFr),
195
+ locales: Hash[(c[:coordonnees] || {}).except(:fr).keys.map {|l| [l, {value: c.dig(:coordonnees, l), description: c.dig(:observation, localized_key(l.to_s))}]}]
196
+ }
189
197
  end
190
198
  end
191
199
  end
@@ -1,3 +1,3 @@
1
1
  module Apidae
2
- VERSION = "1.4.24"
2
+ VERSION = "1.4.26"
3
3
  end
@@ -15128,6 +15128,78 @@ callback this way:
15128
15128
  That block runs when the application boots, and every time there is a reload.
15129
15129
  For historical reasons, it may run twice, so it has to be idempotent.
15130
15130
 
15131
+ Check the "Autoloading and Reloading Constants" guide to learn more about how
15132
+ Rails autoloads and reloads.
15133
+ (called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
15134
+ DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
15135
+
15136
+ Being able to do this is deprecated. Autoloading during initialization is going
15137
+ to be an error condition in future versions of Rails.
15138
+
15139
+ Reloading does not reboot the application, and therefore code executed during
15140
+ initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
15141
+ the expected changes won't be reflected in that stale Module object.
15142
+
15143
+ `config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
15144
+
15145
+ In order to autoload safely at boot time, please wrap your code in a reloader
15146
+ callback this way:
15147
+
15148
+ Rails.application.reloader.to_prepare do
15149
+ # Autoload classes and modules needed at boot time here.
15150
+ end
15151
+
15152
+ That block runs when the application boots, and every time there is a reload.
15153
+ For historical reasons, it may run twice, so it has to be idempotent.
15154
+
15155
+ Check the "Autoloading and Reloading Constants" guide to learn more about how
15156
+ Rails autoloads and reloads.
15157
+ (called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
15158
+ DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
15159
+
15160
+ Being able to do this is deprecated. Autoloading during initialization is going
15161
+ to be an error condition in future versions of Rails.
15162
+
15163
+ Reloading does not reboot the application, and therefore code executed during
15164
+ initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
15165
+ the expected changes won't be reflected in that stale Module object.
15166
+
15167
+ `config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
15168
+
15169
+ In order to autoload safely at boot time, please wrap your code in a reloader
15170
+ callback this way:
15171
+
15172
+ Rails.application.reloader.to_prepare do
15173
+ # Autoload classes and modules needed at boot time here.
15174
+ end
15175
+
15176
+ That block runs when the application boots, and every time there is a reload.
15177
+ For historical reasons, it may run twice, so it has to be idempotent.
15178
+
15179
+ Check the "Autoloading and Reloading Constants" guide to learn more about how
15180
+ Rails autoloads and reloads.
15181
+ (called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
15182
+ DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
15183
+
15184
+ Being able to do this is deprecated. Autoloading during initialization is going
15185
+ to be an error condition in future versions of Rails.
15186
+
15187
+ Reloading does not reboot the application, and therefore code executed during
15188
+ initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
15189
+ the expected changes won't be reflected in that stale Module object.
15190
+
15191
+ `config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
15192
+
15193
+ In order to autoload safely at boot time, please wrap your code in a reloader
15194
+ callback this way:
15195
+
15196
+ Rails.application.reloader.to_prepare do
15197
+ # Autoload classes and modules needed at boot time here.
15198
+ end
15199
+
15200
+ That block runs when the application boots, and every time there is a reload.
15201
+ For historical reasons, it may run twice, so it has to be idempotent.
15202
+
15131
15203
  Check the "Autoloading and Reloading Constants" guide to learn more about how
15132
15204
  Rails autoloads and reloads.
15133
15205
  (called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
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.24
4
+ version: 1.4.26
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: 2026-06-11 00:00:00.000000000 Z
11
+ date: 2026-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails