Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 56 lines (42 sloc) 1.299 kB
e51f36a @pat Adding rake tasks to generate gemspec (which shouldn't be ignored, ne…
pat authored
1 require 'rubygems'
2 require 'spec'
3 require 'rake/rdoctask'
4 require 'spec/rake/spectask'
5 require 'rake/gempackagetask'
6
7 $LOAD_PATH.unshift File.dirname(__FILE__) + '/lib'
8
9 require 'garlic'
10
a489c92 @ianwhite garlic gem now available on gemcutter and rubyforge
authored
11 begin
12 require 'jeweler'
13
14 Jeweler::Tasks.new do |s|
15 s.name = "garlic"
16 s.version = Garlic::Version::String
17 s.summary = "Test your project across multiple versions of rails/dependencies"
18 s.description = "CI tool to test your project across multiple versions of rails/dependencies"
19 s.email = "ian.w.white@gmail.com"
20 s.homepage = "http://github.com/ianwhite/garlic"
21 s.authors = ["Ian White"]
22 s.rubyforge_project = 'garlic'
23 end
24
25 Jeweler::GemcutterTasks.new
e51f36a @pat Adding rake tasks to generate gemspec (which shouldn't be ignored, ne…
pat authored
26
a489c92 @ianwhite garlic gem now available on gemcutter and rubyforge
authored
27 Jeweler::RubyforgeTasks.new do |rubyforge|
28 rubyforge.doc_task = "rdoc"
29 end
30
31 rescue LoadError
32 puts "Jeweler not available for gem tasks. Install it with: sudo gem install jeweler"
e51f36a @pat Adding rake tasks to generate gemspec (which shouldn't be ignored, ne…
pat authored
33 end
34
a489c92 @ianwhite garlic gem now available on gemcutter and rubyforge
authored
35 begin
36 require 'hanna/rdoctask'
37 rescue LoadError
38 end
39
40 Rake::RDocTask.new(:doc) do |d|
41 d.options << '--all'
42 d.rdoc_dir = 'doc'
43 d.main = 'README.textile'
44 d.title = "garlic API Docs"
45 d.rdoc_files.include('README.textile', 'History.txt', 'License.txt', 'Todo.txt', 'VERSION', 'lib/**/*.rb')
e51f36a @pat Adding rake tasks to generate gemspec (which shouldn't be ignored, ne…
pat authored
46 end
a489c92 @ianwhite garlic gem now available on gemcutter and rubyforge
authored
47 task :rdoc => :doc
e51f36a @pat Adding rake tasks to generate gemspec (which shouldn't be ignored, ne…
pat authored
48
a489c92 @ianwhite garlic gem now available on gemcutter and rubyforge
authored
49 Spec::Rake::SpecTask.new(:spec) do |t|
50 t.warning = true
e51f36a @pat Adding rake tasks to generate gemspec (which shouldn't be ignored, ne…
pat authored
51 end
a489c92 @ianwhite garlic gem now available on gemcutter and rubyforge
authored
52 task :default => :spec
53
54
e51f36a @pat Adding rake tasks to generate gemspec (which shouldn't be ignored, ne…
pat authored
55
Something went wrong with that request. Please try again.