Skip to content

Commit

Permalink
Use Appraisal to test on Rack::Cache 1.6 and 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Scott committed Apr 13, 2017
1 parent 5aa6444 commit fa04805
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Gemfile.lock
*.gem
tmp/
gemfiles/vendor
gemfiles/*.lock
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ matrix:
allow_failures:
- rvm: jruby-head
- rvm: ruby-head
# Put this in your .travis.yml
gemfile:
- gemfiles/rack_cache_1.6.gemfile
- gemfiles/rack_cache_1.7.gemfile
7 changes: 7 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
appraise 'rack-cache-1.6' do
gem 'rack-cache', '~> 1.6'
end

appraise 'rack-cache-1.7' do
gem 'rack-cache', '~> 1.7'
end
16 changes: 16 additions & 0 deletions bin/appraisal
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env ruby
#
# This file was generated by Bundler.
#
# The application 'appraisal' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require 'rubygems'
require 'bundler/setup'

load Gem.bin_path('appraisal', 'appraisal')
7 changes: 7 additions & 0 deletions gemfiles/rack_cache_1.6.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rack-cache", "~> 1.6"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/rack_cache_1.7.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rack-cache", "~> 1.7"

gemspec :path => "../"
2 changes: 1 addition & 1 deletion lib/redis-rack-cache/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Redis
module Rack
module Cache
VERSION = '2.0.2.pre'
VERSION = '2.0.2'
end
end
end
9 changes: 5 additions & 4 deletions redis-rack-cache.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Gem::Specification.new do |s|
s.authors = ['Luca Guidi']
s.email = ['me@lucaguidi.com']
s.homepage = 'http://redis-store.org/redis-rack-cache'
s.summary = %q{Redis for Rack::Cache}
s.description = %q{Redis for Rack::Cache}
s.summary = %q{A Redis backend store for Rack::Cache}
s.description = s.summary
s.license = 'MIT'

s.rubyforge_project = 'redis-rack-cache'
Expand All @@ -19,12 +19,13 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ['lib']

s.add_dependency 'redis-store', '< 1.4', '>= 1.2'
s.add_dependency 'rack-cache', '< 1.7', '>= 1.6'
s.add_dependency 'redis-store', '>= 1.2', '< 2'
s.add_dependency 'rack-cache', '>= 1.6', '< 2'

s.add_development_dependency 'rake', '~> 10'
s.add_development_dependency 'bundler', '~> 1.3'
s.add_development_dependency 'mocha', '~> 0.14.0'
s.add_development_dependency 'minitest', '~> 5'
s.add_development_dependency 'redis-store-testing'
s.add_development_dependency 'appraisal'
end

0 comments on commit fa04805

Please sign in to comment.