public
Description: Ambition adapter for Sphinx
Clone URL: git://github.com/technicalpickles/ambitious-sphinx.git
ambitious-sphinx / Rakefile
100644 30 lines (24 sloc) 0.816 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'rake'
 
begin
  require 'rubygems'
  gem 'echoe', '>=2.7'
  ENV['RUBY_FLAGS'] = ""
  require 'echoe'
 
  Echoe.new('ambitious-sphinx') do |p|
    p.dependencies << 'ultrasphinx >=1.7'
    p.summary = 'An ambitious adapter for sphinx'
    p.author = 'Josh Nichols'
    p.email = 'josh@technicalpickles.com'
 
    p.project = 'ambitioussphinx'
    p.url = 'http://ambitioussphinx.rubyforge.org/'
    p.test_pattern = 'test/*_test.rb'
    p.version = '0.1.1'
    p.dependencies << 'ambition >=0.5.2'
  end
 
rescue LoadError
  puts "Not doing any of the Echoe gemmy stuff, because you don't have the specified gem versions"
end
 
desc 'Install as a gem'
task :install_gem do
  puts `rake manifest package && gem install pkg/ambitious-sphinx-#{Version}.gem`
end