esse-async_indexing 0.1.0.rc3 → 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: 3f54f5e1cef1f47b69ce2c732fd011c0ef35a17cfd1e6caa6767f00dfd8e9409
4
- data.tar.gz: 8b8fe14da90b51311999b7806785f88b87fa976b4608ed0f631ff70ee5755c88
3
+ metadata.gz: e0acc8538424e179148af9456783aeaad83bbf18b135ca0f5da2292587988cc0
4
+ data.tar.gz: cc810a6c0c7d5e6b233b07b6da0c91d4512a57d901d624dcbcc6d0cf2260fa6a
5
5
  SHA512:
6
- metadata.gz: 3059199d52d8ade40c64938a2db4847dc84d86b8de0c8231485b636e78a69132474ae26471b680115606e19377f1a4b43cf2326e97c473a14734e590046837bf
7
- data.tar.gz: 57b84cfd6102b70e34385785d818b1497ae12830db649b4cbe3e2fed00a1bdc5daa27ed4e5516908ed723c9795a12b22a2bbfa9e446a00c21c409365156bd5f9
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.rc3)
13
+ esse-async_indexing (0.1.0.rc4)
14
14
  background_job
15
15
  esse (>= 0.4.0.rc1)
16
16
  multi_json
@@ -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.rc3"
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.rc3
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-09-11 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