Navigation Menu

Skip to content

Commit

Permalink
Remove Ruby 1.9.3 support; add 2.3 and 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
eheydrick committed Jun 6, 2017
1 parent d0e0818 commit 2707eb4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 21 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -7,6 +7,8 @@ rvm:
- 2.0
- 2.1
- 2.2
- 2.3.0
- 2.4.1
notifications:
email:
recipients:
Expand All @@ -29,4 +31,6 @@ deploy:
rvm: 2.0
rvm: 2.1
rvm: 2.2
rvm: 2.3.0
rvm: 2.4.1
repo: sensu-plugins/sensu-plugins-windows
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -20,6 +20,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
- Windows Uptime Metric written using only Powershell under bin/powershell.
- Add support for ignoring disk checks by disk label (via a regular expression) (@manul7)
- Add check-windows-processor-queue-length (@andyroyle)
- Add testing on Ruby 2.3 and 2.4.1 (@eheydrick)

### Changed
- Corrected grammer issues and clarified comments in all existing Ruby-based Windows Check and Metric files.
Expand All @@ -30,6 +31,9 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
### Fixed
- Fixed numerous grammar issues in CHANGELOG.md file.

### Removed
- Support for Ruby < 2 (@eheydrick)

## [0.0.10] - 2016-02-16
### Fixed
- Check-Windows-disk.rb removed system volumes from list
Expand Down
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]
13 changes: 2 additions & 11 deletions sensu-plugins-windows.gemspec
Expand Up @@ -2,18 +2,10 @@ 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-windows'
else
require_relative 'lib/sensu-plugins-windows'
end

# pvt_key = 'certs/gem-private_key.pem'
require_relative 'lib/sensu-plugins-windows'

Gem::Specification.new do |s|
s.authors = ['Sensu-Plugins and contributors']

s.date = Date.today.to_s
s.description = 'Sensu plugins for Windows'
s.email = '<sensu-users@googlegroups.com>'
Expand All @@ -30,8 +22,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.signing_key = File.expand_path(pvt_key) if $PROGRAM_NAME.end_with?('gem')
s.required_ruby_version = '>= 2.0.0'
s.summary = 'Sensu plugins for Windows'
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.version = SensuPluginsWindows::Version::VER_STRING
Expand Down

0 comments on commit 2707eb4

Please sign in to comment.