/
Rakefile
92 lines (58 loc) · 1.86 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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 '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