Skip to content

Commit 90ac91c

Browse files
committed
add Ruby 2.3.0 support; remove 1.9.3 and 2.0
1 parent aed85d0 commit 90ac91c

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ cache:
44
install:
55
- bundle install
66
rvm:
7-
- 1.9.3
8-
- 2.0
97
- 2.1
108
- 2.2
9+
- 2.3.0
1110
notifications:
1211
email:
1312
recipients:
@@ -26,8 +25,7 @@ deploy:
2625
on:
2726
tags: true
2827
all_branches: true
29-
rvm: 1.9.3
30-
rvm: 2.0
3128
rvm: 2.1
3229
rvm: 2.2
30+
rvm: 2.3.0
3331
repo: sensu-plugins/sensu-plugins-postgres

sensu-plugins-postgres.gemspec

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@ lib = File.expand_path('../lib', __FILE__)
22
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
33

44
require 'date'
5-
6-
if RUBY_VERSION < '2.0.0'
7-
require 'sensu-plugins-postgres'
8-
else
9-
require_relative 'lib/sensu-plugins-postgres'
10-
end
5+
require_relative 'lib/sensu-plugins-postgres'
116

127
Gem::Specification.new do |s|
138
s.authors = ['Sensu-Plugins and contributors']
@@ -33,7 +28,7 @@ Gem::Specification.new do |s|
3328
s.platform = Gem::Platform::RUBY
3429
s.post_install_message = 'You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu'
3530
s.require_paths = ['lib']
36-
s.required_ruby_version = '>= 1.9.3'
31+
s.required_ruby_version = '>= 2.1.0'
3732

3833
s.summary = 'Sensu plugins for postgres'
3934
s.test_files = s.files.grep(%r{^(test|spec|features)/})

0 commit comments

Comments
 (0)