Permalink
Browse files

add ts back

  • Loading branch information...
1 parent 63cec63 commit 122c828f48b4ead39904b894ad268ba599462422 @actsasflinn committed Sep 5, 2008
Showing with 7,785 additions and 0 deletions.
  1. +7 −0 vendor/plugins/thinking-sphinx/.gitignore
  2. +20 −0 vendor/plugins/thinking-sphinx/LICENCE
  3. +65 −0 vendor/plugins/thinking-sphinx/README
  4. +65 −0 vendor/plugins/thinking-sphinx/README.textile
  5. +72 −0 vendor/plugins/thinking-sphinx/Rakefile
  6. +3 −0 vendor/plugins/thinking-sphinx/init.rb
  7. +26 −0 vendor/plugins/thinking-sphinx/lib/riddle.rb
  8. +639 −0 vendor/plugins/thinking-sphinx/lib/riddle/client.rb
  9. +44 −0 vendor/plugins/thinking-sphinx/lib/riddle/client/filter.rb
  10. +65 −0 vendor/plugins/thinking-sphinx/lib/riddle/client/message.rb
  11. +84 −0 vendor/plugins/thinking-sphinx/lib/riddle/client/response.rb
  12. +46 −0 vendor/plugins/thinking-sphinx/lib/test.rb
  13. +103 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx.rb
  14. +145 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record.rb
  15. +97 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record/delta.rb
  16. +29 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record/has_many_association.rb
  17. +50 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record/search.rb
  18. +144 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/association.rb
  19. +284 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/attribute.rb
  20. +23 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/collection.rb
  21. +289 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/configuration.rb
  22. +206 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/field.rb
  23. +374 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index.rb
  24. +195 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index/builder.rb
  25. +110 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/index/faux_column.rb
  26. +56 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/rails_additions.rb
  27. +487 −0 vendor/plugins/thinking-sphinx/lib/thinking_sphinx/search.rb
  28. +1 −0 vendor/plugins/thinking-sphinx/rails/init.rb
  29. +1,000 −0 vendor/plugins/thinking-sphinx/spec/fixtures/data.sql
  30. +3 −0 vendor/plugins/thinking-sphinx/spec/fixtures/database.yml.default
  31. +57 −0 vendor/plugins/thinking-sphinx/spec/fixtures/models.rb
  32. +59 −0 vendor/plugins/thinking-sphinx/spec/fixtures/structure.sql
  33. +44 −0 vendor/plugins/thinking-sphinx/spec/spec_helper.rb
  34. +109 −0 vendor/plugins/thinking-sphinx/spec/sphinx_helper.rb
  35. +207 −0 vendor/plugins/thinking-sphinx/spec/unit/thinking_sphinx/active_record/delta_spec.rb
  36. +53 −0 vendor/plugins/thinking-sphinx/spec/unit/thinking_sphinx/active_record/has_many_association_spec.rb
  37. +107 −0 vendor/plugins/thinking-sphinx/spec/unit/thinking_sphinx/active_record/search_spec.rb
  38. +236 −0 vendor/plugins/thinking-sphinx/spec/unit/thinking_sphinx/active_record_spec.rb
  39. +247 −0 vendor/plugins/thinking-sphinx/spec/unit/thinking_sphinx/association_spec.rb
  40. +360 −0 vendor/plugins/thinking-sphinx/spec/unit/thinking_sphinx/attribute_spec.rb
  41. +494 −0 vendor/plugins/thinking-sphinx/spec/unit/thinking_sphinx/configuration_spec.rb
  42. +224 −0 vendor/plugins/thinking-sphinx/spec/unit/thinking_sphinx/field_spec.rb
  43. +33 −0 vendor/plugins/thinking-sphinx/spec/unit/thinking_sphinx/index/builder_spec.rb
  44. +68 −0 vendor/plugins/thinking-sphinx/spec/unit/thinking_sphinx/index/faux_column_spec.rb
  45. +285 −0 vendor/plugins/thinking-sphinx/spec/unit/thinking_sphinx/index_spec.rb
  46. +233 −0 vendor/plugins/thinking-sphinx/spec/unit/thinking_sphinx/search_spec.rb
  47. +129 −0 vendor/plugins/thinking-sphinx/spec/unit/thinking_sphinx_spec.rb
  48. +1 −0 vendor/plugins/thinking-sphinx/tasks/thinking_sphinx_tasks.rake
  49. +86 −0 vendor/plugins/thinking-sphinx/tasks/thinking_sphinx_tasks.rb
  50. +21 −0 vendor/plugins/thinking-sphinx/thinking-sphinx.gemspec
