diff --git a/.kitchen.yml b/.kitchen.yml index d5cf498..7d7fdc6 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -8,8 +8,6 @@ driver: provision_command: - curl -sSL https://get.docker.com/ | sh - - provisioner: name: shell data_path: . @@ -26,15 +24,6 @@ platforms: - name: debian-8 suites: - - name: ruby-20 - driver: - image: ruby:2.0-slim - - 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 diff --git a/.travis.yml b/.travis.yml index b611ffd..008c160 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,27 +1,24 @@ language: ruby cache: -- bundler + - bundler before_install: - - gem update bundler + - gem install bundler -v 2.1 install: -- bundle install + - bundle install rvm: -- 2.0 -- 2.1 -- 2.2 -- 2.3.0 -- 2.4.1 + - 2.3.0 + - 2.4.1 notifications: email: recipients: - - sensu-plugin@sensu-plugins.io + - sensu-plugin@sensu-plugins.io on_success: change on_failure: always script: -- bundle exec rake quick -- bundle exec rake kitchen:ruby-`echo $TRAVIS_RUBY_VERSION | sed -e "s/\.//g"`-debian-8 -- gem build sensu-plugins-docker.gemspec -- gem install sensu-plugins-docker-*.gem + - bundle exec rake quick + - bundle exec rake kitchen:ruby-`echo $TRAVIS_RUBY_VERSION | sed -e "s/\.//g"`-debian-8 + - gem build sensu-plugins-docker.gemspec + - gem install sensu-plugins-docker-*.gem deploy: provider: rubygems api_key: @@ -30,9 +27,5 @@ deploy: on: tags: true all_branches: true - rvm: 2.0 - rvm: 2.1 - rvm: 2.2 - rvm: 2.3.0 rvm: 2.4.1 repo: sensu-plugins/sensu-plugins-docker diff --git a/CHANGELOG.md b/CHANGELOG.md index 8267db9..0d3d7b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/) ## [4.0.0] - 2020-04-09 ### Breaking Changes -- bumped `sensu-plugin` dependency from `~> 2.0` to `~> 4.0` please consult the changelog for additional details. The notable breaking change [is](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v145---2017-03-07) +- bumped `sensu-plugin` dependency from `~> 2.0` to `~> 4.0` please consult the changelog for additional details. The notable breaking change [is](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v145---2017-03-07) (@majormoses) +- dopped support for ruby `< 2.3` (@majormoses) ## [3.2.0] - 2018-11-22 ### Fixed diff --git a/sensu-plugins-docker.gemspec b/sensu-plugins-docker.gemspec index 1bec09b..9b6f308 100644 --- a/sensu-plugins-docker.gemspec +++ b/sensu-plugins-docker.gemspec @@ -25,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 = '>= 2.0.0' + s.required_ruby_version = '>= 2.3.0' s.summary = 'Sensu plugins for docker' s.test_files = s.files.grep(%r{^(test|spec|features)/}) s.version = SensuPluginsDocker::Version::VER_STRING @@ -34,7 +34,7 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'sys-proctable', '0.9.8' s.add_runtime_dependency 'net_http_unix', '0.2.2' - s.add_development_dependency 'bundler', '~> 1.7' + s.add_development_dependency 'bundler', '~> 2.1' s.add_development_dependency 'codeclimate-test-reporter', '~> 0.4' s.add_development_dependency 'github-markup', '~> 1.3' s.add_development_dependency 'kitchen-docker', '~> 2.6' diff --git a/test/integration/ruby-21/serverspec/default_spec.rb b/test/integration/ruby-21/serverspec/default_spec.rb deleted file mode 100644 index 989a033..0000000 --- a/test/integration/ruby-21/serverspec/default_spec.rb +++ /dev/null @@ -1,3 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' diff --git a/test/integration/ruby-22/serverspec/default_spec.rb b/test/integration/ruby-22/serverspec/default_spec.rb deleted file mode 100644 index 989a033..0000000 --- a/test/integration/ruby-22/serverspec/default_spec.rb +++ /dev/null @@ -1,3 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper'