Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 93 lines (58 sloc) 1.9 kb
516bd78 @jmettraux adding administrative files
authored
1
2
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
3 require 'lib/rufus/tokyo/version.rb'
516bd78 @jmettraux adding administrative files
authored
4
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
5 require 'rubygems'
6 require 'rake'
831d0e3 @jmettraux using hanna rdoc template
authored
7
516bd78 @jmettraux adding administrative files
authored
8
9 #
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
10 # CLEAN
516bd78 @jmettraux adding administrative files
authored
11
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
12 require 'rake/clean'
831d0e3 @jmettraux using hanna rdoc template
authored
13 CLEAN.include('pkg', 'tmp', 'html')
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
14 task :default => [ :clean ]
516bd78 @jmettraux adding administrative files
authored
15
16
17 #
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
18 # GEM
830fdae @jmettraux tyrant base is in, slowly moving to bacon
authored
19
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
20 require 'jeweler'
830fdae @jmettraux tyrant base is in, slowly moving to bacon
authored
21
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
22 Jeweler::Tasks.new do |gem|
830fdae @jmettraux tyrant base is in, slowly moving to bacon
authored
23
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
24 gem.version = Rufus::Tokyo::VERSION
25 gem.name = 'rufus-tokyo'
516bd78 @jmettraux adding administrative files
authored
26
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
27 gem.summary =
28 'ruby-ffi based lib to access Tokyo Cabinet, Tyrant and Dystopia'
29 gem.description = %{
30 Ruby-ffi based lib to access Tokyo Cabinet and Tyrant.
eeea2c9 @jmettraux release 0.1.11
authored
31
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
32 The ffi-based structures are available via the Rufus::Tokyo namespace.
33 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.
eeea2c9 @jmettraux release 0.1.11
authored
34
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
35 Finally rufus-tokyo includes ffi-based interfaces to Tokyo Dystopia (thanks to Jeremy Hinegardner).
36 }
eeea2c9 @jmettraux release 0.1.11
authored
37
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
38 gem.email = 'jmettraux@gmail.com'
39 gem.homepage = 'http://github.com/jmettraux/rufus-tokyo/'
eeea2c9 @jmettraux release 0.1.11
authored
40
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
41 gem.authors = [
42 'John Mettraux', 'Zev Blut', 'Jeremy Hinegardner', 'James Edward Gray II' ]
eeea2c9 @jmettraux release 0.1.11
authored
43
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
44 gem.rubyforge_project = 'rufus'
45
46 gem.test_file = 'spec/spec.rb'
516bd78 @jmettraux adding administrative files
authored
47
bdd2ead @jmettraux removed hard dependency on ffi so that JRuby installs stop failing. C…
authored
48 #gem.add_dependency 'ffi'
49 gem.add_development_dependency 'ffi'
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
50 gem.add_development_dependency 'yard', '>= 0'
51
52 #gem.files = Dir['lib/**/*.rb'] + Dir['*.txt'] - [ 'lib/tokyotyrant.rb' ]
53 #gem.files.reject! { |fn| fn == 'lib/tokyotyrant.rb' }
54
55 # gemspec spec : http://www.rubygems.org/read/chapter/20
516bd78 @jmettraux adding administrative files
authored
56 end
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
57 Jeweler::GemcutterTasks.new
58
516bd78 @jmettraux adding administrative files
authored
59
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
60 #
61 # DOC
516bd78 @jmettraux adding administrative files
authored
62
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
63 begin
941e9cd @jmettraux release 0.1.12
authored
64
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
65 require 'yard'
941e9cd @jmettraux release 0.1.12
authored
66
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
67 YARD::Rake::YardocTask.new do |doc|
68 doc.options = [
69 '-o', 'html/rufus-tokyo', '--title',
70 "rufus-tokyo #{Rufus::Tokyo::VERSION}"
71 ]
516bd78 @jmettraux adding administrative files
authored
72 end
73
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
74 rescue LoadError
516bd78 @jmettraux adding administrative files
authored
75
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
76 task :yard do
77 abort "YARD is not available : sudo gem install yard"
78 end
516bd78 @jmettraux adding administrative files
authored
79 end
80
81
82 #
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
83 # TO THE WEB
516bd78 @jmettraux adding administrative files
authored
84
9874cf5 @jmettraux moved gem stuff to Jeweler (thanks Kenneth Kalmer)
authored
85 task :upload_website => [ :clean, :yard ] do
516bd78 @jmettraux adding administrative files
authored
86
87 account = 'jmettraux@rubyforge.org'
88 webdir = '/var/www/gforge-projects/rufus'
89
90 sh "rsync -azv -e ssh html/rufus-tokyo #{account}:#{webdir}/"
91 end
92
Something went wrong with that request. Please try again.