freelancing-god-thinking-sphinx 1.1.9 → 1.1.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,12 @@
1
- = Thinking Sphinx
1
+ h1. Thinking Sphinx
2
2
 
3
- == Usage
3
+ h2. Usage
4
4
 
5
- First, if you haven't done so already, check out the main usage[http://ts.freelancing-gods.com/usage.html] page. Once you've done that, the next place to look for information is the specific method docs - ThinkingSphinx::Search and ThinkingSphinx::Index::Builder in particular.
5
+ First, if you haven't done so already, check out the main "usage":http://ts.freelancing-gods.com/usage.html page. Once you've done that, the next place to look for information is the specific method docs - ThinkingSphinx::Search and ThinkingSphinx::Index::Builder in particular.
6
6
 
7
7
  Keep in mind that while Thinking Sphinx works for ActiveRecord with Merb, it doesn't yet support DataMapper (although that is planned).
8
8
 
9
- == Contributing
9
+ h2. Contributing
10
10
 
11
11
  Fork on GitHub and after you've committed tested patches, send a pull request.
12
12
 
@@ -26,104 +26,99 @@ Then install the ginger gem. The steps are the same, except that you might need
26
26
  rake gem
27
27
  sudo gem install pkg/ginger-1.1.0.gem
28
28
 
29
- Then install the faker gem:
30
-
31
- sudo gem install faker
32
-
33
29
  Then set up your database:
34
30
 
35
31
  cp spec/fixtures/database.yml.default spec/fixtures/database.yml
36
- cp spec/fixtures/database.yml.default features/support/db/database.yml
37
32
  mysqladmin -u root create thinking_sphinx
38
-
33
+
39
34
  Make sure you don't have another Sphinx daemon (searchd) running. If you do, quit it with "rake ts:stop"
40
35
  in the app root.
41
36
 
42
37
  You should now have a passing test suite from which to build your patch on.
43
38
 
44
39
  rake spec
45
- rake features (Note: You will need MySQL and Postgres gems to run the full suite. You may want to tweak your rakefile)
46
-
40
+
47
41
  If you get the message "Failed to start searchd daemon", run the spec with sudo:
48
42
 
49
43
  sudo rake spec
50
- sudo rake features
51
-
44
+
52
45
  If you quit the spec suite before it's completed, you may be left with data in the test
53
46
  database, causing the next run to have failures. Let that run complete and then try again.
54
47
 
55
- == Contributors
48
+ h2. Contributors
56
49
 
57
50
  Since I first released this library, there's been quite a few people who have submitted patches, to my immense gratitude. Others have suggested syntax changes and general improvements. So my thanks to the following people:
58
51
 
