Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 54 lines (46 sloc) 1.403 kB
ed20802 @kristianmandrup Initial commit to cantango-roles.
authored
1 # encoding: utf-8
2
3 require 'rubygems'
4 require 'bundler'
5 begin
6 Bundler.setup(:default, :development)
7 rescue Bundler::BundlerError => e
8 $stderr.puts e.message
9 $stderr.puts "Run `bundle install` to install missing gems"
10 exit e.status_code
11 end
12 require 'rake'
13
14 require 'jeweler'
15 Jeweler::Tasks.new do |gem|
16 # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17 gem.name = "cantango-roles"
18 gem.homepage = "http://github.com/kristianmandrup/cantango-roles"
19 gem.license = "MIT"
d6967de @kristianmandrup initial
authored
20 gem.summary = %Q{Roles extension for CanTango}
21 gem.description = %Q{Roles and Role groups for CanTango}
ed20802 @kristianmandrup Initial commit to cantango-roles.
authored
22 gem.email = "kmandrup@gmail.com"
23 gem.authors = ["Kristian Mandrup"]
24 # dependencies defined in Gemfile
25 end
26 Jeweler::RubygemsDotOrgTasks.new
27
28 require 'rake/testtask'
29 Rake::TestTask.new(:test) do |test|
30 test.libs << 'lib' << 'test'
31 test.pattern = 'test/**/test_*.rb'
32 test.verbose = true
33 end
34
35 require 'rcov/rcovtask'
36 Rcov::RcovTask.new do |test|
37 test.libs << 'test'
38 test.pattern = 'test/**/test_*.rb'
39 test.verbose = true
40 test.rcov_opts << '--exclude "gems/*"'
41 end
42
43 task :default => :test
44
fd09424 @kristianmandrup better specs and now fixtures and helpers
authored
45 require 'rdoc/task'
ed20802 @kristianmandrup Initial commit to cantango-roles.
authored
46 Rake::RDocTask.new do |rdoc|
47 version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
49 rdoc.rdoc_dir = 'rdoc'
50 rdoc.title = "cantango-roles #{version}"
51 rdoc.rdoc_files.include('README*')
52 rdoc.rdoc_files.include('lib/**/*.rb')
53 end
Something went wrong with that request. Please try again.