public
Fork of mbleigh/from_param
Description: Rails plugin that adds a from_param class method to ActiveRecord::Base for simple URL-based fetching.
Homepage: http://mbleigh.lighthouseapp.com/projects/10478-from-param
Clone URL: git://github.com/ffmike/from_param.git
from_param / Rakefile
100644 30 lines (25 sloc) 0.726 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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'spec'
require 'spec/rake/spectask'
 
desc 'Default: run rspec tests.'
task :default => :spec
 
desc "Run all specs in spec directory "
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
end
 
desc 'Test the from_param plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end
 
desc 'Generate documentation for the from_param plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'from_param'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end