Sha256: f5b1dc5d3ae2d2b72c275c86c4ee9316887c7464e1daad7f37270e30df8bbfc5

Contents?: true

Size: 1.36 KB

Versions: 1

Compression:

Stored size: 1.36 KB

Contents


require 'lib/rufus/verbs/version.rb'

require 'rubygems'
require 'rake'


#
# CLEAN

require 'rake/clean'
CLEAN.include('pkg', 'tmp', 'html')
task :default => [ :clean ]


#
# GEM

require 'jeweler'

Jeweler::Tasks.new do |gem|

  gem.version = Rufus::Verbs::VERSION
  gem.name = 'rufus-verbs'
  gem.summary = 'GET, POST, PUT, DELETE, with something around'

  gem.description = %{
GET, POST, PUT, DELETE, with something around.

An HTTP client Ruby gem, with conditional GET, basic auth, and more.
  }
  gem.email = 'jmettraux@gmail.com'
  gem.homepage = 'http://github.com/jmettraux/rufus-verbs/'
  gem.authors = [ 'John Mettraux' ]
  gem.rubyforge_project = 'rufus'

  gem.test_file = 'test/test.rb'

  gem.add_dependency 'rufus-lru'
  gem.add_development_dependency 'yard', '>= 0'

  # gemspec spec : http://www.rubygems.org/read/chapter/20
end
Jeweler::GemcutterTasks.new


#
# DOC

begin

  require 'yard'

  YARD::Rake::YardocTask.new do |doc|
    doc.options = [
      '-o', 'html/rufus-verbs', '--title',
      "rufus-verbs #{Rufus::Verbs::VERSION}"
    ]
  end

rescue LoadError

  task :yard do
    abort "YARD is not available : sudo gem install yard"
  end
end


#
# TO THE WEB

task :upload_website => [ :clean, :yard ] do

  account = 'jmettraux@rubyforge.org'
  webdir = '/var/www/gforge-projects/rufus'

  sh "rsync -azv -e ssh html/rufus-verbs #{account}:#{webdir}/"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rufus-verbs-1.0.0 Rakefile