esse-async_indexing 0.1.0.rc2 → 0.1.0.rc4

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: 4126b3227cf9496930c3bf16dcc98b3e29df70582acbd2793f7521ef7b36bb91
4
- data.tar.gz: b4d59d3c2cb659bee4390a7317b2a849af4026746f8afb10757b284e64afbafb
3
+ metadata.gz: e0acc8538424e179148af9456783aeaad83bbf18b135ca0f5da2292587988cc0
4
+ data.tar.gz: cc810a6c0c7d5e6b233b07b6da0c91d4512a57d901d624dcbcc6d0cf2260fa6a
5
5
  SHA512:
6
- metadata.gz: e06a9c54ec5ab021cf43d1a0d8e82f19dff47aa69ff8fe3f577c043b386be6ae6e14bd73e571c86ae9b219071c388df5c0e972ba35e40c7640a57111eb2081f6
7
- data.tar.gz: ae5cc98e69c55fe73322dc8c401af0bd65df91ffcc3205d09e325cacf48b8f6824d7bf0318a53ec54f16407347cdce63eeefd0a31d72620a1127b7be954ccf51
6
+ metadata.gz: 56a6248e873801a41510118e4e6eecb3776173f6caea1f539e8412589679166712429d08d2a1ae1603566854221bb42bbac87b8b71d92991bef38108dea4aa0d
7
+ data.tar.gz: 5fc5743fdd845f0e766deef18f79132f6000338534045010028fe772b6087e19dd5a15fd5f90f1440dd08510afb613ecbd3fba91c64bc792a020da8c5726d1a6
data/Gemfile.lock CHANGED
@@ -10,7 +10,7 @@ GIT
10
10
  PATH
11
11
  remote: .
12
12
  specs:
13
- esse-async_indexing (0.1.0.rc2)
13
+ esse-async_indexing (0.1.0.rc4)
14
14
  background_job
15
15
  esse (>= 0.4.0.rc1)
16
16
  multi_json
@@ -11,6 +11,8 @@ module Esse::AsyncIndexing::Actions
11
11
 
12
12
  index_class.delete(id: document_id, **bulk_opts)
13
13
  :deleted
14
+ rescue Esse::Transport::NotFoundError
15
+ :not_found
14
16
  end
15
17
  end
16
18
  end
@@ -64,6 +64,12 @@ module Esse
64
64
  end
65
65
  alias_method :[], :fetch
66
66
 
67
+ def dup
68
+ new_task = self.class.new
69
+ new_task.instance_variable_set(:@tasks, @tasks.dup)
70
+ new_task
71
+ end
72
+
67
73
  private
68
74
 
69
75
  def validate!(names, block)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Esse
4
4
  module AsyncIndexing
5
- VERSION = "0.1.0.rc2"
5
+ VERSION = "0.1.0.rc4"
6
6
  end
7
7
  end
@@ -45,7 +45,7 @@ module Esse
45
45
  # MyCustomJob.perform_later(repo.index.name, [id], **kwargs)
46
46
  # end
47
47
  def async_indexing_job(*operations, &block)
48
- definer = @async_indexing_tasks || Esse::AsyncIndexing::Tasks.new
48
+ definer = @async_indexing_tasks || Esse.config.async_indexing.tasks.dup
49
49
  definer.define(*operations, &block)
50
50
  @async_indexing_tasks = definer
51
51
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esse-async_indexing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.rc2
4
+ version: 0.1.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos G. Zimmermann
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-28 00:00:00.000000000 Z
11
+ date: 2024-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: esse