-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathRakefile
50 lines (45 loc) · 1.53 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
41
42
43
44
45
46
47
48
49
50
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rubygems'
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the fleximage plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the rails-settings plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Rails Settings'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "rails-settings"
gem.summary = <<EOF
Settings is a plugin that makes managing a table of global key, value pairs
easy. Think of it like a global Hash stored in your database, that uses simple
ActiveRecord like methods for manipulation. Keep track of any global setting
that you don't want to hard code into your rails app. You can store any kind
of object. Strings, numbers, arrays, or any serializable object.
EOF
gem.description = <<EOF
Settings is a plugin that makes managing a table of global key, value pairs
easy.
EOF
gem.email = "ruby@beautifulpixel.com"
gem.homepage = "http://github.com/Squeegy/rails-settings"
gem.authors = `git log --pretty=format:"%an"`.split("\n").uniq.sort
gem.add_development_dependency "rails", ">=2.0.1"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available."
puts "Install it with: gem install jeweler"
end