Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (30 sloc) 0.836 kb
d605c76 @sinisterchipmunk Updating code base, not finished yet
authored
1 require 'bundler'
c27ea98 @sinisterchipmunk added missing rake tasks. how'd that happen?
authored
2 Bundler::GemHelper.install_tasks
d605c76 @sinisterchipmunk Updating code base, not finished yet
authored
3 Bundler.setup
56d4091 @sinisterchipmunk Initial commit to gravatar.
authored
4
d605c76 @sinisterchipmunk Updating code base, not finished yet
authored
5 require 'rspec/core/rake_task'
2fda077 @sinisterchipmunk Caching, both Rails and standalone
authored
6 desc "Run all specs"
d605c76 @sinisterchipmunk Updating code base, not finished yet
authored
7 RSpec::Core::RakeTask.new
2fda077 @sinisterchipmunk Caching, both Rails and standalone
authored
8
56d4091 @sinisterchipmunk Initial commit to gravatar.
authored
9 begin
2fda077 @sinisterchipmunk Caching, both Rails and standalone
authored
10 gem 'rcov'
56d4091 @sinisterchipmunk Initial commit to gravatar.
authored
11 require 'rcov/rcovtask'
d605c76 @sinisterchipmunk Updating code base, not finished yet
authored
12 RSpec::Core::RakeTask.new(:coverage) do |test|
2fda077 @sinisterchipmunk Caching, both Rails and standalone
authored
13 test.libs << 'lib' << 'spec'
14 test.pattern = "spec/**/*_spec.rb"
15 test.verbose = true
16 test.rcov = true
17 test.rcov_opts = ['--html', '--exclude spec']
18 end
56d4091 @sinisterchipmunk Initial commit to gravatar.
authored
19 rescue LoadError
eb9abdc @sinisterchipmunk Improved caching, more tests, #image_data method
authored
20 task :coverage do
56d4091 @sinisterchipmunk Initial commit to gravatar.
authored
21 abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
22 end
23 end
24
d605c76 @sinisterchipmunk Updating code base, not finished yet
authored
25 task :default => :spec
56d4091 @sinisterchipmunk Initial commit to gravatar.
authored
26
d605c76 @sinisterchipmunk Updating code base, not finished yet
authored
27 require 'rdoc/task'
28 RDoc::Task.new do |rdoc|
56d4091 @sinisterchipmunk Initial commit to gravatar.
authored
29 version = File.exist?('VERSION') ? File.read('VERSION') : ""
30
31 rdoc.rdoc_dir = 'rdoc'
32 rdoc.title = "gravatar #{version}"
33 rdoc.rdoc_files.include('README*')
34 rdoc.rdoc_files.include('lib/**/*.rb')
35 end
Something went wrong with that request. Please try again.