ts-delayed-delta 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,6 +45,11 @@ There's also a short name for the same task, to save your fingers some effort:
45
45
 
46
46
  <pre><code>rake ts:dd</code></pre>
47
47
 
48
+ h2. Contributors
49
+
50
+ * "Ryan Schlesinger":http://github.com/ryansch (Allowing installs as a plugin)
51
+ * "Maximilian Schulz":http://max.jungeelite.de (Ensuring compatibility with Bundler)
52
+
48
53
  h2. Copyright
49
54
 
50
55
  Copyright (c) 2009 Pat Allan, and released under an MIT Licence.
@@ -1,5 +1,5 @@
1
1
  require 'delayed_job'
2
-
2
+ require 'thinking_sphinx'
3
3
  require 'thinking_sphinx/deltas/delayed_delta/delta_job'
4
4
  require 'thinking_sphinx/deltas/delayed_delta/flag_as_deleted_job'
5
5
  require 'thinking_sphinx/deltas/delayed_delta/job'
@@ -32,7 +32,7 @@ class ThinkingSphinx::Deltas::FlagAsDeletedJob
32
32
  ['sphinx_deleted'],
33
33
  {@document_id => [1]}
34
34
  ) if ThinkingSphinx.sphinx_running? &&
35
- ThinkingSphinx::Search.search_for_id(@document_id, index)
35
+ ThinkingSphinx.search_for_id(@document_id, index)
36
36
  end
37
37
 
38
38
  true
@@ -7,7 +7,7 @@ describe ThinkingSphinx::Deltas::FlagAsDeletedJob do
7
7
  @client = stub('client', :update => true)
8
8
 
9
9
  ThinkingSphinx::Configuration.instance.stub!(:client => @client)
10
- ThinkingSphinx::Search.stub!(:search_for_id => true)
10
+ ThinkingSphinx.stub!(:search_for_id => true)
11
11
  ThinkingSphinx.stub!(:sphinx_running? => true)
12
12
 
13
13
  @job = ThinkingSphinx::Deltas::FlagAsDeletedJob.new(['foo_core'], 12)
@@ -21,7 +21,7 @@ describe ThinkingSphinx::Deltas::FlagAsDeletedJob do
21
21
  end
22
22
 
23
23
  it "should not update if the document isn't in the index" do
24
- ThinkingSphinx::Search.stub!(:search_for_id => false)
24
+ ThinkingSphinx.stub!(:search_for_id => false)
25
25
  @client.should_not_receive(:update)
26
26
 
27
27
  @job.perform
@@ -60,7 +60,7 @@ describe ThinkingSphinx::Deltas::FlagAsDeletedJob do
60
60
  end
61
61
 
62
62
  it "should check for the existence of the document in the specified index" do
63
- ThinkingSphinx::Search.should_receive(:search_for_id) do |id, index|
63
+ ThinkingSphinx.should_receive(:search_for_id) do |id, index|
64
64
  index.should == 'foo_core'
65
65
  end
66
66
 
@@ -68,7 +68,7 @@ describe ThinkingSphinx::Deltas::FlagAsDeletedJob do
68
68
  end
69
69
 
70
70
  it "should check for the existence of the given document id" do
71
- ThinkingSphinx::Search.should_receive(:search_for_id) do |id, index|
71
+ ThinkingSphinx.should_receive(:search_for_id) do |id, index|
72
72
  id.should == 12
73
73
  end
74
74
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ts-delayed-delta
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Allan
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-02 00:00:00 +11:00
12
+ date: 2010-02-27 00:00:00 +11:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency