Skip to content

Commit

Permalink
prep for 3.0.0 release
Browse files Browse the repository at this point in the history
Changes made post acceptance:
- dropped ruby `< 2.3` support
- updated default for `decimal_places` in `metrics-http-json-deep.rb` from `4` to `10` to have a more storage friendly default
- updated dep of `sensu-plugin` to 2.x

Signed-off-by: Ben Abrams <[email protected]>
  • Loading branch information
majormoses committed Aug 19, 2018
1 parent 63d8232 commit df529e5
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 25 deletions.
6 changes: 0 additions & 6 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ platforms:
- name: debian-8

suites:
- name: ruby-21
driver:
image: ruby:2.1-slim
- name: ruby-22
driver:
image: ruby:2.2-slim
- name: ruby-230
driver:
image: ruby:2.3.0-slim
Expand Down
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ before_install:
install:
- bundle install
rvm:
- 2.1
- 2.2
- 2.3.0
- 2.4.1
notifications:
Expand All @@ -31,8 +29,6 @@ deploy:
on:
tags: true
all_branches: true
rvm: 2.1
rvm: 2.2
rvm: 2.3.0
rvm: 2.4.1
repo: sensu-plugins/sensu-plugins-http
Expand Down
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ This project adheres to [Semantic Versioning](http://semver.org/).
This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)

## [Unreleased]



## [3.0.0] - 2018-08-19
### Breaking Changes
- removed ruby `< 2.3` support as they are EOL per our support [policy](https://github.com/sensu/sensu-docs/blob/master/content/plugins/1.0/faq.md#what-is-the-policy-on-supporting-end-of-lifeeol-ruby-versions) (@majormoses)
- bumped dependency of `sensu-plugin` to 2.x you can read about it [here](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v145---2017-03-07) (@majormoses)

### Changed
- `metrics-http-json-deep.rb`: add option `--floats` to control the number of decimal places (default to 10), for use with `--number`
- `metrics-http-json-deep.rb`: add option `--floats` to control the number of decimal places (default to 4), for use with `--number` (@CosmoPennypacker)

## [2.11.0] - 2018-06-04
### Added
Expand Down Expand Up @@ -200,7 +208,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
### Added
- Initial release

[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.11.0...HEAD
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-http/compare/3.0.0...HEAD
[3.0.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.11.0...3.0.0
[2.11.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.10.0...2.11.0
[2.10.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.9.0...2.10.0
[2.9.0]: https://github.com/sensu-plugins/sensu-plugins-http/compare/2.8.4...2.9.0
Expand Down
2 changes: 1 addition & 1 deletion bin/metrics-http-json-deep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class JsonDeepMetrics < Sensu::Plugin::Metric::CLI::Graphite
short: '-f DECIMAL_PLACES',
long: '--floats DECIMAL_PLACES',
proc: proc(&:to_i),
default: 10
default: 4

def deep_value(hash, scheme = '')
hash.each do |key, value|
Expand Down
4 changes: 2 additions & 2 deletions lib/sensu-plugins-http/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

module SensuPluginsHttp
module Version
MAJOR = 2
MINOR = 11
MAJOR = 3
MINOR = 0
PATCH = 0

VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
Expand Down
4 changes: 2 additions & 2 deletions sensu-plugins-http.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ Gem::Specification.new do |s| # rubocop:disable Metrics/BlockLength
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 = '>= 2.1.0'
s.required_ruby_version = '>= 2.3.0'
s.summary = 'Sensu plugins for various http monitors and metrics'
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.version = SensuPluginsHttp::Version::VER_STRING

s.add_runtime_dependency 'sensu-plugin', '~> 1.2'
s.add_runtime_dependency 'sensu-plugin', '~> 2.5'

s.add_runtime_dependency 'aws-sdk', '~> 2.3'
s.add_runtime_dependency 'rest-client', '~> 2.0.2'
Expand Down
4 changes: 0 additions & 4 deletions test/integration/ruby-21/serverspec/default_spec.rb

This file was deleted.

4 changes: 0 additions & 4 deletions test/integration/ruby-22/serverspec/default_spec.rb

This file was deleted.

0 comments on commit df529e5

Please sign in to comment.