sunspot-parallel-reindex 0.0.5 → 0.0.6

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
  SHA1:
3
- metadata.gz: bd5ecf1604b90eb1e0fba87ad232d3b8bd3c0195
4
- data.tar.gz: 9c7159ff823e8b4d681ef89cf12464d945541b74
3
+ metadata.gz: 9ca11a19b67c9e17331e396b71be02fbe79f2854
4
+ data.tar.gz: d68a5101623f92647a0cbb010ac7d18db550058e
5
5
  SHA512:
6
- metadata.gz: 7172122dcc44b89d676aa9614fb50306ea0c65875ca246e0574e5a6733c3b84999305ec8ec3ec2e71c3878a7409f256ea08909ef0adefb79b1bed2e1002fadcf
7
- data.tar.gz: 0b6d07feb7bf9c91a8bb8a57e8c77785661028d8fe3947156cb360773adf6eb2d0cc2547633e86a4c6efdb296e5550749042bda37ac62fe6716b32c1d17e9d91
6
+ metadata.gz: 38c6e9cf1ce6c1e9d429055801739e65744f4fbe8f6dab5a1ef2546fa7f80d5d54ad27d92e47198b1ddc8149628ccc01dbd99ce533056cdf0424c18c81b07b2b
7
+ data.tar.gz: b5ccddfdb13ebcf2703e96c69793f137a2068163127dd9e2436c47a79f8cab1c2b0db4e6a709ad0558160865db7575e732ff08be8d6085b8f2f022af32b4fce6
@@ -1,7 +1,8 @@
1
1
  namespace :sunspot do
2
+ ARGNAMES = [:batch_size, :models, :exec_processor_size]
2
3
  namespace :reindex do
3
4
  desc "Reindex models in parallel"
4
- task :parallel, [:batch_size, :models, :exec_processor_size] => :environment do |t, args|
5
+ task :parallel, ARGNAMES => :environment do |t, args|
5
6
  with_session(Sunspot::SessionProxy::Retry5xxSessionProxy.new(Sunspot.session)) do
6
7
  reindex_options = { :batch_commit => false,
7
8
  :exec_processor_size => Parallel.processor_count,
@@ -65,6 +66,8 @@ namespace :sunspot do
65
66
  end
66
67
  end
67
68
  namespace :parallel do
68
- task :reindex => Rake::Task['sunspot:reindex:parallel']
69
+ task :reindex, ARGNAMES do |_, args|
70
+ Rake::Task['sunspot:reindex:parallel'].invoke(*args)
71
+ end
69
72
  end
70
73
  end
@@ -1,7 +1,7 @@
1
1
  module Sunspot
2
2
  module Parallel
3
3
  module Reindex
4
- VERSION = "0.0.5"
4
+ VERSION = "0.0.6"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunspot-parallel-reindex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Tucker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-16 00:00:00.000000000 Z
11
+ date: 2015-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler