Permalink
Browse files

ts to git

  • Loading branch information...
0 parents commit 12e5e3c09b8c782f35c66f619918a7192ab32dfe @pat pat committed Apr 14, 2008
Showing with 2,827 additions and 0 deletions.
  1. +20 −0 LICENCE
  2. +9 −0 README
  3. +10 −0 Rakefile
  4. +1 −0 init.rb
  5. +22 −0 lib/riddle.rb
  6. +593 −0 lib/riddle/client.rb
  7. +44 −0 lib/riddle/client/filter.rb
  8. +65 −0 lib/riddle/client/message.rb
  9. +84 −0 lib/riddle/client/response.rb
  10. +46 −0 lib/test.rb
  11. +37 −0 lib/thinking_sphinx.rb
  12. +105 −0 lib/thinking_sphinx/active_record.rb
  13. +79 −0 lib/thinking_sphinx/active_record/delta.rb
  14. +36 −0 lib/thinking_sphinx/active_record/search.rb
  15. +140 −0 lib/thinking_sphinx/association.rb
  16. +207 −0 lib/thinking_sphinx/attribute.rb
  17. +221 −0 lib/thinking_sphinx/configuration.rb
  18. +143 −0 lib/thinking_sphinx/field.rb
  19. +216 −0 lib/thinking_sphinx/index.rb
  20. +185 −0 lib/thinking_sphinx/index/builder.rb
  21. +97 −0 lib/thinking_sphinx/index/faux_column.rb
  22. +335 −0 lib/thinking_sphinx/search.rb
  23. +5 −0 spec/spec_helper.rb
  24. 0 spec/unit/thinking_sphinx/active_record/delta_spec.rb
  25. 0 spec/unit/thinking_sphinx/active_record/search_spec.rb
  26. 0 spec/unit/thinking_sphinx/active_record_spec.rb
  27. 0 spec/unit/thinking_sphinx/association_spec.rb
  28. 0 spec/unit/thinking_sphinx/attribute_spec.rb
  29. 0 spec/unit/thinking_sphinx/configuration_spec.rb
  30. 0 spec/unit/thinking_sphinx/field_spec.rb
  31. 0 spec/unit/thinking_sphinx/index/builder_spec.rb
  32. +41 −0 spec/unit/thinking_sphinx/index/faux_column_spec.rb
  33. 0 spec/unit/thinking_sphinx/index_spec.rb
  34. 0 spec/unit/thinking_sphinx/search_spec.rb
  35. +5 −0 spec/unit/thinking_sphinx_spec.rb
  36. +81 −0 tasks/thinking_sphinx_tasks.rake
@@ -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,9 @@
+= 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.
+
+== Contributors
+
+Since I first released this library, there's been several people who have submitted patches, to my immense gratitude. Others have suggested syntax changes and general improvements. So my thanks to the following people in particular: Joost Hietbrink, Sean Cribbs, Jonathon Conway, Gregory Mirzayantz and John Barton.
@@ -0,0 +1,10 @@
+require 'rake/rdoctask'
+
+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
@@ -0,0 +1 @@
+require 'thinking_sphinx'
@@ -0,0 +1,22 @@
+require 'socket'
+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 = 1198
+
+ String = [Major, Minor, Tiny].join('.') + "rc1"
+ GemVersion = [Major, Minor, Tiny, Rev].join('.')
+ end
+end
Oops, something went wrong.

0 comments on commit 12e5e3c

Please sign in to comment.