Sha256: c2699c4da0bccc18390351c83fcdeceae5987e7a0081155f14f3ef37fdd79997

Contents?: true

Size: 1.65 KB

Versions: 1

Compression:

Stored size: 1.65 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require "rake/gempackagetask"

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the paul revere plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

desc 'Generate documentation for the paul revere plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'PaulRevere'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

spec = Gem::Specification.new do |s|
  s.name              = "paul_revere"
  s.version           = "0.1.0"
  s.summary           = "Simple announcement plugin to include 'one off' style announcements in Rails web apps."
  s.author            = "Thoughtbot"
  s.email             = "support@thoughtbot.com"
  s.homepage          = "http://thoughtbot.com/community"

  s.has_rdoc          = true
  s.extra_rdoc_files  = %w(README.textile)
  s.rdoc_options      = %w(--main README.textile)

  s.files             = %w(init.rb install.rb MIT-LICENSE Rakefile README.textile uninstall.rb) + Dir.glob("{test,lib/**/*}")
  s.require_paths     = ["lib"]

  s.add_dependency("rails", "~> 3.0.0")
  s.add_development_dependency("bourne")
  s.add_development_dependency("shoulda")
  s.add_development_dependency("redgreen")
end

Rake::GemPackageTask.new(spec) do |pkg|
  pkg.gem_spec = spec
end

desc "Build the gemspec file #{spec.name}.gemspec"
task :gemspec do
  file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
  File.open(file, "w") {|f| f << spec.to_ruby }
end

task :package => :gemspec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paul_revere-0.1.0 Rakefile