@@ -0,0 +1,7 @@
+gem_deploy.rake
+pkg
+coverage
+*.tmproj
+rdoc
+spec/fixtures/database.yml
+tmp
@@ -0,0 +1,20 @@
+Copyright (c) 2008 Pat Allan
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,65 @@
+= Thinking Sphinx
+
+== Usage
+
+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.
+
+Keep in mind that while Thinking Sphinx works for ActiveRecord with Merb, it doesn't yet support DataMapper (although that is planned).
+
+== Contributing
+
+Fork on GitHub and after you've committed tested patches, send a pull request.
+
+To get the spec suite running, you will need to install the not-a-mock gem if you don't already have it:
+
+ git clone git://github.com/freelancing-god/not-a-mock.git
+ cd not-a-mock
+ rake gem
+ gem install pkg/not_a_mock-1.1.0.gem
+
+Then set up your database
+
+ cp spec/fixtures/database.yml.default spec/fixtures/database.yml
+ mysqladmin -u root create thinking_sphinx
+
+You should now have a passing test suite from which to build your patch on.
+
+ rake spec
+
+== Contributors
+
+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:
+
+- Joost Hietbrink
+- Jonathon Conway
+- Gregory Mirzayantz
+- Tung Nguyen
+- Sean Cribbs
+- Benoit Caccinolo
+- John Barton
+- Oliver Beddows
+- Arthur Zapparoli
+- Dusty Doris
+- Marcus Crafter
+- Patrick Lenz
+- Björn Andreasson
+- James Healy
+- Jae-Jun Hwang
+- Xavier Shay
+- Jason Rust
+- Gopal Patel
+- Chris Heald
+- Peter Vandenberk
+- Josh French
+- Andrew Bennett
+- Jordan Fowler
+- Seth Walker
+- Joe Noon
+- Wolfgang Postler
+- Rick Olson
+- Killian Murphy
+- Morten Primdahl
+- Ryan Bates
+- David Eisinger
+- Shay Arnett
+- Minh Tran
@@ -0,0 +1,65 @@
+h1. Thinking Sphinx
+
+h2. Usage
+
+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.
+
+Keep in mind that while Thinking Sphinx works for ActiveRecord with Merb, it doesn't yet support DataMapper (although that is planned).
+
+h2. Contributing
+
+Fork on GitHub and after you've committed tested patches, send a pull request.
+
+To get the spec suite running, you will need to install the not-a-mock gem if you don't already have it:
+
+ git clone git://github.com/freelancing-god/not-a-mock.git
+ cd not-a-mock
+ rake gem
+ gem install pkg/not_a_mock-1.1.0.gem
+
+Then set up your database
+
+ cp spec/fixtures/database.yml.default spec/fixtures/database.yml
+ mysqladmin -u root create thinking_sphinx
+
+You should now have a passing test suite from which to build your patch on.
+
+ rake spec
+
+h2. Contributors
+
+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:
+
+* Joost Hietbrink
+* Jonathon Conway
+* Gregory Mirzayantz
+* Tung Nguyen
+* Sean Cribbs
+* Benoit Caccinolo
+* John Barton
+* Oliver Beddows
+* Arthur Zapparoli
+* Dusty Doris
+* Marcus Crafter
+* Patrick Lenz
+* Björn Andreasson
+* James Healy
+* Jae-Jun Hwang
+* Xavier Shay
+* Jason Rust
+* Gopal Patel
+* Chris Heald
+* Peter Vandenberk
+* Josh French
+* Andrew Bennett
+* Jordan Fowler
+* Seth Walker
+* Joe Noon
+* Wolfgang Postler
+* Rick Olson
+* Killian Murphy
+* Morten Primdahl
+* Ryan Bates
+* David Eisinger
+* Shay Arnett
+* Minh Tran
@@ -0,0 +1,72 @@
+begin
+ require 'spec'
+rescue LoadError
+ require 'rubygems'
+ require 'spec'
+end
+
+require 'rake/rdoctask'
+require 'spec/rake/spectask'
+require 'rake/gempackagetask'
+
+# allow require of spec/spec_helper
+$LOAD_PATH.unshift File.dirname(__FILE__) + '/../'
+$LOAD_PATH.unshift File.dirname(__FILE__) + '/lib'
+
+require 'thinking_sphinx'
+
+desc 'Generate documentation'
+Rake::RDocTask.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'Riddle - Ruby Sphinx Client'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
+desc "Run the specs under spec"
+Spec::Rake::SpecTask.new do |t|
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.spec_opts << "-c"
+end
+
+desc "Generate RCov reports"
+Spec::Rake::SpecTask.new(:rcov) do |t|
+ t.libs << 'lib'
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.rcov = true
+ t.rcov_opts = ['--exclude', 'spec', '--exclude', 'gems', '--exclude', 'riddle']
+end
+
+spec = Gem::Specification.new do |s|
+ s.name = "thinking-sphinx"
+ s.version = ThinkingSphinx::Version::String
+ s.summary = "A concise and easy-to-use Ruby library that connects ActiveRecord to the Sphinx search daemon, managing configuration, indexing and searching."
+ s.description = "A concise and easy-to-use Ruby library that connects ActiveRecord to the Sphinx search daemon, managing configuration, indexing and searching."
+ s.author = "Pat Allan"
+ s.email = "pat@freelancing-gods.com"
+ s.homepage = "http://ts.freelancing-gods.com"
+ s.has_rdoc = true
+ s.rdoc_options << "--title" << "Thinking Sphinx -- Rails/Merb Sphinx Plugin" <<
+ "--line-numbers"
+ s.rubyforge_project = "thinking-sphinx"
+ s.test_files = FileList["spec/**/*_spec.rb"]
+ s.files = FileList[
+ "lib/**/*.rb",
+ "LICENCE",
+ "README",
+ "tasks/**/*.rb",
+ "tasks/**/*.rake"
+ ]
+end
+
+Rake::GemPackageTask.new(spec) do |p|
+ p.gem_spec = spec
+ p.need_tar = true
+ p.need_zip = true
+end
+
+desc "Build gemspec file"
+task :build do
+ File.open('thinking-sphinx.gemspec', 'w') { |f| f.write spec.to_ruby }
+end
@@ -0,0 +1,3 @@
+require 'thinking_sphinx'
+
+ThinkingSphinx::Configuration.new.load_models
@@ -0,0 +1,26 @@
+require 'socket'
+require 'timeout'
+require 'riddle/client'
+require 'riddle/client/filter'
+require 'riddle/client/message'
+require 'riddle/client/response'
+
+module Riddle #:nodoc:
+ class ConnectionError < StandardError #:nodoc:
+ end
+
+ module Version #:nodoc:
+ Major = 0
+ Minor = 9
+ Tiny = 8
+ # Revision number for RubyForge's sake, taken from what Sphinx
+ # outputs to the command line.
+ Rev = 1371
+ # Release number to mark my own fixes, beyond feature parity with
+ # Sphinx itself.
+ Release = 0
+
+ String = [Major, Minor, Tiny].join('.')
+ GemVersion = [Major, Minor, Tiny, Rev, Release].join('.')
+ end
+end
Oops, something went wrong.

0 comments on commit 122c828

Please sign in to comment.