Sha256: c076897f831afefce7b3de97aa0a29afce62810fdf227fe9926ca1b90ac47c59

Contents?: true

Size: 1.44 KB

Versions: 1

Compression:

Stored size: 1.44 KB

Contents

# 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 'rack'     , :development => true

  depend_on 'yajl-ruby', :development => true
  depend_on 'json'     , :development => true
  depend_on 'json_pure', :development => true

  depend_on 'ruby-hmac', :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', 'example']
}

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/rails2; #{Gem.ruby} -S rake test"
end

desc 'Run all tests'
task 'test:all' => ['test', 'test:example']

desc 'Run different json test'
task 'test:json' do
  %w[yajl json].each{ |json|
    sh "#{Gem.ruby} -S rake -r #{json} test"
  }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rest-graph-1.5.0 Rakefile