begin require 'rubygems' rescue LoadError # meh end require 'rake' require 'rake/testtask' $:.unshift File.expand_path("#{File.dirname(__FILE__)}/lib") require 'git_meta' Rake::TestTask.new do |t| t.libs << 'lib' t.pattern = 'test/test_*.rb' t.verbose = false end begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "git-meta" gem.summary = %Q{A less than freeform way of storing some metadata in git commit objects.} gem.description = %Q{It's a way to store data along with a git commit object that is less freeform than something like "Close gh-11" but more freeform than having to add extra data structures to the git commit object. It is also completely compatible for people wanting to read this metadata directly from an interface like git-log or github. This gem allows reading this data.} gem.email = "sam@lenary.co.uk" gem.homepage = "http://github.com/lenary/git-meta" gem.authors = ["Sam Elliott"] gem.version = GitMeta::VERSION gem.add_development_dependency "shoulda", "~>2.10.2" gem.add_development_dependency "mocha", "~>0.9.8" # these are the two versions i have been testing with. end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" end