apidae 1.4.25 → 1.4.27
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/controllers/apidae/objects_controller.rb +3 -1
- data/app/models/apidae/apidae_data_parser.rb +28 -9
- data/lib/apidae/version.rb +1 -1
- data/test/dummy/log/development.log +240 -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: 6525d2631e8ea7901f5d6f1b6c55506856924097675eb6510ac18515aed76fa5
|
|
4
|
+
data.tar.gz: 8098ce9c50ff0acf67d9b688b483e6b1642a2cb12b2ac8169916e915c301376c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3af17e245092c35ed431f6eebf1af426ca847dd20893fa2d06a7d2eb88e208c20ed3b5625fd4679c7a86897b105136711a12bc4e3d343527cc0341e7dfba693b
|
|
7
|
+
data.tar.gz: bdc78befd306b2d7bd0a75ff315ef60c250429d9ffb3efbb9e3c0a32dbd9a28b63d555414d2f1da1e9a74cff234092ced92d5c1d165f0549c3f0d5806744c3f5
|
|
@@ -70,10 +70,12 @@ module Apidae
|
|
|
70
70
|
rescue OpenURI::HTTPError => err
|
|
71
71
|
logger.error("Failed to refresh obj : #{@obj.apidae_id}")
|
|
72
72
|
logger.error("Error is : #{err}")
|
|
73
|
+
logger.debug err.backtrace.join("\n")
|
|
73
74
|
redirect_to referrer, alert: "Une erreur s'est produite lors de la mise à jour de l'objet. Veuillez vérifier que le projet Apidae comporte une clé API valide."
|
|
74
75
|
rescue Exception => ex
|
|
75
76
|
logger.error("Failed to refresh obj : #{@obj.apidae_id}")
|
|
76
|
-
logger.error("Error is : #{
|
|
77
|
+
logger.error("Error is : #{ex}")
|
|
78
|
+
logger.debug ex.backtrace.join("\n")
|
|
77
79
|
redirect_to referrer, alert: "Une erreur s'est produite lors de la mise à jour de l'objet."
|
|
78
80
|
end
|
|
79
81
|
end
|
|
@@ -182,14 +182,18 @@ module Apidae
|
|
|
182
182
|
contact_details[:telephone][c[:identifiant]] = {
|
|
183
183
|
value: c.dig(:coordonnees, :fr),
|
|
184
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))}]}]
|
|
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
186
|
}
|
|
187
187
|
else
|
|
188
188
|
contacts_refs_by_code = CONTACTS_MAP.invert
|
|
189
189
|
if contacts_refs_by_code.keys.include?(c[:type][:id])
|
|
190
190
|
contact_ref = contacts_refs_by_code[c[:type][:id]].to_sym
|
|
191
191
|
contact_details[contact_ref] ||= {}
|
|
192
|
-
contact_details[contact_ref][c[:identifiant]] = {
|
|
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
|
+
}
|
|
193
197
|
end
|
|
194
198
|
end
|
|
195
199
|
end
|
|
@@ -402,13 +406,7 @@ module Apidae
|
|
|
402
406
|
each_year: o[:tousLesAns],
|
|
403
407
|
closing_days: closing_days.blank? ? [] : closing_days.map {|d| d[:dateSpeciale]},
|
|
404
408
|
details: node_value(o, :complementHoraire, *locales),
|
|
405
|
-
time_periods:
|
|
406
|
-
{
|
|
407
|
-
type: 'opening',
|
|
408
|
-
weekdays: compute_weekdays(o),
|
|
409
|
-
time_frames: (o[:horaireOuverture].blank? && o[:horaireFermeture].blank?) ? [] : [{start_time: o[:horaireOuverture], end_time: o[:horaireFermeture], recurrence: nil}]
|
|
410
|
-
}
|
|
411
|
-
]
|
|
409
|
+
time_periods: build_time_periods(o)
|
|
412
410
|
}
|
|
413
411
|
end
|
|
414
412
|
end
|
|
@@ -427,6 +425,27 @@ module Apidae
|
|
|
427
425
|
end
|
|
428
426
|
end
|
|
429
427
|
|
|
428
|
+
def self.build_time_periods(o)
|
|
429
|
+
if o[:horaires].blank?
|
|
430
|
+
[
|
|
431
|
+
{
|
|
432
|
+
type: 'opening',
|
|
433
|
+
weekdays: compute_weekdays(o),
|
|
434
|
+
time_frames: (o[:horaireOuverture].blank? && o[:horaireFermeture].blank?) ? [] : [{start_time: o[:horaireOuverture], end_time: o[:horaireFermeture], recurrence: nil}]
|
|
435
|
+
}
|
|
436
|
+
]
|
|
437
|
+
else
|
|
438
|
+
o[:horaires].map do |h|
|
|
439
|
+
{
|
|
440
|
+
type: h.dig(:type, :externalType),
|
|
441
|
+
weekdays: compute_weekdays(o),
|
|
442
|
+
time_frames: (h[:timePeriods] || []).map {|tp| (tp[:timeFrames] || [])}.flatten.select {|tf| !tf[:startTime].blank? || !tf[:endTime].blank?}
|
|
443
|
+
.map {|tf| {start_time: tf[:startTime], end_time: tf[:endTime]}}
|
|
444
|
+
}
|
|
445
|
+
end
|
|
446
|
+
end
|
|
447
|
+
end
|
|
448
|
+
|
|
430
449
|
def self.node_value(node, key, *locales)
|
|
431
450
|
l = locales.blank? ? [DEFAULT_LOCALE] : locales
|
|
432
451
|
locales_map = Hash[l.map {|loc| [localized_key(loc), loc]}]
|
data/lib/apidae/version.rb
CHANGED
|
@@ -15200,6 +15200,246 @@ callback this way:
|
|
|
15200
15200
|
That block runs when the application boots, and every time there is a reload.
|
|
15201
15201
|
For historical reasons, it may run twice, so it has to be idempotent.
|
|
15202
15202
|
|
|
15203
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
15204
|
+
Rails autoloads and reloads.
|
|
15205
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
15206
|
+
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.
|
|
15207
|
+
|
|
15208
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
15209
|
+
to be an error condition in future versions of Rails.
|
|
15210
|
+
|
|
15211
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
15212
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
15213
|
+
the expected changes won't be reflected in that stale Module object.
|
|
15214
|
+
|
|
15215
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
15216
|
+
|
|
15217
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
15218
|
+
callback this way:
|
|
15219
|
+
|
|
15220
|
+
Rails.application.reloader.to_prepare do
|
|
15221
|
+
# Autoload classes and modules needed at boot time here.
|
|
15222
|
+
end
|
|
15223
|
+
|
|
15224
|
+
That block runs when the application boots, and every time there is a reload.
|
|
15225
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
15226
|
+
|
|
15227
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
15228
|
+
Rails autoloads and reloads.
|
|
15229
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
15230
|
+
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.
|
|
15231
|
+
|
|
15232
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
15233
|
+
to be an error condition in future versions of Rails.
|
|
15234
|
+
|
|
15235
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
15236
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
15237
|
+
the expected changes won't be reflected in that stale Module object.
|
|
15238
|
+
|
|
15239
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
15240
|
+
|
|
15241
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
15242
|
+
callback this way:
|
|
15243
|
+
|
|
15244
|
+
Rails.application.reloader.to_prepare do
|
|
15245
|
+
# Autoload classes and modules needed at boot time here.
|
|
15246
|
+
end
|
|
15247
|
+
|
|
15248
|
+
That block runs when the application boots, and every time there is a reload.
|
|
15249
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
15250
|
+
|
|
15251
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
15252
|
+
Rails autoloads and reloads.
|
|
15253
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
15254
|
+
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.
|
|
15255
|
+
|
|
15256
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
15257
|
+
to be an error condition in future versions of Rails.
|
|
15258
|
+
|
|
15259
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
15260
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
15261
|
+
the expected changes won't be reflected in that stale Module object.
|
|
15262
|
+
|
|
15263
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
15264
|
+
|
|
15265
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
15266
|
+
callback this way:
|
|
15267
|
+
|
|
15268
|
+
Rails.application.reloader.to_prepare do
|
|
15269
|
+
# Autoload classes and modules needed at boot time here.
|
|
15270
|
+
end
|
|
15271
|
+
|
|
15272
|
+
That block runs when the application boots, and every time there is a reload.
|
|
15273
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
15274
|
+
|
|
15275
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
15276
|
+
Rails autoloads and reloads.
|
|
15277
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
15278
|
+
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.
|
|
15279
|
+
|
|
15280
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
15281
|
+
to be an error condition in future versions of Rails.
|
|
15282
|
+
|
|
15283
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
15284
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
15285
|
+
the expected changes won't be reflected in that stale Module object.
|
|
15286
|
+
|
|
15287
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
15288
|
+
|
|
15289
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
15290
|
+
callback this way:
|
|
15291
|
+
|
|
15292
|
+
Rails.application.reloader.to_prepare do
|
|
15293
|
+
# Autoload classes and modules needed at boot time here.
|
|
15294
|
+
end
|
|
15295
|
+
|
|
15296
|
+
That block runs when the application boots, and every time there is a reload.
|
|
15297
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
15298
|
+
|
|
15299
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
15300
|
+
Rails autoloads and reloads.
|
|
15301
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
15302
|
+
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.
|
|
15303
|
+
|
|
15304
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
15305
|
+
to be an error condition in future versions of Rails.
|
|
15306
|
+
|
|
15307
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
15308
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
15309
|
+
the expected changes won't be reflected in that stale Module object.
|
|
15310
|
+
|
|
15311
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
15312
|
+
|
|
15313
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
15314
|
+
callback this way:
|
|
15315
|
+
|
|
15316
|
+
Rails.application.reloader.to_prepare do
|
|
15317
|
+
# Autoload classes and modules needed at boot time here.
|
|
15318
|
+
end
|
|
15319
|
+
|
|
15320
|
+
That block runs when the application boots, and every time there is a reload.
|
|
15321
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
15322
|
+
|
|
15323
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
15324
|
+
Rails autoloads and reloads.
|
|
15325
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
15326
|
+
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.
|
|
15327
|
+
|
|
15328
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
15329
|
+
to be an error condition in future versions of Rails.
|
|
15330
|
+
|
|
15331
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
15332
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
15333
|
+
the expected changes won't be reflected in that stale Module object.
|
|
15334
|
+
|
|
15335
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
15336
|
+
|
|
15337
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
15338
|
+
callback this way:
|
|
15339
|
+
|
|
15340
|
+
Rails.application.reloader.to_prepare do
|
|
15341
|
+
# Autoload classes and modules needed at boot time here.
|
|
15342
|
+
end
|
|
15343
|
+
|
|
15344
|
+
That block runs when the application boots, and every time there is a reload.
|
|
15345
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
15346
|
+
|
|
15347
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
15348
|
+
Rails autoloads and reloads.
|
|
15349
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
15350
|
+
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.
|
|
15351
|
+
|
|
15352
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
15353
|
+
to be an error condition in future versions of Rails.
|
|
15354
|
+
|
|
15355
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
15356
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
15357
|
+
the expected changes won't be reflected in that stale Module object.
|
|
15358
|
+
|
|
15359
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
15360
|
+
|
|
15361
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
15362
|
+
callback this way:
|
|
15363
|
+
|
|
15364
|
+
Rails.application.reloader.to_prepare do
|
|
15365
|
+
# Autoload classes and modules needed at boot time here.
|
|
15366
|
+
end
|
|
15367
|
+
|
|
15368
|
+
That block runs when the application boots, and every time there is a reload.
|
|
15369
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
15370
|
+
|
|
15371
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
15372
|
+
Rails autoloads and reloads.
|
|
15373
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
15374
|
+
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.
|
|
15375
|
+
|
|
15376
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
15377
|
+
to be an error condition in future versions of Rails.
|
|
15378
|
+
|
|
15379
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
15380
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
15381
|
+
the expected changes won't be reflected in that stale Module object.
|
|
15382
|
+
|
|
15383
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
15384
|
+
|
|
15385
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
15386
|
+
callback this way:
|
|
15387
|
+
|
|
15388
|
+
Rails.application.reloader.to_prepare do
|
|
15389
|
+
# Autoload classes and modules needed at boot time here.
|
|
15390
|
+
end
|
|
15391
|
+
|
|
15392
|
+
That block runs when the application boots, and every time there is a reload.
|
|
15393
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
15394
|
+
|
|
15395
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
15396
|
+
Rails autoloads and reloads.
|
|
15397
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
15398
|
+
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.
|
|
15399
|
+
|
|
15400
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
15401
|
+
to be an error condition in future versions of Rails.
|
|
15402
|
+
|
|
15403
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
15404
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
15405
|
+
the expected changes won't be reflected in that stale Module object.
|
|
15406
|
+
|
|
15407
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
15408
|
+
|
|
15409
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
15410
|
+
callback this way:
|
|
15411
|
+
|
|
15412
|
+
Rails.application.reloader.to_prepare do
|
|
15413
|
+
# Autoload classes and modules needed at boot time here.
|
|
15414
|
+
end
|
|
15415
|
+
|
|
15416
|
+
That block runs when the application boots, and every time there is a reload.
|
|
15417
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
15418
|
+
|
|
15419
|
+
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
15420
|
+
Rails autoloads and reloads.
|
|
15421
|
+
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
|
15422
|
+
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.
|
|
15423
|
+
|
|
15424
|
+
Being able to do this is deprecated. Autoloading during initialization is going
|
|
15425
|
+
to be an error condition in future versions of Rails.
|
|
15426
|
+
|
|
15427
|
+
Reloading does not reboot the application, and therefore code executed during
|
|
15428
|
+
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
|
15429
|
+
the expected changes won't be reflected in that stale Module object.
|
|
15430
|
+
|
|
15431
|
+
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
|
15432
|
+
|
|
15433
|
+
In order to autoload safely at boot time, please wrap your code in a reloader
|
|
15434
|
+
callback this way:
|
|
15435
|
+
|
|
15436
|
+
Rails.application.reloader.to_prepare do
|
|
15437
|
+
# Autoload classes and modules needed at boot time here.
|
|
15438
|
+
end
|
|
15439
|
+
|
|
15440
|
+
That block runs when the application boots, and every time there is a reload.
|
|
15441
|
+
For historical reasons, it may run twice, so it has to be idempotent.
|
|
15442
|
+
|
|
15203
15443
|
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
15204
15444
|
Rails autoloads and reloads.
|
|
15205
15445
|
(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.27
|
|
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-
|
|
11
|
+
date: 2026-07-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|