Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 54 lines (46 sloc) 1.348 kb
5730354 @laserlemon Initial commit to scrubby.
authored
1 require 'rubygems'
2 require 'rake'
cbd8cd9 @laserlemon Cleaned up the Rakefile.
authored
3 require 'rake/testtask'
4 require 'rake/rdoctask'
5730354 @laserlemon Initial commit to scrubby.
authored
5
6 begin
7 require 'jeweler'
cbd8cd9 @laserlemon Cleaned up the Rakefile.
authored
8 Jeweler::Tasks.new do |g|
9 g.name = 'scrubby'
10 g.summary = %(Clean up your incoming ActiveRecord model attributes)
11 g.description = %(Clean up your incoming ActiveRecord model attributes)
12 g.email = 'steve.richert@gmail.com'
13 g.homepage = 'http://github.com/laserlemon/scrubby'
14 g.authors = ['Steve Richert']
15 g.add_dependency 'activerecord'
16 g.add_development_dependency 'shoulda'
5730354 @laserlemon Initial commit to scrubby.
authored
17 end
18 Jeweler::GemcutterTasks.new
19 rescue LoadError
cbd8cd9 @laserlemon Cleaned up the Rakefile.
authored
20 puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
5730354 @laserlemon Initial commit to scrubby.
authored
21 end
22
cbd8cd9 @laserlemon Cleaned up the Rakefile.
authored
23 Rake::TestTask.new(:test) do |t|
24 t.libs << 'lib' << 'test'
25 t.pattern = 'test/**/test_*.rb'
26 t.verbose = true
5730354 @laserlemon Initial commit to scrubby.
authored
27 end
28
3cfb3e7 @laserlemon Switched from RSpec to Shoulda testing.
authored
29 begin
30 require 'rcov/rcovtask'
cbd8cd9 @laserlemon Cleaned up the Rakefile.
authored
31 Rcov::RcovTask.new do |t|
32 t.libs << 'test'
33 t.pattern = 'test/**/test_*.rb'
34 t.verbose = true
3cfb3e7 @laserlemon Switched from RSpec to Shoulda testing.
authored
35 end
36 rescue LoadError
37 task :rcov do
cbd8cd9 @laserlemon Cleaned up the Rakefile.
authored
38 abort 'RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov'
3cfb3e7 @laserlemon Switched from RSpec to Shoulda testing.
authored
39 end
5730354 @laserlemon Initial commit to scrubby.
authored
40 end
41
3cfb3e7 @laserlemon Switched from RSpec to Shoulda testing.
authored
42 task :test => :check_dependencies
5730354 @laserlemon Initial commit to scrubby.
authored
43
3cfb3e7 @laserlemon Switched from RSpec to Shoulda testing.
authored
44 task :default => :test
5730354 @laserlemon Initial commit to scrubby.
authored
45
cbd8cd9 @laserlemon Cleaned up the Rakefile.
authored
46 Rake::RDocTask.new do |r|
47 version = File.exist?('VERSION') ? File.read('VERSION') : ''
5730354 @laserlemon Initial commit to scrubby.
authored
48
cbd8cd9 @laserlemon Cleaned up the Rakefile.
authored
49 r.rdoc_dir = 'rdoc'
50 r.title = "scrubby #{version}"
51 r.rdoc_files.include('README*')
52 r.rdoc_files.include('lib/**/*.rb')
5730354 @laserlemon Initial commit to scrubby.
authored
53 end
Something went wrong with that request. Please try again.