-
Notifications
You must be signed in to change notification settings - Fork 113
/
Rakefile
40 lines (36 loc) · 1.23 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the casein gem.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the casein gem.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Casein'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
begin
require "jeweler"
Jeweler::Tasks.new do |gem|
gem.name = "casein"
gem.summary = "A lightweight Ruby on Rails CMS."
gem.description = "Casein is an open-source CMS for Ruby on Rails, originally developed by Spoiled Milk."
gem.files = Dir["Gemfile", "MIT-LICENSE", "Rakefile", "README.rdoc", "PUBLIC_VERSION.yml", "{lib}/**/*", "{app}/**/*", "{config}/**/*"]
gem.email = "[email protected]"
gem.authors = ["Russell Quinn", "Spoiled Milk"]
gem.homepage = "http://github.com/spoiledmilk/casein3"
gem.add_dependency("will_paginate", ["3.0.0"])
gem.add_dependency("authlogic", ["3.0.3"])
end
rescue
puts "Jeweler or one of its dependencies is not installed."
end