-
Notifications
You must be signed in to change notification settings - Fork 9
/
Rakefile.rb
50 lines (39 loc) · 1.19 KB
/
Rakefile.rb
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
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'risky/version'
require 'find'
# Don't include resource forks in tarballs on Mac OS X.
ENV['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true'
ENV['COPYFILE_DISABLE'] = 'true'
# Gemspec
gemspec = Gem::Specification.new do |s|
s.rubyforge_project = 'risky'
s.name = 'risky'
s.version = Risky::VERSION
s.author = 'Kyle Kingsbury'
s.email = 'aphyr@aphyr.com'
s.homepage = 'https://github.com/aphyr/risky'
s.platform = Gem::Platform::RUBY
s.summary = 'A Ruby ORM for the Riak distributed database.'
s.files = FileList['{lib}/**/*', 'LICENSE', 'README.markdown'].to_a
s.executables = []
s.require_path = 'lib'
s.has_rdoc = true
s.required_ruby_version = '>= 1.8.6'
s.add_dependency('riak-client', '~> 1.0.0.pre')
end
Rake::GemPackageTask.new(gemspec) do |p|
p.need_tar_gz = true
end
Rake::RDocTask.new do |rd|
rd.main = 'Risky'
rd.title = 'Risky'
rd.rdoc_dir = 'doc'
rd.rdoc_files.include('lib/**/*.rb')
end
desc "install Risky"
task :install => :gem do
sh "gem install #{File.dirname(__FILE__)}/pkg/risky-#{Risky::VERSION}.gem"
end