Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 60 lines (52 sloc) 1.467 kb
70fcd363 »
2010-03-05 Initial import
1 require 'rubygems'
2 require 'rake/gempackagetask'
3 require 'rubygems/specification'
4 require 'date'
5 require 'spec/rake/spectask'
6
7 GEM = 'Voldemort Client'
8 GEM_NAME = 'voldemort_client'
a6f669c9 » Alejandro Agustin Crosa
2010-11-18 Bump version
9 GEM_VERSION = '0.1.5'
70fcd363 »
2010-03-05 Initial import
10 AUTHORS = ['Alejandro Crosa']
11 EMAIL = "alejandrocrosa@gmail.com"
12 HOMEPAGE = "http://github.com/acrosa/Voldemort-Ruby-Client"
13 SUMMARY = "A Ruby client for the Voldemort distributed key value store"
14
15 spec = Gem::Specification.new do |s|
16 s.name = GEM
17 s.version = GEM_VERSION
18 s.platform = Gem::Platform::RUBY
19 s.has_rdoc = true
20 s.extra_rdoc_files = ["LICENSE"]
21 s.summary = SUMMARY
22 s.description = s.summary
23 s.authors = AUTHORS
24 s.email = EMAIL
25 s.homepage = HOMEPAGE
26 s.add_development_dependency "rspec"
27 s.require_path = 'lib'
28 s.autorequire = GEM
29 s.files = %w(LICENSE README.md Rakefile) + Dir.glob("{lib,tasks,spec}/**/*")
30 end
31
32 task :default => :spec
33
34 desc "Run specs"
35 Spec::Rake::SpecTask.new do |t|
36 t.spec_files = FileList['spec/**/*_spec.rb']
37 t.spec_opts = %w(-fs --color)
38 end
39
40 Rake::GemPackageTask.new(spec) do |pkg|
41 pkg.gem_spec = spec
42 end
43
44 desc "install the gem locally"
45 task :install => [:package] do
46 sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
47 end
48
49 desc "create a gemspec file"
50 task :make_spec do
51 File.open("#{GEM}.gemspec", "w") do |file|
52 file.puts spec.to_ruby
53 end
54 end
55
56 desc "Run all examples with RCov"
57 Spec::Rake::SpecTask.new(:rcov) do |t|
58 t.spec_files = FileList['spec/**/*_spec.rb']
59 t.rcov = true
60 end
Something went wrong with that request. Please try again.