Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 51 lines (39 sloc) 1.212 kb
3b1327e @aphyr Add Rakefile
authored
1 $:.unshift(File.join(File.dirname(__FILE__), 'lib'))
2
3 require 'rubygems'
4 require 'rake/gempackagetask'
5 require 'rake/rdoctask'
6 require 'risky/version'
7 require 'find'
8
9 # Don't include resource forks in tarballs on Mac OS X.
10 ENV['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true'
11 ENV['COPYFILE_DISABLE'] = 'true'
12
13 # Gemspec
14 gemspec = Gem::Specification.new do |s|
15 s.rubyforge_project = 'risky'
16
17 s.name = 'risky'
18 s.version = Risky::VERSION
19 s.author = 'Kyle Kingsbury'
20 s.email = 'aphyr@aphyr.com'
21 s.homepage = 'https://github.com/aphyr/risky'
22 s.platform = Gem::Platform::RUBY
23 s.summary = 'A Ruby ORM for the Riak distributed database.'
24
25 s.files = FileList['{lib}/**/*', 'LICENSE', 'README.markdown'].to_a
26 s.executables = []
27 s.require_path = 'lib'
28 s.has_rdoc = true
29
30 s.required_ruby_version = '>= 1.8.6'
31
965a17f @aphyr Risky 1.0.1
authored
32 s.add_dependency('riak-client', '~> 1.0.4')
3b1327e @aphyr Add Rakefile
authored
33 end
34
35 Rake::GemPackageTask.new(gemspec) do |p|
36 p.need_tar_gz = true
37 end
38
39 Rake::RDocTask.new do |rd|
40 rd.main = 'Risky'
41 rd.title = 'Risky'
42 rd.rdoc_dir = 'doc'
43
44 rd.rdoc_files.include('lib/**/*.rb')
45 end
46
47 desc "install Risky"
48 task :install => :gem do
49 sh "gem install #{File.dirname(__FILE__)}/pkg/risky-#{Risky::VERSION}.gem"
50 end
Something went wrong with that request. Please try again.