hyrax-v2_graph_indexer 0.3.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b29d8f4127a52c91b6eb279e32c632de7cf29059dbacb5c923db096e176e9719
4
- data.tar.gz: 4f99ea6cf137cfcb9609e5e2ffdc4b5b36c6b2c8f3d1167410f5ae42064b6796
3
+ metadata.gz: cca457bd629bcba3bce0111385c8d9d190ae30cb0838752121fd788317f296f5
4
+ data.tar.gz: 316a4a4b1e316a1b162e51d6eb5eedd66b26bed7c1bec38cd7bfe55daf8cd1b7
5
5
  SHA512:
6
- metadata.gz: 5f212a553aec8a0130097394ff215cf1d2c3bfac5e610bde18f432e3e43e6d5a2d17625ec34e92944f7d2ca56664c333af55a37e7a5cff9936b176de21b5f3e1
7
- data.tar.gz: e3de271d759e1dfbbdc732d5c8c806c27ffd67b1661066f0a809ec9900980050083120964262b02f46973e341d41a307d3e3037c998eeaad849cc4be515d984c
6
+ metadata.gz: 01e2392eec1553c79defa57468eef098736479b6259501d5ecc857a5eb007dd0843004d8a30f1b4f936ee144578076976af996a55ea682850a843c698d2a34c0
7
+ data.tar.gz: 33ec04a10ef80b64decb773f5e2c2caabed39121abbf218946f4e7360c62fe68a0ab21a761d5c2817531f7a7c9f04e40f9b35c935436a9f6eb3743e4b013d85d
data/README.md CHANGED
@@ -26,6 +26,18 @@ Or install it yourself as:
26
26
  $ gem install hyrax-v2_graph_indexer
27
27
  ```
28
28
 
29
+ ### Prior to v0.5.0
30
+
31
+ For this to work, you'll need to add the following to your application's `./config/initializers/hyrax.rb`:
32
+
33
+ ```ruby
34
+ Hyrax.config do |config|
35
+ config.nested_relationship_reindexer = ->(id:, extent:) {}
36
+ end
37
+ ```
38
+
39
+ With the upcoming v0.5.0, the above will be automatically added via the [Hyrax::V2GraphIndexer::Railtie](./lib/hyrax/v2_graph_indexer/railtie.rb).
40
+
29
41
  ## Contributing
30
42
 
31
43
  ## Discussion
@@ -2,7 +2,7 @@ module Hyrax
2
2
  module V2GraphIndexer
3
3
  class Railtie < ::Rails::Railtie
4
4
 
5
- config.to_prepare do
5
+ config.after_initialize do
6
6
  Hyrax::Collections::NestedCollectionPersistenceService.singleton_class.prepend(
7
7
  Hyrax::V2GraphIndexer::NestedCollectionPersistenceServiceDecorator::ClassMethods
8
8
  )
@@ -25,6 +25,10 @@ module Hyrax
25
25
  Hyrax::Dashboard::NestedCollectionsSearchBuilder.prepend(
26
26
  Hyrax::V2GraphIndexer::NestedCollectionsSearchBuilderDecorator
27
27
  )
28
+
29
+ Hyrax.config do |c|
30
+ c.nested_relationship_reindexer = ->(id:, extent:) {}
31
+ end
28
32
  end
29
33
  end
30
34
  end
@@ -1,5 +1,5 @@
1
1
  module Hyrax
2
2
  module V2GraphIndexer
3
- VERSION = "0.3.0"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyrax-v2_graph_indexer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Friesen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-14 00:00:00.000000000 Z
11
+ date: 2023-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hyrax
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.1.4
79
+ rubygems_version: 3.1.6
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: A quasi-backport of the Hyrax 3+ Graph Indexing.