Sha256: c1d88b27cc939e444b44c8cec7c19ea955ba1191f4af0fa45648b1735e1cd75a

Contents?: true

Size: 1.82 KB

Versions: 3

Compression:

Stored size: 1.82 KB

Contents


require 'lib/rufus/tokyo/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::Tokyo::VERSION
  gem.name = 'rufus-tokyo'

  gem.summary =
    'ruby-ffi based lib to access Tokyo Cabinet, Tyrant and Dystopia'
  gem.description = %{
Ruby-ffi based lib to access Tokyo Cabinet and Tyrant.

The ffi-based structures are available via the Rufus::Tokyo namespace.
There is a Rufus::Edo namespace that interfaces with Hirabayashi-san's native Ruby interface, and whose API is equal to the Rufus::Tokyo one.

Finally rufus-tokyo includes ffi-based interfaces to Tokyo Dystopia (thanks to Jeremy Hinegardner).
  }

  gem.email = 'jmettraux@gmail.com'
  gem.homepage = 'http://github.com/jmettraux/rufus-tokyo/'

  gem.authors = [
    'John Mettraux', 'Zev Blut', 'Jeremy Hinegardner', 'James Edward Gray II' ]

  gem.rubyforge_project = 'rufus'

  gem.test_file = 'spec/spec.rb'

  gem.add_dependency 'ffi'
  gem.add_development_dependency 'yard', '>= 0'

  #gem.files = Dir['lib/**/*.rb'] + Dir['*.txt'] - [ 'lib/tokyotyrant.rb' ]
  #gem.files.reject! { |fn| fn == 'lib/tokyotyrant.rb' }

  # 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-tokyo', '--title',
      "rufus-tokyo #{Rufus::Tokyo::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-tokyo #{account}:#{webdir}/"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rufus-tokyo-1.0.6 Rakefile
rufus-tokyo-1.0.5 Rakefile
rufus-tokyo-1.0.4 Rakefile