begin require 'jeweler' Jeweler::Tasks.new do |s| s.name = "sinatra-scopes" s.homepage = "http://github.com/quackingduck/sinatra-scopes" s.summary = "Simple request handler scoping for sinatra" s.email = "myles@myles.id.au" s.authors = ["Myles Byrne"] s.add_dependency 'sinatra', '>= 0.9.4' s.add_development_dependency 'exemplor', '>= 2000.0.0' s.add_development_dependency 'rack-test', '0.4.0' end Jeweler::GemcutterTasks.new rescue LoadError puts "Install jeweler to build gem" end task :default => [:test] task :examples do ruby "examples.rb" end task :test => :examples