require “lib/friendly_id/version”

spec = Gem::Specification.new do |s|

s.name              = "friendly_id"
s.rubyforge_project = "friendly-id"
s.version           = FriendlyId::Version::STRING
s.authors           = ["Norman Clarke", "Adrian Mugnolo", "Emilio Tagua"]
s.email             = ["norman@njclarke.com", "adrian@mugnolo.com", "miloops@gmail.com"]
s.homepage          = "http://norman.github.com/friendly_id"
s.summary           = "A comprehensive slugging and pretty-URL plugin."
s.description       = <<-EOM
  FriendlyId is the "Swiss Army bulldozer" of slugging and permalink plugins
  for Ruby on Rails. It allows you to create pretty URL’s and work with
  human-friendly strings as if they were numeric ids for ActiveRecord models.
EOM

s.has_rdoc         = true
s.test_files       = Dir.glob "test     _test.rb"
s.files            = Dir["lib/   *.rb", "lib/   *.rake", "*.md", "LICENSE",
  "Rakefile", "rails/init.rb", "generators/**/*.*", "test/**/*.*",
  "extras/**/*.*" ]

s.add_dependency "activerecord", ">= 2.2"
s.add_dependency "activesupport", ">= 2.2"

s.post_install_message = <<-EOM

    *********************************************************

    If you are upgrading friendly_id, please run

        ./script/generate friendly_id --skip-migration

    in your Rails application to ensure that you have the
    latest friendly_id Rake tasks.

    *********************************************************

EOM

end