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 = "sean@basho.com" gem.homepage = "http://seancribbs.github.com/ripple" gem.authors = ["Sean Cribbs"] gem.add_development_dependency "rspec", "~>2.0.0" gem.add_development_dependency "rspec-rails", "~>2.0.0" gem.add_development_dependency "yajl-ruby" gem.add_development_dependency "rails", "~>3.0.0" gem.add_development_dependency "rake" gem.add_dependency "riak-client", "~>#{version}" gem.add_dependency "rack", ">=1.0" gem.files = %W{ Gemfile lib/riak/session_store.rb lib/riak-sessions.rb lib/ripple/session_store.rb Rakefile riak-sessions.gemspec spec/fixtures/session_autoload_test/session_autoload_test/foo.rb spec/riak_session_store_spec.rb spec/ripple_session_store_spec.rb spec/spec_helper.rb spec/support/ripple_session_support.rb spec/support/rspec-rails-neuter.rb spec/support/test_server.rb spec/support/test_server.yml.example } gem.test_files = gem.files.grep(/_spec\.rb$/) 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