Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 34 lines (29 sloc) 0.779 kB
77ae4ed @dylanegan Manage the gem via bundler. Makes it easier for development.
dylanegan authored
1 require 'bundler'
2 Bundler::GemHelper.install_tasks
57d4fcd @jnunemaker Initial commit to google-weather.
authored
3
4 require 'rake/rdoctask'
5 Rake::RDocTask.new do |rdoc|
6 rdoc.rdoc_dir = 'rdoc'
7 rdoc.title = 'google-weather'
8 rdoc.options << '--line-numbers' << '--inline-source'
9 rdoc.rdoc_files.include('README*')
10 rdoc.rdoc_files.include('lib/**/*.rb')
11 end
12
13 require 'rake/testtask'
14 Rake::TestTask.new(:test) do |test|
15 test.libs << 'lib' << 'test'
16 test.pattern = 'test/**/*_test.rb'
17 test.verbose = false
18 end
19
20 begin
21 require 'rcov/rcovtask'
22 Rcov::RcovTask.new do |test|
23 test.libs << 'test'
24 test.pattern = 'test/**/*_test.rb'
25 test.verbose = true
26 end
27 rescue LoadError
28 task :rcov do
29 abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
30 end
31 end
32
33 task :default => :test
Something went wrong with that request. Please try again.