Rakefile in git-meta-1.0.0 vs Rakefile in git-meta-2.0.0

- old
+ new

@@ -1,8 +1,22 @@ -require 'rubygems' +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.} @@ -12,9 +26,13 @@ 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