59
- - Joost Hietbrink
60
- - Jonathan Conway
61
- - Gregory Mirzayantz
62
- - Tung Nguyen
63
- - Sean Cribbs
64
- - Benoit Caccinolo
65
- - John Barton
66
- - Oliver Beddows
67
- - Arthur Zapparoli
68
- - Dusty Doris
69
- - Marcus Crafter
70
- - Patrick Lenz
71
- - Björn Andreasson
72
- - James Healy
73
- - Jae-Jun Hwang
74
- - Xavier Shay
75
- - Jason Rust
76
- - Gopal Patel
77
- - Chris Heald
78
- - Peter Vandenberk
79
- - Josh French
80
- - Andrew Bennett
81
- - Jordan Fowler
82
- - Seth Walker
83
- - Joe Noon
84
- - Wolfgang Postler
85
- - Rick Olson
86
- - Killian Murphy
87
- - Morten Primdahl
88
- - Ryan Bates
89
- - David Eisinger
90
- - Shay Arnett
91
- - Minh Tran
92
- - Jeremy Durham
93
- - Piotr Sarnacki
94
- - Matt Johnson
95
- - Nicolas Blanco
96
- - Max Lapshin
97
- - Josh Natanson
98
- - Philip Hallstrom
99
- - Christian Rishøj
100
- - Mike Flester
101
- - Jim Remsik
102
- - Kennon Ballou
103
- - Henrik Nyh
104
- - Emil Tin
105
- - Doug Cole
106
- - Ed Hickey
107
- - Evan Weaver
108
- - Thibaut Barrere
109
- - Kristopher Chambers
110
- - Dmitrij Smalko
111
- - Aleksey Yeschenko
112
- - Lachie Cox
113
- - Lourens Naude
114
- - Tom Davies
115
- - Dan Pickett
116
- - Alex Caudill
117
- - Jim Benton
118
- - John Aughey
119
- - Keith Pitty
120
- - Jeff Talbot
121
- - Dana Contreras
122
- - Menno van der Sman
123
- - Bill Harding
124
- - Isaac Feliu
125
- - Andrei Bocan
126
- - László Bácsi
127
- - Peter Wagenet
128
- - Max Lapshin
129
- - Martin Emde
52
+ * Joost Hietbrink
53
+ * Jonathan Conway
54
+ * Gregory Mirzayantz
55
+ * Tung Nguyen
56
+ * Sean Cribbs
57
+ * Benoit Caccinolo
58
+ * John Barton
59
+ * Oliver Beddows
60
+ * Arthur Zapparoli
61
+ * Dusty Doris
62
+ * Marcus Crafter
63
+ * Patrick Lenz
64
+ * Björn Andreasson
65
+ * James Healy
66
+ * Jae-Jun Hwang
67
+ * Xavier Shay
68
+ * Jason Rust
69
+ * Gopal Patel
70
+ * Chris Heald
71
+ * Peter Vandenberk
72
+ * Josh French
73
+ * Andrew Bennett
74
+ * Jordan Fowler
75
+ * Seth Walker
76
+ * Joe Noon
77
+ * Wolfgang Postler
78
+ * Rick Olson
79
+ * Killian Murphy
80
+ * Morten Primdahl
81
+ * Ryan Bates
82
+ * David Eisinger
83
+ * Shay Arnett
84
+ * Minh Tran
85
+ * Jeremy Durham
86
+ * Piotr Sarnacki
87
+ * Matt Johnson
88
+ * Nicolas Blanco
89
+ * Max Lapshin
90
+ * Josh Natanson
91
+ * Philip Hallstrom
92
+ * Christian Rishøj
93
+ * Mike Flester
94
+ * Jim Remsik
95
+ * Kennon Ballou
96
+ * Henrik Nyh
97
+ * Emil Tin
98
+ * Doug Cole
99
+ * Ed Hickey
100
+ * Evan Weaver
101
+ * Thibaut Barrere
102
+ * Kristopher Chambers
103
+ * Dmitrij Smalko
104
+ * Aleksey Yeschenko
105
+ * Lachie Cox
106
+ * Lourens Naude
107
+ * Tom Davies
108
+ * Dan Pickett
109
+ * Alex Caudill
110
+ * Jim Benton
111
+ * John Aughey
112
+ * Keith Pitty
113
+ * Jeff Talbot
114
+ * Dana Contreras
115
+ * Menno van der Sman
116
+ * Bill Harding
117
+ * Isaac Feliu
118
+ * Andrei Bocan
119
+ * László Bácsi
120
+ * Peter Wagenet
121
+ * Max Lapshin
122
+ * Martin Emde
123
+ * David Wennergren
124
+ * Mark Lane
@@ -36,7 +36,7 @@ module ThinkingSphinx
36
36
  module Version #:nodoc:
37
37
  Major = 1
38
38
  Minor = 1
39
- Tiny = 9
39
+ Tiny = 10
40
40
 
41
41
  String = [Major, Minor, Tiny].join('.')
42
42
  end
@@ -39,7 +39,8 @@ module ThinkingSphinx
39
39
 
40
40
  def reset_query(model)
41
41
  "UPDATE #{model.quoted_table_name} SET " +
42
- "#{@index.quote_column(@column.to_s)} = #{adapter.boolean(false)}"
42
+ "#{@index.quote_column(@column.to_s)} = #{adapter.boolean(false)} " +
43
+ "WHERE #{@index.quote_column(@column.to_s)} = #{adapter.boolean(true)}"
43
44
  end
44
45
 
45
46
  def clause(model, toggled)
@@ -37,6 +37,8 @@ module ThinkingSphinx
37
37
  @delta_object = nil
38
38
 
39
39
  initialize_from_builder(&block) if block_given?
40
+
41
+ add_internal_attributes_and_facets
40
42
  end
41
43
 
42
44
  def name
@@ -48,7 +50,6 @@ module ThinkingSphinx
48
50
  end
49
51
 
50
52
  def to_riddle_for_core(offset, index)
51
- add_internal_attributes_and_facets
52
53
  link!
53
54
 
54
55
  source = Riddle::Configuration::SQLSource.new(
@@ -64,7 +65,6 @@ module ThinkingSphinx
64
65
  end
65
66
 
66
67
  def to_riddle_for_delta(offset, index)
67
- add_internal_attributes_and_facets
68
68
  link!
69
69
 
70
70
  source = Riddle::Configuration::SQLSource.new(
@@ -29,7 +29,7 @@ spec = Gem::Specification.new do |s|
29
29
  s.files = FileList[
30
30
  "lib/**/*.rb",
31
31
  "LICENCE",
32
- "README",
32
+ "README.textile",
33
33
  "tasks/**/*.rb",
34
34
  "tasks/**/*.rake",
35
35
  "vendor/**/*"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freelancing-god-thinking-sphinx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.1.10
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-05-07 00:00:00 -07:00
12
+ date: 2009-05-09 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -56,7 +56,7 @@ files:
56
56
  - lib/thinking_sphinx/tasks.rb
57
57
  - lib/thinking_sphinx.rb
58
58
  - LICENCE
59
- - README
59
+ - README.textile
60
60
  - tasks/distribution.rb
61
61
  - tasks/testing.rb
62
62
  - tasks/rails.rake