Skip to content

Commit

Permalink
drop ruby 1.9.3 support; add ruby 2.3.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
eheydrick committed May 24, 2016
1 parent f6345ac commit 7cc91d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ cache:
install:
- bundle install
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
- 2.3.0
notifications:
email:
recipients:
Expand All @@ -26,8 +26,8 @@ deploy:
on:
tags: true
all_branches: true
rvm: 1.9.3
rvm: 2.0
rvm: 2.1
rvm: 2.2
rvm: 2.3.0
repo: sensu-plugins/sensu-plugins-redis
10 changes: 3 additions & 7 deletions sensu-plugins-redis.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'date'

if RUBY_VERSION < '2.0.0'
require 'sensu-plugins-redis'
else
require_relative 'lib/sensu-plugins-redis'
end
require_relative 'lib/sensu-plugins-redis'

Gem::Specification.new do |s|
s.authors = ['Sensu-Plugins and contributors']
Expand All @@ -23,7 +19,7 @@ Gem::Specification.new do |s|
s.executables = Dir.glob('bin/**/*.rb').map { |file| File.basename(file) }
s.homepage = 'https://github.com/sensu-plugins/sensu-plugins-redis'
s.license = 'MIT'
s.metadata = { 'maintainer' => '@mattyjones',
s.metadata = { 'maintainer' => 'sensu-plugin',
'development_status' => 'active',
'production_status' => 'unstable - testing recommended',
'release_draft' => 'false',
Expand All @@ -32,7 +28,7 @@ Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.post_install_message = 'You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu'
s.require_paths = ['lib']
s.required_ruby_version = '>= 1.9.3'
s.required_ruby_version = '>= 2.0.0'

s.summary = 'Sensu plugins for working with redis'
s.test_files = s.files.grep(%r{^(test|spec|features)/})
Expand Down

0 comments on commit 7cc91d5

Please sign in to comment.