-
Notifications
You must be signed in to change notification settings - Fork 6
/
Rakefile
39 lines (34 loc) · 1.35 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
require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'spec/rake/spectask'
desc 'Run the specs'
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
t.spec_files = FileList['spec/**/*_spec.rb']
end
desc 'Generate RDoc documentation.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('README.rdoc', 'LICENSE', 'Rakefile').
include('lib/**/*.rb')
rdoc.main = "README.rdoc"
rdoc.title = "utility_scopes documentation"
rdoc.rdoc_dir = 'doc' # rdoc output folder
rdoc.options << '--inline-source' << '--charset=UTF-8'
rdoc.options << '--webcvs=http://github.com/yfactorial/utility_scopes/tree/master/'
end
# Rakefile
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "utility_scopes"
gemspec.summary = "A collection of utilitarian named scopes providing common functionality for ActiveRecord models."
gemspec.description = "A collection of utilitarian named scopes providing common functionality for ActiveRecord models."
gemspec.email = "[email protected]"
gemspec.homepage = "http://github.com/yfactorial/utility_scopes"
gemspec.authors = ["Ryan Daigle", "Daniel Morrison"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install jeweler -s http://gemcutter.org"
end