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: 2b81256c6a34b46adfa251839b317d363ac60955030ca434a32299e8e28791c8
4
- data.tar.gz: c8502304737f470ed109e8101697d9f9ac5542ef4f808812671af31a50d2033a
3
+ metadata.gz: e93f12265a281843049efbf5266abaa1a097f9d49b642734cf9457c93ce6dd86
4
+ data.tar.gz: 9fd765cfb434f66e14ee4a3bcdc76726b0fe45409b0fec04904b435b5949395f
5
5
  SHA512:
6
- metadata.gz: 3cdecaff8ebf1c203dc1baed780d7c4d68ded31b9cd5f9902637095a117b5e594376ab7bc3d05c2c48cec6710a064f51f43b092e849877eca4466b0f94697293
7
- data.tar.gz: 74ccfd4f2259ee4291efd788fc4bc62f1a81c20ae3b6e41ccc124f958bbfec56047af393be055f7055958662d818790fb555dbb3509c49be20ef2bd2525e5e7f
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 both the host and ActiveAdmin importmaps. Include the gem `app/assets/controllers` and `app/assets/javascripts` paths in your ActiveAdmin importmap cache sweeper when developing locally.
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: :load_config_initializers do
35
- next unless Rails.application.respond_to?(:importmap) && Rails.application.importmap
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
- pin_controller = proc do |importmap|
38
- importmap.pin "controllers/activeadmin_batched_export/batched_export_controller",
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
- importmap.pin "activeadmin_batched_export/chunk_assembly",
41
- to: "activeadmin_batched_export/chunk_assembly.mjs"
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveAdmin
4
4
  module BatchedExport
5
- VERSION = "0.3.1"
5
+ VERSION = "0.3.2"
6
6
  end
7
7
  end
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.1
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.mjs
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