require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "jrails"
    gem.summary = "jRails is a drop-in jQuery replacement for the Rails Prototype/script.aculo.us helpers."
    gem.description = "Using jRails, you can get all of the same default Rails helpers for javascript functionality using the lighter jQuery library."
    gem.email = "aaronchi@gmail.com"
    gem.homepage = "http://ennerchi.com/projects/jrails"
    gem.authors = ["Aaron Eisenberger", "Patrick Hurley"]
    gem.rubyforge_project = "jrails"
    gem.files =  FileList["[A-Z]*.rb","{bin,javascripts,lib,rails,tasks}/**/*"]
  end
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end