activeadmin_batched_export 0.3.1 → 0.3.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e93f12265a281843049efbf5266abaa1a097f9d49b642734cf9457c93ce6dd86
|
|
4
|
+
data.tar.gz: 9fd765cfb434f66e14ee4a3bcdc76726b0fe45409b0fec04904b435b5949395f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab8f3476d7eec0a5fba80b7170a116b9a13df06efff0f865d4aa7933593557ecacd056a4fd7ec229f70f66c053779169b6cb6328d3f4a62e0a24ad93f0699eea
|
|
7
|
+
data.tar.gz: b7f01fd4e7af21b8c69c0b67bb7380b8b8b0c9fd874e7e155dba65e8bc4197677590c2cc49dade46f2d79c6afca16b08f59edd30e5b87554332e9d6256941c43
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 0.3.2 (2026-09-07)
|
|
4
|
+
|
|
5
|
+
- Serve the workspace export assembly as JavaScript from `ActiveAdmin.importmap`.
|
|
6
|
+
- Pin export modules on `ActiveAdmin.importmap` only.
|
|
7
|
+
|
|
3
8
|
## 0.3.1 (2026-09-07)
|
|
4
9
|
|
|
5
10
|
- Return 406 when a csv, json, or xml `batched_export` request is not JSON metadata and not a matching-format batch.
|
data/README.md
CHANGED
|
@@ -176,7 +176,7 @@ See [examples/custom_theme/README.md](examples/custom_theme/README.md) for local
|
|
|
176
176
|
|
|
177
177
|
## Stimulus controller and assets
|
|
178
178
|
|
|
179
|
-
The engine pins `controllers/activeadmin_batched_export/batched_export_controller` and `activeadmin_batched_export/chunk_assembly` on
|
|
179
|
+
The engine pins `controllers/activeadmin_batched_export/batched_export_controller` and `activeadmin_batched_export/chunk_assembly` on `ActiveAdmin.importmap` only. Include the gem `app/assets/controllers` and `app/assets/javascripts` paths in the host importmap cache sweeper when developing locally.
|
|
180
180
|
|
|
181
181
|
## How it works
|
|
182
182
|
|
|
@@ -31,18 +31,15 @@ module ActiveAdmin
|
|
|
31
31
|
app.config.importmap.cache_sweepers << assets_path.join("javascripts")
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
initializer "activeadmin_batched_export.importmap", after:
|
|
35
|
-
next unless
|
|
34
|
+
initializer "activeadmin_batched_export.importmap", after: "active_admin.importmap" do
|
|
35
|
+
next unless defined?(ActiveAdmin) && ActiveAdmin.respond_to?(:importmap) && ActiveAdmin.importmap
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
ActiveAdmin.importmap.draw do
|
|
38
|
+
pin "controllers/activeadmin_batched_export/batched_export_controller",
|
|
39
39
|
to: "activeadmin_batched_export/batched_export_controller.js"
|
|
40
|
-
|
|
41
|
-
to: "activeadmin_batched_export/chunk_assembly.
|
|
40
|
+
pin "activeadmin_batched_export/chunk_assembly",
|
|
41
|
+
to: "activeadmin_batched_export/chunk_assembly.js"
|
|
42
42
|
end
|
|
43
|
-
|
|
44
|
-
Rails.application.importmap.draw(&pin_controller)
|
|
45
|
-
ActiveAdmin.importmap.draw(&pin_controller) if defined?(ActiveAdmin)
|
|
46
43
|
end
|
|
47
44
|
|
|
48
45
|
initializer "activeadmin_batched_export.i18n" do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeadmin_batched_export
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrei Makarov
|
|
@@ -326,7 +326,7 @@ files:
|
|
|
326
326
|
- SECURITY.md
|
|
327
327
|
- activeadmin_batched_export.gemspec
|
|
328
328
|
- app/assets/controllers/activeadmin_batched_export/batched_export_controller.js
|
|
329
|
-
- app/assets/javascripts/activeadmin_batched_export/chunk_assembly.
|
|
329
|
+
- app/assets/javascripts/activeadmin_batched_export/chunk_assembly.js
|
|
330
330
|
- app/views/active_admin/batched_export/_actions.html.erb
|
|
331
331
|
- app/views/active_admin/batched_export/_columns.html.erb
|
|
332
332
|
- app/views/active_admin/batched_export/_filters.html.erb
|
/data/app/assets/javascripts/activeadmin_batched_export/{chunk_assembly.mjs → chunk_assembly.js}
RENAMED
|
File without changes
|