Browse files

Implemented a new gem setup with Jeweler, time to get CITIER back on …

…track
  • Loading branch information...
1 parent 92532b9 commit 0c16fc9907eb6338bcb12e34b22e7ac43af4657f @petehamilton petehamilton committed Jan 26, 2012
Showing with 67 additions and 23 deletions.
  1. +0 −11 Manifest
  2. +17 −1 README.md
  3. +50 −11 Rakefile
View
11 Manifest
@@ -1,11 +0,0 @@
-Rakefile
-lib/citier.rb
-lib/citier/acts_as_citier.rb
-lib/citier/child_instance_methods.rb
-lib/citier/class_methods.rb
-lib/citier/core_ext.rb
-lib/citier/instance_methods.rb
-lib/citier/root_instance_methods.rb
-lib/citier/sql_adapters.rb
-lib/citier/relation_methods.rb
-Manifest
View
18 README.md
@@ -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.
View
61 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.