Skip to content

Commit

Permalink
Drop Ruby 1.9.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasriley authored and majormoses committed Jul 15, 2017
1 parent 81147a5 commit eb5bcd7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)

## [Unreleased]
### Breaking Changes
- Drop Ruby 1.9.3 support

### [1.1.0] - 2017-07-10
### Added
Expand Down
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 @@ -45,4 +36,4 @@ task :check_binstubs do
end
end

task default: args
task default: [:spec, :make_bin_executable, :yard, :rubocop, :check_binstubs]
8 changes: 2 additions & 6 deletions sensu-plugins-mesos.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-mesos'
else
require_relative 'lib/sensu-plugins-mesos'
end
require_relative 'lib/sensu-plugins-mesos'

# pvt_key = '~/.ssh/gem-private_key.pem'

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.signing_key = File.expand_path(pvt_key) if $PROGRAM_NAME =~ /gem\z/
s.summary = 'Sensu plugins for checking mesos'
s.test_files = s.files.grep(%r{^(test|spec|features)/})
Expand Down

0 comments on commit eb5bcd7

Please sign in to comment.