Sha256: 9437e4e0c2fa3c917e13ca46d2bea1534dbc173375fcd283a840d51c3e1f7fd4
Contents?: true
Size: 1.66 KB
Versions: 2
Compression:
Stored size: 1.66 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.5" 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 MIT-LICENSE Rakefile README.textile) + Dir.glob("{test,lib/**/*,app/**/*}") 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
paul_revere-0.2.0 | Rakefile |
paul_revere-0.1.5 | Rakefile |