Sha256: 7c5e06302ee3c8e525c90231978fc8eaa29ff7e70649f125cc74e68609062549

Contents?: true

Size: 1.5 KB

Versions: 9

Compression:

Stored size: 1.5 KB

Contents

require 'newgem'
require 'lib/friendly_id/version'

$hoe = Hoe.new("friendly_id", FriendlyId::Version::STRING) do |p|
  p.rubyforge_name = "friendly-id"
  p.author = ['Norman Clarke', 'Adrian Mugnolo', 'Emilio Tagua']
  p.email = ['norman@rubysouth.com', 'adrian@rubysouth.com', 'miloops@gmail.com']
  p.summary = "A comprehensive slugging and pretty-URL plugin for ActiveRecord."
  p.description = 'A comprehensive slugging and pretty-URL plugin for ActiveRecord.'
  p.url = 'http://friendly-id.rubyforge.org/'
  p.test_globs = ['test/**/*_test.rb']
  p.extra_deps << ['activerecord', '>= 2.0.0']
  p.extra_deps << ['activesupport', '>= 2.0.0']
  p.extra_dev_deps << ['newgem', ">= #{::Newgem::VERSION}"]
  p.extra_dev_deps << ['sqlite3-ruby']
  p.remote_rdoc_dir = ""
end

require 'newgem/tasks'

desc "Run RCov"
task :rcov do
  run_coverage Dir["test/**/*_test.rb"]
end

def run_coverage(files)
  rm_f "coverage"
  rm_f "coverage.data"
  if files.length == 0
    puts "No files were specified for testing"
    return
  end
  files = files.join(" ")
  # if RUBY_PLATFORM =~ /darwin/
  #   exclude = '--exclude "gems/"'
  # else
  #   exclude = '--exclude "rubygems"'
  # end
  rcov = ENV["RCOV"] ? ENV["RCOV"] : "rcov"
  sh "#{rcov} -Ilib:test --sort coverage --text-report #{files}"
end

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

Version data entries

9 entries across 9 versions & 5 rubygems

Version Path
nateabbott-friendly_id-2.1.4 Rakefile
nateabbott-friendly_id-2.1.7 Rakefile
nateabbott-friendly_id-2.1.8 Rakefile
nateabbott-nateabbott-friendly_id-2.1.5 Rakefile
nateabbott-nateabbott-friendly_id-2.1.6 Rakefile
norman-friendly_id-2.1.4 Rakefile
nwp-friendly_id-2.1.3 Rakefile
friendly_id-2.1.5 Rakefile
friendly_id-2.1.4 Rakefile