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.536 kb
b00be8a @olauzon Initial import
authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "weekender"
8 gem.summary = %Q{A simple Ruby library for creating calendars based on weeks rather than months.}
9 gem.email = "olauzon@gmail.com"
10 gem.homepage = "http://github.com/olauzon/weekender"
11 gem.authors = ["Olivier Lauzon"]
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 'spec/rake/spectask'
20 Spec::Rake::SpecTask.new(:spec) do |spec|
21 spec.libs << 'lib' << 'spec'
22 spec.spec_files = FileList['spec/**/*_spec.rb']
23 end
24
25 Spec::Rake::SpecTask.new(:rcov) do |spec|
26 spec.libs << 'lib' << 'spec'
27 spec.pattern = 'spec/**/*_spec.rb'
28 spec.rcov = true
29 end
30
31 begin
32 require 'cucumber/rake/task'
33 Cucumber::Rake::Task.new(:features)
34 rescue LoadError
35 task :features do
36 abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
37 end
38 end
39
9222c57 @olauzon Include Cucumber features in rake default
authored
40 task :default => [ :spec, :features ]
b00be8a @olauzon Initial import
authored
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 = "weekender #{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.