index-tanked 0.2.0 → 0.2.1

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.
@@ -14,6 +14,7 @@ module IndexTanked
14
14
 
15
15
  trap('TERM') { log 'Exiting...'; $exit = true }
16
16
  trap('INT') { log 'Exiting...'; $exit = true }
17
+ trap('QUIT') { log 'Exiting...'; $exit = true }
17
18
 
18
19
  loop do
19
20
  count = process_documents(@batch_size)
@@ -21,7 +22,7 @@ module IndexTanked
21
22
  break if $exit
22
23
 
23
24
  if count.zero?
24
- sleep(SLEEP)
25
+ (SLEEP * 2).times{ sleep(0.5) unless $exit }
25
26
  end
26
27
 
27
28
  break if $exit
@@ -1,3 +1,3 @@
1
1
  module IndexTanked
2
- GEM_VERSION = '0.2.0'
2
+ GEM_VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: index-tanked
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Kittelson
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-05-27 00:00:00 -05:00
19
+ date: 2011-06-01 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency