Skip to content

Commit

Permalink
Setup gemspec and Gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dplummer committed Feb 24, 2012
1 parent b6eb8ce commit ad018db
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 25 deletions.
18 changes: 17 additions & 1 deletion .gitignore
@@ -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
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in redis-session-store.gemspec
gemspec
4 changes: 3 additions & 1 deletion LICENSE
@@ -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
Expand All @@ -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.
25 changes: 2 additions & 23 deletions Rakefile
@@ -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"
20 changes: 20 additions & 0 deletions redis-session-store.gemspec
@@ -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.