apidae 1.4.20 → 1.4.22
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 +1 -1
- data/app/models/apidae/selection.rb +2 -1
- data/lib/apidae/version.rb +1 -1
- data/test/dummy/log/development.log +120 -0
- 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: 06113d4be79039fd53e87ec4f7402a9be0b8cff40a65b56ac5ef7534387f15f7
|
|
4
|
+
data.tar.gz: cea92c0178c6777b373fe354c55140bd77d74cfdf02dd5a91e85eee50ba06d78
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea5118707d30614e8f151a25f334081b895e86814d65a2f0408130086c0e8bbb15136ad4c6c08692baa6f3fab9ebbfa1203cbedd8c42d7da1a9a49b7525164ac
|
|
7
|
+
data.tar.gz: f4b8b035cf728b140863bbf46d5757272aff0411598a77aec2f69e964167fbb64b2733a42c6712a9c2574b32a414da50b48ab075d069b6df57236949187f655c
|
|
@@ -271,7 +271,7 @@ module Apidae
|
|
|
271
271
|
labels: lists_ids(data_hash[:labels], data_hash[:labelsChartesQualite], prestations_hash[:labelsTourismeHandicap]) +
|
|
272
272
|
(node_id(data_hash, :typeLabel) ? [node_id(data_hash, :typeLabel)] : []),
|
|
273
273
|
chains: lists_ids(data_hash[:chaines]) + nodes_ids(data_hash[:chaineEtLabel]),
|
|
274
|
-
ratings: (ratings_list || []).map {|r| {id: r[:id],
|
|
274
|
+
ratings: (ratings_list || []).map {|r| {id: r[:id], type: r.dig(:nom, :id), rating: r.dig(:qualification, :id), ref: r[:numero], start_date: r[:dateDebutValidite], end_date: r[:dateFinValidite], last_visit: r[:dateDerniereVisite]}},
|
|
275
275
|
area: apidae_obj.apidae_type == Obj::DOS ? data_hash.except(:classification) : node_value(data_hash, :lieuDePratique),
|
|
276
276
|
track: apidae_obj.apidae_type == Obj::EQU ? (data_hash[:itineraire] || {}).except(:passagesDelicats) : nil,
|
|
277
277
|
tricky_sections: apidae_obj.apidae_type == Obj::EQU ? node_value(data_hash[:itineraire], :passagesDelicats, *locales) : nil,
|
|
@@ -123,7 +123,7 @@ module Apidae
|
|
|
123
123
|
# Note : WARNING - updated objs will only contain the provided fields
|
|
124
124
|
def add_or_refresh_objs(fields = ["@all"])
|
|
125
125
|
if valid_api?
|
|
126
|
-
res = api_objects({fields: fields})
|
|
126
|
+
res = api_objects({fields: fields, locales: apidae_project&.locales.blank? ? [DEFAULT_LOCALE] : apidae_project.locales})
|
|
127
127
|
if res[:results] && res[:results].length > 0
|
|
128
128
|
res[:results].each do |result|
|
|
129
129
|
obj_data = result.deep_symbolize_keys
|
|
@@ -264,6 +264,7 @@ module Apidae
|
|
|
264
264
|
first: opts[:first] || 0,
|
|
265
265
|
count: opts[:count] || MAX_COUNT,
|
|
266
266
|
selectionIds: opts[:selection_ids],
|
|
267
|
+
locales: opts[:locales].blank? ? [DEFAULT_LOCALE] : opts[:locales],
|
|
267
268
|
identifiants: opts[:obj_ids],
|
|
268
269
|
dateDebut: opts[:from],
|
|
269
270
|
dateFin: opts[:to],
|
data/lib/apidae/version.rb
CHANGED
|
@@ -14144,6 +14144,126 @@ callback this way:
|
|
|
14144
14144
|
That block runs when the application boots, and every time there is a reload.
|
|
14145
14145
|
For historical reasons, it may run twice, so it has to be idempotent.
|
|
14146
14146
|
|
|
14147
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
14148
|
+
Rails autoloads and reloads.
|
|
14149
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
14150
|
+
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.
|
|
14151
|
+
|
|
14152
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
14153
|
+
to be an error condition in future versions of Rails.
|
|
14154
|
+
|
|
14155
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
14156
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
14157
|
+
the expected changes won't be reflected in that stale Module object.
|
|
14158
|
+
|
|
14159
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
14160
|
+
|
|
14161
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
14162
|
+
callback this way:
|
|
14163
|
+
|
|
14164
|
+
Rails.application.reloader.to_prepare do
|
|
14165
|
+
# Autoload classes and modules needed at boot time here.
|
|
14166
|
+
end
|
|
14167
|
+
|
|
14168
|
+
That block runs when the application boots, and every time there is a reload.
|
|
14169
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
14170
|
+
|
|
14171
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
14172
|
+
Rails autoloads and reloads.
|
|
14173
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
14174
|
+
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.
|
|
14175
|
+
|
|
14176
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
14177
|
+
to be an error condition in future versions of Rails.
|
|
14178
|
+
|
|
14179
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
14180
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
14181
|
+
the expected changes won't be reflected in that stale Module object.
|
|
14182
|
+
|
|
14183
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
14184
|
+
|
|
14185
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
14186
|
+
callback this way:
|
|
14187
|
+
|
|
14188
|
+
Rails.application.reloader.to_prepare do
|
|
14189
|
+
# Autoload classes and modules needed at boot time here.
|
|
14190
|
+
end
|
|
14191
|
+
|
|
14192
|
+
That block runs when the application boots, and every time there is a reload.
|
|
14193
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
14194
|
+
|
|
14195
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
14196
|
+
Rails autoloads and reloads.
|
|
14197
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
14198
|
+
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.
|
|
14199
|
+
|
|
14200
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
14201
|
+
to be an error condition in future versions of Rails.
|
|
14202
|
+
|
|
14203
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
14204
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
14205
|
+
the expected changes won't be reflected in that stale Module object.
|
|
14206
|
+
|
|
14207
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
14208
|
+
|
|
14209
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
14210
|
+
callback this way:
|
|
14211
|
+
|
|
14212
|
+
Rails.application.reloader.to_prepare do
|
|
14213
|
+
# Autoload classes and modules needed at boot time here.
|
|
14214
|
+
end
|
|
14215
|
+
|
|
14216
|
+
That block runs when the application boots, and every time there is a reload.
|
|
14217
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
14218
|
+
|
|
14219
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
14220
|
+
Rails autoloads and reloads.
|
|
14221
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
14222
|
+
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.
|
|
14223
|
+
|
|
14224
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
14225
|
+
to be an error condition in future versions of Rails.
|
|
14226
|
+
|
|
14227
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
14228
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
14229
|
+
the expected changes won't be reflected in that stale Module object.
|
|
14230
|
+
|
|
14231
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
14232
|
+
|
|
14233
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
14234
|
+
callback this way:
|
|
14235
|
+
|
|
14236
|
+
Rails.application.reloader.to_prepare do
|
|
14237
|
+
# Autoload classes and modules needed at boot time here.
|
|
14238
|
+
end
|
|
14239
|
+
|
|
14240
|
+
That block runs when the application boots, and every time there is a reload.
|
|
14241
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
14242
|
+
|
|
14243
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
14244
|
+
Rails autoloads and reloads.
|
|
14245
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
14246
|
+
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.
|
|
14247
|
+
|
|
14248
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
14249
|
+
to be an error condition in future versions of Rails.
|
|
14250
|
+
|
|
14251
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
14252
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
14253
|
+
the expected changes won't be reflected in that stale Module object.
|
|
14254
|
+
|
|
14255
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
14256
|
+
|
|
14257
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
14258
|
+
callback this way:
|
|
14259
|
+
|
|
14260
|
+
Rails.application.reloader.to_prepare do
|
|
14261
|
+
# Autoload classes and modules needed at boot time here.
|
|
14262
|
+
end
|
|
14263
|
+
|
|
14264
|
+
That block runs when the application boots, and every time there is a reload.
|
|
14265
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
14266
|
+
|
|
14147
14267
|
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
14148
14268
|
Rails autoloads and reloads.
|
|
14149
14269
|
(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.
|
|
4
|
+
version: 1.4.22
|
|
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-01-
|
|
11
|
+
date: 2026-01-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|