# encoding: UTF-8 require 'rake' require 'rake/rdoctask' require 'rake/gempackagetask' require 'rake/testtask' require File.join(File.dirname(__FILE__), 'lib', 'notifiable', 'version') Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.libs << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = false end task :default => :test Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'Notifiable' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') end spec = Gem::Specification.new do |s| s.name = "notifiable" s.summary = "Insert Notifiable summary." s.description = "Insert Notifiable description." s.files = FileList["[A-Z]*", "{app,config,public,lib}/**/*"] s.version = Notifiable::VERSION.dup s.email = "sbertel@mobithought.com" s.homepage = "http://github.com/shenoudab/notifiable" s.author = 'Shenouda Bertel' end Rake::GemPackageTask.new(spec) do |pkg| end desc "Install the gem #{spec.name}-#{spec.version}.gem" task :install do system("gem install pkg/#{spec.name}-#{spec.version}.gem --no-ri --no-rdoc") end