forked from morgz/citier
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented a new gem setup with Jeweler, time to get CITIER back on …
…track
- Loading branch information
Peter Hamilton
committed
Jan 26, 2012
1 parent
92532b9
commit 0c16fc9
Showing
3 changed files
with
67 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,53 @@ | ||
# encoding: utf-8 | ||
|
||
require 'rubygems' | ||
require 'bundler' | ||
begin | ||
Bundler.setup(:default, :development) | ||
rescue Bundler::BundlerError => e | ||
$stderr.puts e.message | ||
$stderr.puts "Run `bundle install` to install missing gems" | ||
exit e.status_code | ||
end | ||
require 'rake' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = 'citier' | ||
s.version = '0.1.15' | ||
s.date = '2012-01-26' | ||
s.summary = "CITIER (Class Inheritance & Table Inheritance Embeddings for Rails)" | ||
s.description = "A solution for single and multiple class table inheritance." | ||
s.homepage = "https://github.com/peterhamilton/citier/" | ||
s.authors = ["Peter Hamilton"] | ||
s.email = "peter@inspiredpixel.net" | ||
s.ignore_pattern = ["tmp/*", "script/*", 'doc/*'] | ||
end | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |gem| | ||
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options | ||
gem.name = "citier" | ||
gem.homepage = "http://github.com/peterhamilton/citier" | ||
gem.license = "MIT" | ||
gem.summary = %Q{A solution for single and multiple class table inheritance.} | ||
gem.description = %Q{CITIER (Class Inheritance & Table Inheritance Embeddings for Rails)} | ||
gem.email = "peter@inspiredpixel.net" | ||
gem.authors = ["Peter Hamilton"] | ||
# dependencies defined in Gemfile | ||
end | ||
Jeweler::RubygemsDotOrgTasks.new | ||
|
||
require 'rake/testtask' | ||
Rake::TestTask.new(:test) do |test| | ||
test.libs << 'lib' << 'test' | ||
test.pattern = 'test/**/test_*.rb' | ||
test.verbose = true | ||
end | ||
|
||
require 'rcov/rcovtask' | ||
Rcov::RcovTask.new do |test| | ||
test.libs << 'test' | ||
test.pattern = 'test/**/test_*.rb' | ||
test.verbose = true | ||
test.rcov_opts << '--exclude "gems/*"' | ||
end | ||
|
||
task :default => :test | ||
|
||
require 'rdoc/task' | ||
Rake::RDocTask.new do |rdoc| | ||
version = File.exist?('VERSION') ? File.read('VERSION') : "" | ||
|
||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = "citier #{version}" | ||
rdoc.rdoc_files.include('README*') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
end |