Skip to content

Instantly share code, notes, and snippets.

@pat
Forked from tobstarr/Rakefile
Created November 18, 2009 13:08
Show Gist options
  • Save pat/237828 to your computer and use it in GitHub Desktop.
Save pat/237828 to your computer and use it in GitHub Desktop.
# Since rubygems should have been required already, we can determine from the
# Gem object what is and isn't available.
if Gem.available?('thinking-sphinx')
require 'thinking_sphinx/0.9.8'
require 'thinking_sphinx/tasks'
require 'thinking_sphinx/deltas/datetime_delta/tasks'
else
puts 'gem thinking-sphinx required for all rake tasks'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment