# encoding: utf-8 begin require 'bones' rescue LoadError abort '### Please install the "bones" gem ###' end ensure_in_path 'lib' proj = 'rest-graph' require "#{proj}/version" Bones{ ruby_opts [''] # silence warning for now version RestGraph::VERSION depend_on 'rest-client' depend_on 'json', :development => true depend_on 'rack', :development => true depend_on 'rr', :development => true depend_on 'webmock', :development => true depend_on 'bacon', :development => true name proj url "http://github.com/cardinalblue/#{proj}" authors ['Cardinal Blue', 'Lin Jen-Shin (aka godfat 真常)'] email 'dev (XD) cardinalblue.com' history_file 'CHANGES' readme_file 'README.rdoc' ignore_file '.gitignore' rdoc.include ['\w+'] rdoc.exclude ['test', 'doc', 'Rakefile'] } CLEAN.include Dir['**/*.rbc'] task :default do Rake.application.options.show_task_pattern = /./ Rake.application.display_tasks_and_comments end desc 'Run example tests' task 'test:example' => ['gem:install'] do sh "cd example/rails; #{Gem.ruby} -S rake test" end desc 'Run all tests' task 'test:all' => ['test', 'test:example']