apidae 1.4.21 → 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/selection.rb +2 -1
- data/lib/apidae/version.rb +1 -1
- data/test/dummy/log/development.log +24 -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
|
|
@@ -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
|
@@ -14240,6 +14240,30 @@ callback this way:
|
|
|
14240
14240
|
That block runs when the application boots, and every time there is a reload.
|
|
14241
14241
|
For historical reasons, it may run twice, so it has to be idempotent.
|
|
14242
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
|
+
|
|
14243
14267
|
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
|
14244
14268
|
Rails autoloads and reloads.
|
|
14245
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
|