Skip to content

Commit

Permalink
drop Ruby < 2.1; add 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eheydrick committed Jan 18, 2017
1 parent c20a5df commit 9828e21
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 22 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Expand Up @@ -4,10 +4,9 @@ cache:
install:
- bundle install
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
- 2.3.0
notifications:
email:
recipients:
Expand All @@ -26,8 +25,7 @@ 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-memory-checks
11 changes: 1 addition & 10 deletions Rakefile
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]
11 changes: 3 additions & 8 deletions sensu-plugins-memory-checks.gemspec
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-memory-checks'
else
require_relative 'lib/sensu-plugins-memory-checks'
end
require_relative 'lib/sensu-plugins-memory-checks'

Gem::Specification.new do |s|
s.authors = ['Sensu Plugins and contributors']
Expand All @@ -21,7 +16,7 @@ Gem::Specification.new do |s|
s.files = Dir.glob('{bin,lib}/**/*') + %w(LICENSE README.md CHANGELOG.md)
s.homepage = 'https://github.com/sensu-plugins/sensu-plugins-memory-checks'
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 @@ -30,7 +25,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.1.0'
s.summary = 'Sensu plugins for checking memory'
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.version = SensuPluginsMemoryChecks::Version::VER_STRING
Expand Down

0 comments on commit 9828e21

Please sign in to comment.