-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
34 lines (31 loc) · 1.27 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
require 'rake'
require 'rake/rdoctask'
require 'spec/rake/spectask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "acts-as-optionable"
gemspec.summary = "ActsAsOptionable is a plugin for Rails that support adding options, as well as specify default options, to ActiveRecord models."
gemspec.description = "Add options to ActiveRecord models. I don't advise using this yet, as it's very alpha."
gemspec.email = "xternal1+aao@gmail.com"
gemspec.homepage = "http://github.com/bemurphy/acts_as_optionable"
gemspec.authors = ["Brendon Murphy"]
gemspec.files = FileList["[A-Z]*", "{lib,spec,rails,generators}/**/*"] - FileList["**/*.log"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
desc 'Generate documentation for the acts_as_optionable plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'ActsAsOptionable'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
desc 'Default: run specs'
task :default => :spec
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList["spec/**/*_spec.rb"]
end