public
Description: FriendlyId is the “Swiss Army bulldozer” of slugging and permalink plugins for ActiveRecord. It allows you to create pretty URL’s and work with human-friendly strings as if they were numeric ids for ActiveRecord models.
Homepage: http://rdoc.info/projects/norman/friendly_id
Clone URL: git://github.com/norman/friendly_id.git
friendly_id / Rakefile
100644 32 lines (28 sloc) 1.155 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
31
32
require 'newgem'
require 'hoe'
require 'lib/friendly_id/version'
require 'hoe'
 
Hoe.spec "friendly_id" do
  self.version = FriendlyId::Version::STRING
  self.rubyforge_name = "friendly-id"
  self.author = ['Norman Clarke', 'Adrian Mugnolo', 'Emilio Tagua']
  self.email = ['norman@njclarke.com', 'adrian@mugnolo.com', 'miloops@gmail.com']
  self.summary = "A comprehensive slugging and pretty-URL plugin for ActiveRecord."
  self.description = 'A comprehensive slugging and pretty-URL plugin for ActiveRecord.'
  self.url = 'http://friendly-id.rubyforge.org/'
  self.test_globs = ['test/**/*_test.rb']
  self.extra_deps << ['activerecord', '>= 2.2.3']
  self.extra_deps << ['activesupport', '>= 2.2.3']
  self.extra_dev_deps << ['newgem', ">= #{::Newgem::VERSION}"]
  self.extra_dev_deps << ['sqlite3-ruby']
  self.remote_rdoc_dir = ""
  self.extra_rdoc_files = ["README.rdoc"]
end
 
require 'newgem/tasks'
 
desc 'Publish RDoc to RubyForge.'
task :publish_docs => [:clean, :docs] do
  host = "compay@rubyforge.org"
  remote_dir = "/var/www/gforge-projects/friendly-id"
  local_dir = 'doc'
  sh %{rsync -av --delete #{local_dir}/ #{host}:#{remote_dir}}
end