require 'rake' require 'rake/testtask' begin require 'jeweler' Jeweler::Tasks.new do |gemspec| gemspec.name = "defensio" gemspec.summary = "Official Ruby library for Defensio 2.0" gemspec.description = "Official Ruby library for Defensio 2.0" gemspec.email = "support@defensio.com" gemspec.homepage = "http://github.com/defensio/defensio-ruby" gemspec.authors = ["Carl Mercier"] gemspec.add_dependency('patron', '>= 0.4.4') end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler not available. Install it with: sudo gem install jeweler -s http://gemcutter.org" end Rake::TestTask.new(:test) do |t| t.libs << 'lib' << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = false end task :default => :test