Skip to content

Commit fb37ae1

Browse files
committed
Remove Ruby 1.9.3 support; add 2.3.0
1 parent ea7422e commit fb37ae1

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ cache:
44
install:
55
- bundle install
66
rvm:
7-
- 1.9.3
87
- 2.0
98
- 2.1
109
- 2.2
10+
- 2.3.0
1111
notifications:
1212
email:
1313
recipients:
@@ -26,8 +26,8 @@ deploy:
2626
on:
2727
tags: true
2828
all_branches: true
29-
rvm: 1.9.3
3029
rvm: 2.0
3130
rvm: 2.1
3231
rvm: 2.2
32+
rvm: 2.3.0
3333
repo: sensu-plugins/sensu-plugins-uchiwa

Rakefile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@ require 'rubocop/rake_task'
66
require 'yard'
77
require 'yard/rake/yardoc_task'
88

9-
desc 'Don\'t run Rubocop for unsupported versions'
10-
begin
11-
args = if RUBY_VERSION >= '2.0.0'
12-
[:spec, :make_bin_executable, :yard, :rubocop, :check_binstubs]
13-
else
14-
[:spec, :make_bin_executable, :yard]
15-
end
16-
end
17-
189
YARD::Rake::YardocTask.new do |t|
1910
OTHER_PATHS = %w().freeze
2011
t.files = ['lib/**/*.rb', 'bin/**/*.rb', OTHER_PATHS]
@@ -44,4 +35,4 @@ task :check_binstubs do
4435
end
4536
end
4637

47-
task default: args
38+
task default: [:spec, :make_bin_executable, :yard, :rubocop, :check_binstubs]

sensu-plugins-uchiwa.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-uchiwa'
8-
else
9-
require_relative 'lib/sensu-plugins-uchiwa'
10-
end
5+
require_relative 'lib/sensu-plugins-uchiwa'
116

127
Gem::Specification.new do |s|
138
s.authors = ['Sensu-Plugins and contributors']
@@ -28,7 +23,7 @@ Gem::Specification.new do |s|
2823
s.platform = Gem::Platform::RUBY
2924
s.post_install_message = 'You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu'
3025
s.require_paths = ['lib']
31-
s.required_ruby_version = '>= 1.9.3'
26+
s.required_ruby_version = '>= 2.0.0'
3227

3328
s.summary = 'Sensu plugins for uchiwa'
3429
s.test_files = s.files.grep(%r{^(test|spec|features)/})

0 commit comments

Comments
 (0)