diff --git a/.travis.yml b/.travis.yml index c9ab857..2176af3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,17 @@ language: ruby -rvm: - - 1.9.3 - - 2.0.0 - - 2.1.7 - - 2.2.4 - - 2.3.0 services: - redis-server before_install: gem install bundler -v 1.10.6 install: bundle install -j 4 --retry 3 script: - bin/rspec + +matrix: + include: + - rvm: "1.9.3" + gemfile: Gemfile-old-ruby + - rvm: "2.0.0" + - rvm: "2.1.7" + - rvm: "2.2.4" + - rvm: "2.3.0" + - rvm: "2.4.0" diff --git a/Gemfile-old-ruby b/Gemfile-old-ruby new file mode 100644 index 0000000..cd62d0f --- /dev/null +++ b/Gemfile-old-ruby @@ -0,0 +1,6 @@ +source 'https://rubygems.org' + +gem 'rack', '~> 1.6.8' + +# Specify your gem's dependencies in heartcheck-resque.gemspec +gemspec diff --git a/README.md b/README.md index 40d91c9..0150a8e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Build Status](https://travis-ci.org/locaweb/heartcheck-resque.svg)](https://travis-ci.org/locaweb/heartcheck-resque) [![Code Climate](https://codeclimate.com/github/locaweb/heartcheck-resque/badges/gpa.svg)](https://codeclimate.com/github/locaweb/heartcheck-resque) -##A plugin to check resque connection with [heartcheck](https://github.com/locaweb/heartcheck). +##A plugin to check resque connection and error amount with [heartcheck](https://github.com/locaweb/heartcheck). ## Installation @@ -28,7 +28,7 @@ You can check any resque connection that there's in your app. ```ruby Heartcheck.setup do |config| config.add :resque do |c| - c.add_service(failures_limit: 0) + c.add_service(failures_limit: 10) end end ``` diff --git a/heartcheck-resque.gemspec b/heartcheck-resque.gemspec index 9b08d32..97f152a 100644 --- a/heartcheck-resque.gemspec +++ b/heartcheck-resque.gemspec @@ -23,6 +23,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rubocop', '~> 0.27.0', '>= 0.27.1' spec.add_development_dependency 'pry-nav', '~> 0.2.0', '>= 0.2.4' - spec.add_dependency 'heartcheck', '~> 1.0.0', '>= 1.0.0' + spec.add_dependency 'heartcheck', '~> 1.0', '>= 1.0.0' spec.add_dependency 'resque', '~> 1.0' end diff --git a/lib/heartcheck/resque/version.rb b/lib/heartcheck/resque/version.rb index d7e6253..078e810 100644 --- a/lib/heartcheck/resque/version.rb +++ b/lib/heartcheck/resque/version.rb @@ -1,5 +1,5 @@ module Heartcheck module Resque - VERSION = '0.0.1' + VERSION = '0.0.2' end end