ts-delayed-delta 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,12 @@ class ThinkingSphinx::Deltas::DeltaJob
11
11
  @indexes = indexes
12
12
  end
13
13
 
14
+ # Shows index name in Delayed::Job#name.
15
+ #
16
+ def display_name
17
+ "#{self.class.name} for #{indexes.join(', ')}"
18
+ end
19
+
14
20
  # Runs Sphinx's indexer tool to process the index. Currently assumes Sphinx is
15
21
  # running.
16
22
  #
@@ -43,4 +43,11 @@ describe ThinkingSphinx::Deltas::DeltaJob do
43
43
  end
44
44
  end
45
45
  end
46
+
47
+ describe "#display_name" do
48
+ it "should display class name with all indexes" do
49
+ @delta_job = ThinkingSphinx::Deltas::DeltaJob.new(['foo_core', 'bar_core'])
50
+ @delta_job.display_name.should == "ThinkingSphinx::Deltas::DeltaJob for foo_core, bar_core"
51
+ end
52
+ end
46
53
  end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ts-delayed-delta
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 4
9
+ version: 1.0.4
5
10
  platform: ruby
6
11
  authors:
7
12
  - Pat Allan
@@ -9,59 +14,75 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-27 00:00:00 +11:00
17
+ date: 2010-03-12 00:00:00 +11:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: thinking-sphinx
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 3
30
+ - 6
23
31
  version: 1.3.6
24
- version:
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  - !ruby/object:Gem::Dependency
26
35
  name: delayed_job
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
30
38
  requirements:
31
39
  - - ">="
32
40
  - !ruby/object:Gem::Version
41
+ segments:
42
+ - 1
43
+ - 8
44
+ - 4
33
45
  version: 1.8.4
34
- version:
46
+ type: :runtime
47
+ version_requirements: *id002
35
48
  - !ruby/object:Gem::Dependency
36
49
  name: rspec
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
40
52
  requirements:
41
53
  - - ">="
42
54
  - !ruby/object:Gem::Version
55
+ segments:
56
+ - 1
57
+ - 2
58
+ - 9
43
59
  version: 1.2.9
44
- version:
60
+ type: :development
61
+ version_requirements: *id003
45
62
  - !ruby/object:Gem::Dependency
46
63
  name: yard
47
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
50
66
  requirements:
51
67
  - - ">="
52
68
  - !ruby/object:Gem::Version
69
+ segments:
70
+ - 0
53
71
  version: "0"
54
- version:
72
+ type: :development
73
+ version_requirements: *id004
55
74
  - !ruby/object:Gem::Dependency
56
75
  name: cucumber
57
- type: :development
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
76
+ prerelease: false
77
+ requirement: &id005 !ruby/object:Gem::Requirement
60
78
  requirements:
61
79
  - - ">="
62
80
  - !ruby/object:Gem::Version
81
+ segments:
82
+ - 0
63
83
  version: "0"
64
- version:
84
+ type: :development
85
+ version_requirements: *id005
65
86
  description: Manage delta indexes via Delayed Job for Thinking Sphinx
66
87
  email: pat@freelancing-gods.com
67
88
  executables: []
@@ -92,18 +113,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
113
  requirements:
93
114
  - - ">="
94
115
  - !ruby/object:Gem::Version
116
+ segments:
117
+ - 0
95
118
  version: "0"
96
- version:
97
119
  required_rubygems_version: !ruby/object:Gem::Requirement
98
120
  requirements:
99
121
  - - ">="
100
122
  - !ruby/object:Gem::Version
123
+ segments:
124
+ - 0
101
125
  version: "0"
102
- version:
103
126
  requirements: []
104
127
 
105
128
  rubyforge_project:
106
- rubygems_version: 1.3.5
129
+ rubygems_version: 1.3.6
107
130
  signing_key:
108
131
  specification_version: 3
109
132
  summary: Thinking Sphinx - Delayed Deltas