Skip to content

Commit

Permalink
Remove Ruby 1.9.3 support; add 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eheydrick committed Nov 12, 2016
1 parent ea7422e commit fb37ae1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 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-uchiwa
11 changes: 1 addition & 10 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ require 'rubocop/rake_task'
require 'yard'
require 'yard/rake/yardoc_task'

desc 'Don\'t run Rubocop for unsupported versions'
begin
args = if RUBY_VERSION >= '2.0.0'
[:spec, :make_bin_executable, :yard, :rubocop, :check_binstubs]
else
[:spec, :make_bin_executable, :yard]
end
end

YARD::Rake::YardocTask.new do |t|
OTHER_PATHS = %w().freeze
t.files = ['lib/**/*.rb', 'bin/**/*.rb', OTHER_PATHS]
Expand Down Expand Up @@ -44,4 +35,4 @@ task :check_binstubs do
end
end

task default: args
task default: [:spec, :make_bin_executable, :yard, :rubocop, :check_binstubs]
9 changes: 2 additions & 7 deletions sensu-plugins-uchiwa.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'date'

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

Gem::Specification.new do |s|
s.authors = ['Sensu-Plugins and contributors']
Expand All @@ -28,7 +23,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 uchiwa'
s.test_files = s.files.grep(%r{^(test|spec|features)/})
Expand Down

0 comments on commit fb37ae1

Please sign in to comment.