-
Notifications
You must be signed in to change notification settings - Fork 6
/
Rakefile
43 lines (37 loc) · 1.21 KB
/
Rakefile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
require 'rubygems'
require 'rake'
task :default => [:test]
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = false
end
desc "Run Flog against library (except tests)"
task :flog do
puts %x[find ./lib -name *.rb | xargs flog]
end
desc "Run Roodi against library (except tests)"
task :roodi do
puts %x[find ./lib -name *.rb | xargs roodi]
end
#
# Some monks like diamonds. I like gems.
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "riot-rails"
gem.summary = "Riot specific test support for Rails apps"
gem.description = "Riot specific test support for Rails apps. Protest the slow app."
gem.email = "[email protected]"
gem.homepage = "http://github.com/thumblemonks/riot-rails"
gem.authors = ["Justin 'Gus' Knowlden"]
gem.add_dependency("riot", ">= 0.11.1")
gem.add_dependency("rack-test", ">= 0.5.3")
gem.add_development_dependency("activerecord", ">= 3.0.0.beta3")
gem.add_development_dependency("actionpack", ">= 3.0.0.beta3")
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end