Skip to content

Commit

Permalink
remove ruby 1.9.3 support; add ruby 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eheydrick committed Jun 14, 2016
1 parent f2e0497 commit 3a5a10f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 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-network-checks
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,27 @@ This project adheres to [Semantic Versioning](http://semver.org/).
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)

## [Unreleased]
### Fixed
- check-whois-domain-expiration-multi.rb: Handle whois errors better by retrying failed lookupsE
- Use Timeout.timeout not deprecated Object#timeout

### Added
- check-whois-domain-expiration-multi.rb: Add timeout option
- Support for Ruby 2.3.0

### Removed
- Support for Ruby 1.9.3

### Changed
- Update to Rubocop 0.40 and cleanup

## [0.2.4] - 2016-04-02
### Fixed
- metrics-ping.rb: Fix error when a host can't be pinged. Convert to a proper metrics check.
- check-whois-domain-expiration-multi.rb: Handle whois errors better by retrying failed lookups

### Added
- basic check for netfilter conntrack
- Option for newline character in write string for check-banner
- check-whois-domain-expiration-multi.rb: Add timeout option

## [0.1.4] - 2016-01-22
### Added
Expand Down
8 changes: 1 addition & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ 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
args = [:spec, :make_bin_executable, :yard, :rubocop, :check_binstubs]

YARD::Rake::YardocTask.new do |t|
OTHER_PATHS = %w().freeze
Expand Down
10 changes: 3 additions & 7 deletions sensu-plugins-network-checks.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-network-checks'
else
require_relative 'lib/sensu-plugins-network-checks'
end
require_relative 'lib/sensu-plugins-network-checks'

Gem::Specification.new do |s|
s.authors = ['Sensu-Plugins and contributors']
Expand All @@ -20,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-network-checks'
s.license = 'MIT'
s.metadata = { 'maintainer' => '@rmc3',
s.metadata = { 'maintainer' => 'sensu-plugin',
'development_status' => 'active',
'production_status' => 'unstable - testing recommended',
'release_draft' => 'false',
Expand All @@ -29,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.0.0'
s.summary = 'Sensu plugins for checking network hardware, connections, and data'
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.version = SensuPluginsNetworkChecks::Version::VER_STRING
Expand Down

0 comments on commit 3a5a10f

Please sign in to comment.