Sha256: 60f7a612eaaf7cafced6b80cf85871e8395346ab8b17e5fadcc2edee4ca92934

Contents?: true

Size: 1.94 KB

Versions: 3

Compression:

Stored size: 1.94 KB

Contents

require 'rubygems'
require 'rake/gempackagetask'

version = File.read('../VERSION').strip

gemspec = Gem::Specification.new do |gem|
  gem.name = "riak-sessions"
  gem.summary = %Q{riak-sessions is a session store backed by Riak, the distributed database by Basho.}
  gem.description = %Q{riak-sessions is a session store backed by Riak, the distributed database by Basho. It includes session implementations for both Rack and Rails 3.}
  gem.version = version
  gem.email = "seancribbs@gmail.com"
  gem.homepage = "http://seancribbs.github.com/ripple"
  gem.authors = ["Sean Cribbs"]
  gem.add_development_dependency "rspec", "~>2.0.0.beta.18"
  gem.add_development_dependency "rspec-rails", "~>2.0.0.beta.18"
  gem.add_development_dependency "yajl-ruby"
  gem.add_development_dependency "rails", "~>3.0.0"
  gem.add_development_dependency "curb", ">0.6"
  gem.add_development_dependency "rake"
  gem.add_dependency "riak-client", "~>#{version}"
  gem.add_dependency "rack", ">=1.0"

  files = FileList["**/*"]
  files.exclude /\.DS_Store/
  files.exclude /\#/
  files.exclude /~/
  files.exclude /\.swp/
  files.exclude '**/._*'
  files.exclude '**/*.orig'
  files.exclude '**/*.rej'
  files.exclude /^pkg/
  files.exclude 'riak-sessions.gemspec'
  files.exclude 'Gemfile'
  files.exclude 'Gemfile.lock'
  
  gem.files = files.to_a

  gem.test_files = FileList["spec/**/*.rb"].to_a
end

# Gem packaging tasks
Rake::GemPackageTask.new(gemspec) do |pkg|
  pkg.need_zip = false
  pkg.need_tar = false
end

task :gem => :gemspec

desc %{Build the gemspec file.}
task :gemspec do
  gemspec.validate
  File.open("#{gemspec.name}.gemspec", 'w'){|f| f.write gemspec.to_ruby }
end

desc %{Release the gem to RubyGems.org}
task :release => :gem do
  system "gem push pkg/#{gemspec.name}-#{gemspec.version}.gem"
end

require 'rspec/core'
require 'rspec/core/rake_task'

desc "Run Specs"
Rspec::Core::RakeTask.new(:spec) do |spec|
  spec.pattern = "spec/**/*_spec.rb"
end

task :default => :spec

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
riak-sessions-0.8.1 Rakefile
riak-sessions-0.8.0 Rakefile
riak-sessions-0.8.0.beta2 Rakefile