Permalink
Browse files

Setup gemspec and Gemfile

  • Loading branch information...
1 parent b6eb8ce commit ad018db8083ff1f8b2b85a13109e40c67a7316d8 @dplummer dplummer committed Feb 24, 2012
Showing with 46 additions and 25 deletions.
  1. +17 −1 .gitignore
  2. +4 −0 Gemfile
  3. +3 −1 LICENSE
  4. +2 −23 Rakefile
  5. +20 −0 redis-session-store.gemspec
View
@@ -1 +1,17 @@
-pkg
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
View
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in redis-session-store.gemspec
+gemspec
View
@@ -1,5 +1,7 @@
Copyright (c) 2009 Mathias Meyer
+MIT License
+
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
@@ -17,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -1,23 +1,2 @@
-require 'rubygems'
-require 'rake/gempackagetask'
-require 'rubygems/specification'
-
-spec = Gem::Specification.new do |s|
- s.name = 'redis-session-store'
- s.version = '0.1.7'
- s.platform = Gem::Platform::RUBY
- s.has_rdoc = true
- s.extra_rdoc_files = ["LICENSE"]
- s.summary = "A drop-in replacement for e.g. MemCacheStore to store Rails sessions (and Rails sessions only) in Redis."
- s.description = s.summary
- s.authors = "Mathias Meyer"
- s.email = "meyer@paperplanes.de"
- s.homepage = "http://github.com/mattmatt/redis-session-store"
- s.add_dependency "redis"
- s.require_path = 'lib'
- s.files = %w(README.md Rakefile) + Dir.glob("{lib}/**/*")
-end
-
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.gem_spec = spec
-end
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
@@ -0,0 +1,20 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |gem|
+
+ gem.authors = ["Mathias Meyer", "Donald Plummer"]
+ gem.email = ["meyer@paperplanes.de", "donald@cideasphere.com"]
+ gem.summary = "A drop-in replacement for e.g. MemCacheStore to store Rails sessions (and Rails sessions only) in Redis."
+ gem.description = gem.summary
+ gem.homepage = "http://github.com/crystalcommerce/redis-session-store"
+
+ gem.has_rdoc = true
+ gem.extra_rdoc_files = ["LICENSE"]
+
+ gem.files = %w(README.md Rakefile) + ['lib/redis-session-store.rb']
+ gem.name = "redis-session-store"
+ gem.require_paths = ["lib"]
+ gem.version = '0.1.7'
+
+ gem.add_dependency "redis"
+end

0 comments on commit ad018db

Please sign in to comment.