Skip to content

Commit

Permalink
Implemented a new gem setup with Jeweler, time to get CITIER back on …
Browse files Browse the repository at this point in the history
…track
  • Loading branch information
Peter Hamilton committed Jan 26, 2012
1 parent 92532b9 commit 0c16fc9
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 23 deletions.
11 changes: 0 additions & 11 deletions Manifest

This file was deleted.

18 changes: 17 additions & 1 deletion README.md
Expand Up @@ -91,4 +91,20 @@ Cool huh?
It is based on original code by ALTRABio (www.github.com/altrabio/)
**For full information please go to the github page:**
**http://peterhamilton.github.com/citier/**
**http://peterhamilton.github.com/citier/**
Contributing to citier
----------------------
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
* Fork the project.
* Start a feature/bugfix branch.
* Commit and push until you are happy with your contribution.
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
Copyright
---------
Copyright (c) 2012 Peter Hamilton. See LICENSE.txt for
further details.
61 changes: 50 additions & 11 deletions Rakefile
@@ -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

0 comments on commit 0c16fc9

Please sign in to comment.