From 74a7ffaa2b2cf87743ce5666a5cf141fb40c44d5 Mon Sep 17 00:00:00 2001 From: Luca Guidi Date: Wed, 28 Aug 2013 16:15:09 +0200 Subject: [PATCH] Enable CI --- .travis.yml | 14 ++++++++++++++ Gemfile | 4 +++- README.md | 8 ++++++-- 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1002043 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: ruby +script: 'bundle exec rake' +rvm: + - 1.9.3 + - 2.0.0 + - ruby-head + - rbx-19mode + - jruby-19mode + - jruby-head + +matrix: + allow_failures: + - rvm: jruby-head + - rvm: ruby-head diff --git a/Gemfile b/Gemfile index 95a5f64..67c9ac0 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,6 @@ source 'https://rubygems.org' gemspec -gem 'redis-store', '~> 1.1.0', path: '../redis-store' +if ::File.directory?(gem_path = '../redis-store') + gem 'redis-store', '~> 1.1.0', path: gem_path +end diff --git a/README.md b/README.md index b3da973..eaff2ca 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ __`redis-rack`__ provides a Redis backed session store __Rack__. See the main [r gem 'redis-rack' ``` -### Usage +## Usage If you are using redis-store with Rails, consider using the [redis-rails gem](https://github.com/redis-store/redis-rails) instead. For standalone usage: @@ -33,6 +33,10 @@ bundle exec rake If you are on **Snow Leopard** you have to run `env ARCHFLAGS="-arch x86_64" bundle exec rake` +## Status + +[![Gem Version](https://badge.fury.io/rb/redis-rack.png)](http://badge.fury.io/rb/redis-rack) [![Build Status](https://secure.travis-ci.org/redis-store/redis-rack.png?branch=master)](http://travis-ci.org/jodosha/redis-rack?branch=master) [![Code Climate](https://codeclimate.com/github/jodosha/redis-store.png)](https://codeclimate.com/github/redis-store/redis-rack) + ## Copyright -(c) 2009 - 2013 Luca Guidi - [http://lucaguidi.com](http://lucaguidi.com), released under the MIT license +2009 - 2013 Luca Guidi - [http://lucaguidi.com](http://lucaguidi.com), released under the MIT license