Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (47 sloc) 1.427 kb
d6248b5 @JonathanTron Initial commit to rspec_sequel_matchers.
JonathanTron authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "rspec_sequel_matchers"
8 gem.summary = %Q{TODO}
9 gem.email = "jonathan@tron.name"
10 gem.homepage = "http://github.com/JonathanTron/rspec_sequel_matchers"
11 gem.authors = ["Jonathan Tron"]
12
13 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
14 end
15 rescue LoadError
16 puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
17 end
18
19 require 'rake/testtask'
20 Rake::TestTask.new(:test) do |test|
21 test.libs << 'lib' << 'test'
22 test.pattern = 'test/**/*_test.rb'
23 test.verbose = true
24 end
25
26 begin
27 require 'rcov/rcovtask'
28 Rcov::RcovTask.new do |test|
29 test.libs << 'test'
30 test.pattern = 'test/**/*_test.rb'
31 test.verbose = true
32 end
33 rescue LoadError
34 task :rcov do
35 abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
36 end
37 end
38
39
40 task :default => :test
41
42 require 'rake/rdoctask'
43 Rake::RDocTask.new do |rdoc|
44 if File.exist?('VERSION.yml')
45 config = YAML.load(File.read('VERSION.yml'))
46 version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
47 else
48 version = ""
49 end
50
51 rdoc.rdoc_dir = 'rdoc'
52 rdoc.title = "rspec_sequel_matchers #{version}"
53 rdoc.rdoc_files.include('README*')
54 rdoc.rdoc_files.include('lib/**/*.rb')
55 end
56
Something went wrong with that request. Please try again.