riak-sessions.gemspec in riak-sessions-0.9.7 vs riak-sessions.gemspec in riak-sessions-1.0.0.beta
- old
+ new
@@ -1,48 +1,29 @@
-# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require 'riak-sessions/version'
-Gem::Specification.new do |s|
- s.name = %q{riak-sessions}
- s.version = "0.9.7"
+Gem::Specification.new do |gem|
+ # Meta
+ 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 = Riak::Sessions::VERSION
+ gem.email = ["sean@basho.com"]
+ gem.homepage = "http://seancribbs.github.com/ripple"
+ gem.authors = ["Sean Cribbs"]
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = [%q{Sean Cribbs}]
- s.date = %q{2011-07-26}
- s.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.}
- s.email = %q{sean@basho.com}
- s.files = [%q{Gemfile}, %q{lib/riak/session_store.rb}, %q{lib/riak-sessions.rb}, %q{lib/ripple/session_store.rb}, %q{Rakefile}, %q{riak-sessions.gemspec}, %q{spec/fixtures/session_autoload_test/session_autoload_test/foo.rb}, %q{spec/riak_session_store_spec.rb}, %q{spec/ripple_session_store_spec.rb}, %q{spec/spec_helper.rb}, %q{spec/support/ripple_session_support.rb}, %q{spec/support/rspec-rails-neuter.rb}, %q{spec/support/test_server.rb}, %q{spec/support/test_server.yml.example}]
- s.homepage = %q{http://seancribbs.github.com/ripple}
- s.require_paths = [%q{lib}]
- s.rubygems_version = %q{1.8.5}
- s.summary = %q{riak-sessions is a session store backed by Riak, the distributed database by Basho.}
- s.test_files = [%q{spec/riak_session_store_spec.rb}, %q{spec/ripple_session_store_spec.rb}]
+ # Deps
+ gem.add_development_dependency "rspec", "~>2.6.0"
+ gem.add_development_dependency "rspec-rails", "~>2.6.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", "~>#{Riak::Sessions::VERSION}"
+ gem.add_dependency "rack", ">=1.0"
- if s.respond_to? :specification_version then
- s.specification_version = 3
-
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<rspec>, ["~> 2.4.0"])
- s.add_development_dependency(%q<rspec-rails>, ["~> 2.4.0"])
- s.add_development_dependency(%q<yajl-ruby>, [">= 0"])
- s.add_development_dependency(%q<rails>, ["~> 3.0.0"])
- s.add_development_dependency(%q<rake>, [">= 0"])
- s.add_runtime_dependency(%q<riak-client>, ["~> 0.9.7"])
- s.add_runtime_dependency(%q<rack>, [">= 1.0"])
- else
- s.add_dependency(%q<rspec>, ["~> 2.4.0"])
- s.add_dependency(%q<rspec-rails>, ["~> 2.4.0"])
- s.add_dependency(%q<yajl-ruby>, [">= 0"])
- s.add_dependency(%q<rails>, ["~> 3.0.0"])
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<riak-client>, ["~> 0.9.7"])
- s.add_dependency(%q<rack>, [">= 1.0"])
- end
- else
- s.add_dependency(%q<rspec>, ["~> 2.4.0"])
- s.add_dependency(%q<rspec-rails>, ["~> 2.4.0"])
- s.add_dependency(%q<yajl-ruby>, [">= 0"])
- s.add_dependency(%q<rails>, ["~> 3.0.0"])
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<riak-client>, ["~> 0.9.7"])
- s.add_dependency(%q<rack>, [">= 1.0"])
- end
+ # Files
+ ignores = File.read(".gitignore").split(/\r?\n/).reject{ |f| f =~ /^(#.+|\s*)$/ }.map {|f| Dir[f] }.flatten
+ gem.files = (Dir['**/*','.gitignore'] - ignores).reject {|f| !File.file?(f) }
+ gem.test_files = (Dir['spec/**/*','.gitignore'] - ignores).reject {|f| !File.file?(f) }
+ # gem.executables = Dir['bin/*'].map { |f| File.basename(f) }
+ gem.require_paths = ['lib']
end