forest_admin_datasource_customizer 1.25.1 → 1.25.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: f6ea2baca513aea46189f86e09e4fa86cca364554ab3d50d240f4ea045272ef0
4
- data.tar.gz: 790fbd9ea1d4ca5a31c15e51f7ae2a2a28a6bd781e5893ca0572a25684e877eb
3
+ metadata.gz: 175cc54015004403a128771778a417c4ab6402a7680ae3b24cf7c8c2e5b981ab
4
+ data.tar.gz: e7decd6ce36ab8100c263b64fc96e1145198def0111978668b323181d73d3e2a
5
5
  SHA512:
6
- metadata.gz: d81d82aded859368d27a9292253fb068a67a5d59cd358dc161d954345a9b4de92a7a753a90a3a339f6d9a757382d2f5dcbdab5a22fce4349859c05bfa242f77d
7
- data.tar.gz: a9b1d5de417d9fe131a50a42095cf1759172c429fea11c01ade23aa68e12b2e0a66ab7fc3f4efdc0096e028cb76ebcfaba5a6c77100ec8b4bbe586a26f4fae95
6
+ metadata.gz: 280acbe90bea161e95840f0475d53fce602c8b59e035ae079bd67a9617b9971529fe5a3c10398f6d5f97093a44c8756fb7020b3b01e7df9f1be5955ba4ce231d
7
+ data.tar.gz: 024b25633282c38bbd237e266f2dd3941aa0e246a565ab2276656e5c93eaf9273ba484ed3ef0301f2e7208040e956e5a81505022ae83298bbf08228e6c8eabf1
@@ -28,21 +28,21 @@ module ForestAdminDatasourceCustomizer
28
28
 
29
29
  def add_datasource(datasource, options)
30
30
  @stack.queue_customization(lambda {
31
+ ds = datasource
32
+
31
33
  if options[:include] || options[:exclude]
32
- publication_decorator = Decorators::Publication::PublicationDatasourceDecorator.new(datasource)
34
+ publication_decorator = Decorators::Publication::PublicationDatasourceDecorator.new(ds)
33
35
  publication_decorator.keep_collections_matching(options[:include], options[:exclude])
34
- datasource = publication_decorator
36
+ ds = publication_decorator
35
37
  end
36
38
 
37
39
  if options[:rename]
38
- rename_collection_decorator = Decorators::RenameCollection::RenameCollectionDatasourceDecorator.new(
39
- datasource
40
- )
40
+ rename_collection_decorator = Decorators::RenameCollection::RenameCollectionDatasourceDecorator.new(ds)
41
41
  rename_collection_decorator.rename_collections(options[:rename])
42
- datasource = rename_collection_decorator
42
+ ds = rename_collection_decorator
43
43
  end
44
44
 
45
- @composite_datasource.add_data_source(datasource)
45
+ @composite_datasource.add_data_source(ds)
46
46
  })
47
47
 
48
48
  self
@@ -76,8 +76,8 @@ module ForestAdminDatasourceCustomizer
76
76
 
77
77
  begin
78
78
  new_composite = ForestAdminDatasourceCustomizer::CompositeDatasource.new
79
- @stack.reload!(new_composite, logger)
80
79
  @composite_datasource = new_composite
80
+ @stack.reload!(new_composite, logger)
81
81
  rescue StandardError => e
82
82
  @composite_datasource = old_composite
83
83
  raise e
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceCustomizer
2
- VERSION = "1.25.1"
2
+ VERSION = "1.25.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_datasource_customizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.1
4
+ version: 1.25.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2026-03-04 00:00:00.000000000 Z
12
+ date: 2026-03-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport