From 958bd0204a7b90d867430eb33af085b3d8c135ae Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 11:13:07 +0100 Subject: [PATCH 01/32] Create .bonsai.yml --- .bonsai.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .bonsai.yml diff --git a/.bonsai.yml b/.bonsai.yml new file mode 100644 index 0000000..4827e2d --- /dev/null +++ b/.bonsai.yml @@ -0,0 +1,10 @@ +--- +description: "#{repo}" +builds: +- platform: "linux" + arch: "amd64" + asset_filename: "#{repo}_#{version}_linux_amd64.tar.gz" + sha_filename: "#{repo}_#{version}_sha512-checksums.txt" + filter: + - "entity.system.os == 'linux'" + - "entity.system.arch == 'amd64'" From 385879482f5a637199dce593060cc56d89c77acf Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 12:31:06 +0100 Subject: [PATCH 02/32] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca3a99b..83c1724 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/) ### Changed - update location for our changelog format (@majormoses) +## [1.1.1] - 2020-02-07 +### Added +- added .bonsai.yml for bonsai.sensu.io compatibility + ## [1.1.0] - 2017-05-30 ### Added - check-ftp.rb: add support for implicit FTPS. (@swibowo) From 5a19e3abb84d314b26626a979c823b13443b9e5f Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 12:33:12 +0100 Subject: [PATCH 03/32] Update version.rb --- lib/sensu-plugins-ftp/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sensu-plugins-ftp/version.rb b/lib/sensu-plugins-ftp/version.rb index 838e50b..f7d69d3 100644 --- a/lib/sensu-plugins-ftp/version.rb +++ b/lib/sensu-plugins-ftp/version.rb @@ -2,7 +2,7 @@ module SensuPluginsFtp module Version MAJOR = 1 MINOR = 1 - PATCH = 0 + PATCH = 1 VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.') end From 5b97e42a91ff6ab9407d27c18263f50b84df8ed0 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 13:53:09 +0100 Subject: [PATCH 04/32] Update sensu-plugins-ftp.gemspec --- sensu-plugins-ftp.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensu-plugins-ftp.gemspec b/sensu-plugins-ftp.gemspec index b91234b..97211c8 100644 --- a/sensu-plugins-ftp.gemspec +++ b/sensu-plugins-ftp.gemspec @@ -29,7 +29,7 @@ Gem::Specification.new do |s| s.test_files = s.files.grep(%r{^(test|spec|features)/}) s.version = SensuPluginsFtp::Version::VER_STRING - s.add_runtime_dependency 'sensu-plugin', '~> 1.2' + s.add_runtime_dependency 'sensu-plugin', '~> 4.0' s.add_runtime_dependency 'double-bag-ftps', '~> 0.1.3' s.add_development_dependency 'bundler', '~> 1.7' From 16ab03844b64600b81db41eb0f79d7e6c6a59aab Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 13:58:08 +0100 Subject: [PATCH 05/32] Update .travis.yml --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 96c8f80..b0fd9b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,3 +33,10 @@ deploy: rvm: 2.3.0 rvm: 2.4.1 repo: sensu-plugins/sensu-plugins-ftp + - provider: script + script: bonsai/ruby-runtime/travis-build-bonsai-assets.sh sensu-plugins-ftp + skip_cleanup: true + on: + tags: true + all_branches: true + rvm: 2.4.1 From ffadf1d5de948d1fc9f9cc57ae632bfb62f6c236 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 14:05:12 +0100 Subject: [PATCH 06/32] Update sensu-plugins-ftp.gemspec --- sensu-plugins-ftp.gemspec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sensu-plugins-ftp.gemspec b/sensu-plugins-ftp.gemspec index 97211c8..1ab1250 100644 --- a/sensu-plugins-ftp.gemspec +++ b/sensu-plugins-ftp.gemspec @@ -29,15 +29,15 @@ Gem::Specification.new do |s| s.test_files = s.files.grep(%r{^(test|spec|features)/}) s.version = SensuPluginsFtp::Version::VER_STRING - s.add_runtime_dependency 'sensu-plugin', '~> 4.0' + s.add_runtime_dependency 'sensu-plugin', '>= 4.0', '<5.0' s.add_runtime_dependency 'double-bag-ftps', '~> 0.1.3' - s.add_development_dependency 'bundler', '~> 1.7' - s.add_development_dependency 'codeclimate-test-reporter', '~> 0.4' + s.add_development_dependency 'bundler', '~> 2.1' + s.add_development_dependency 'codeclimate-test-reporter', '~> 1.0' s.add_development_dependency 'github-markup', '~> 3.0' s.add_development_dependency 'pry', '~> 0.10' - s.add_development_dependency 'rubocop', '~> 0.40.0' - s.add_development_dependency 'rspec', '~> 3.1' + s.add_development_dependency 'rubocop', '~> 0.50.0' + s.add_development_dependency 'rspec', '~> 3.4' s.add_development_dependency 'rake', '~> 12.3' s.add_development_dependency 'redcarpet', '~> 3.2' s.add_development_dependency 'yard', '~> 0.8' From d083fb3d6210a0f4de5f72450ab3692152d23048 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 14:10:14 +0100 Subject: [PATCH 07/32] Update .travis.yml --- .travis.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index 96c8f80..8c9a5e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,6 @@ cache: install: - bundle install rvm: -- 2.0 -- 2.1 -- 2.2 - 2.3.0 - 2.4.1 notifications: @@ -20,16 +17,19 @@ script: - gem build sensu-plugins-ftp.gemspec - gem install sensu-plugins-ftp-*.gem deploy: - provider: rubygems - api_key: - secure: v95V8Ti3/Ti38MFl8bYYJLv1M6IQ8XDr4mRbOCc4bsSBQJeR7vxlYqHLlymteDWdS26KkP6TBYJtMtoeGfuEYRRYoTFJNf23Tt75Qo6rGVxBJqjwhMkR+Q5c/3lYS84glryX9suZ17MXE2qOBLOBRsR1D4TemkC/IqysyQ3O6DA= - gem: sensu-plugins-ftp - 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-ftp + - provider: script + script: chmod +x bonsai/ruby-runtime/travis-build-ruby-plugin-assets.sh && bonsai/ruby-runtime/travis-build-ruby-plugin-assets.sh sensu-plugins-ftp + skip_cleanup: true + on: + tags: true + all_branches: true + rvm: 2.4.1 + - provider: rubygems + api_key: + secure: v95V8Ti3/Ti38MFl8bYYJLv1M6IQ8XDr4mRbOCc4bsSBQJeR7vxlYqHLlymteDWdS26KkP6TBYJtMtoeGfuEYRRYoTFJNf23Tt75Qo6rGVxBJqjwhMkR+Q5c/3lYS84glryX9suZ17MXE2qOBLOBRsR1D4TemkC/IqysyQ3O6DA= + gem: sensu-plugins-ftp + on: + tags: true + all_branches: true + rvm: 2.4.1 + repo: sensu-plugins/sensu-plugins-ftp From 99c250362b4fdce8ef72569e03495b0a38241eca Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 14:19:27 +0100 Subject: [PATCH 08/32] Update sensu-plugins-ftp.gemspec --- sensu-plugins-ftp.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensu-plugins-ftp.gemspec b/sensu-plugins-ftp.gemspec index 1ab1250..3e91048 100644 --- a/sensu-plugins-ftp.gemspec +++ b/sensu-plugins-ftp.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |s| for monitoring service connectivity' s.email = '' s.executables = Dir.glob('bin/**/*.rb').map { |file| File.basename(file) } - s.files = Dir.glob('{bin,lib}/**/*') + %w(LICENSE README.md CHANGELOG.md) + s.files = Dir.glob('{bin,lib}/**/*') + %w[LICENSE README.md CHANGELOG.md] s.homepage = 'https://github.com/sensu-plugins/sensu-plugins-ftp' s.license = 'MIT' s.metadata = { 'maintainer' => 'sensu-plugin', From 89806ff467d209b5e87528f8729ba056924f03d0 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 14:22:51 +0100 Subject: [PATCH 09/32] Update Rakefile --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index ce46817..57b85f8 100644 --- a/Rakefile +++ b/Rakefile @@ -9,7 +9,7 @@ require 'yard/rake/yardoc_task' YARD::Rake::YardocTask.new do |t| OTHER_PATHS = %w().freeze t.files = ['lib/**/*.rb', 'bin/**/*.rb', OTHER_PATHS] - t.options = %w(--markup-provider=redcarpet --markup=markdown --main=README.md --files CHANGELOG.md) + t.options = %w[--markup-provider=redcarpet --markup=markdown --main=README.md --files CHANGELOG.md] end RuboCop::RakeTask.new From 005d2ceafda0f184ba47afc7849c2f740a80839f Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 14:26:37 +0100 Subject: [PATCH 10/32] Update Rakefile --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 57b85f8..10776a1 100644 --- a/Rakefile +++ b/Rakefile @@ -7,7 +7,7 @@ require 'yard' require 'yard/rake/yardoc_task' YARD::Rake::YardocTask.new do |t| - OTHER_PATHS = %w().freeze + OTHER_PATHS = %w[].freeze t.files = ['lib/**/*.rb', 'bin/**/*.rb', OTHER_PATHS] t.options = %w[--markup-provider=redcarpet --markup=markdown --main=README.md --files CHANGELOG.md] end @@ -35,4 +35,4 @@ task :check_binstubs do end end -task default: [:spec, :make_bin_executable, :yard, :rubocop, :check_binstubs] +task default: %i[spec make_bin_executable yard rubocop check_binstubs] From 9c4f7f569bb9807a664520250af311add85f90c7 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 14:58:20 +0100 Subject: [PATCH 11/32] Update .rubocop.yml --- .rubocop.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 0ba1665..6a6cd18 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,5 @@ +AllCops: + TargetRubyVersion: 2.4 MethodLength: Max: 200 @@ -8,6 +10,9 @@ LineLength: AbcSize: Max: 100 +BlockLength: + Max: 35 + FileName: Enabled: false From a9cef63b649031d5c27406bc8c46f06302ceb80f Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:01:23 +0100 Subject: [PATCH 12/32] Update .rubocop.yml --- .rubocop.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 6a6cd18..0d4633b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -33,3 +33,7 @@ RegexpLiteral: Style/Documentation: Enabled: false + +IfUnlessModifier: + Enabled: false + From db0bd28ed359247803daf49aa2707878cb1f789e Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:02:13 +0100 Subject: [PATCH 13/32] Update Rakefile --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 10776a1..5e7667a 100644 --- a/Rakefile +++ b/Rakefile @@ -35,4 +35,4 @@ task :check_binstubs do end end -task default: %i[spec make_bin_executable yard rubocop check_binstubs] +task default: %i[spec make_bin_executable yard rubocop check_binstubs] From 61a61ca4e81497e5d2496d4755833845c3a6047b Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:04:19 +0100 Subject: [PATCH 14/32] Update Rakefile --- Rakefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Rakefile b/Rakefile index 5e7667a..9e24764 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'bundler/gem_tasks' require 'github/markup' require 'redcarpet' From 5b19216e87431d6379bf160b143478c2ac739ae5 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:04:35 +0100 Subject: [PATCH 15/32] Update Gemfile --- Gemfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Gemfile b/Gemfile index fa75df1..7f4f5e9 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source 'https://rubygems.org' gemspec From f0f91f2efd3a93aaf84ff1b2ff3c13eee21335d3 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:04:53 +0100 Subject: [PATCH 16/32] Update sensu-plugins-ftp.gemspec --- sensu-plugins-ftp.gemspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sensu-plugins-ftp.gemspec b/sensu-plugins-ftp.gemspec index 3e91048..a794dab 100644 --- a/sensu-plugins-ftp.gemspec +++ b/sensu-plugins-ftp.gemspec @@ -1,3 +1,5 @@ +# frozen_string_literal: true + lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) From c5b7ca73052c24066c194ee36d77257cbdc27201 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:05:16 +0100 Subject: [PATCH 17/32] Update sensu-plugins-ftp.rb --- lib/sensu-plugins-ftp.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sensu-plugins-ftp.rb b/lib/sensu-plugins-ftp.rb index 533b7eb..f5171a8 100644 --- a/lib/sensu-plugins-ftp.rb +++ b/lib/sensu-plugins-ftp.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + require 'sensu-plugins-ftp/version' From 9b16f76bf395027f2bd4f355c6133f4282948211 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:05:31 +0100 Subject: [PATCH 18/32] Update version.rb --- lib/sensu-plugins-ftp/version.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sensu-plugins-ftp/version.rb b/lib/sensu-plugins-ftp/version.rb index f7d69d3..f46a8c2 100644 --- a/lib/sensu-plugins-ftp/version.rb +++ b/lib/sensu-plugins-ftp/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module SensuPluginsFtp module Version MAJOR = 1 From 2ffa66b833e6f04dd2ccf1be0d36efcf1b894e63 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:05:53 +0100 Subject: [PATCH 19/32] Update check-ftp.rb --- bin/check-ftp.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/check-ftp.rb b/bin/check-ftp.rb index 40fb0b3..1d12254 100755 --- a/bin/check-ftp.rb +++ b/bin/check-ftp.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true #! /usr/bin/env ruby # # check-ftp From d5835e453690c79db88b8b62d7b344fbb6de886f Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:06:25 +0100 Subject: [PATCH 20/32] Update spec_helper.rb --- test/spec_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/spec_helper.rb b/test/spec_helper.rb index 9797982..e0dd8c4 100644 --- a/test/spec_helper.rb +++ b/test/spec_helper.rb @@ -1,2 +1,3 @@ +# frozen_string_literal: true require 'codeclimate-test-reporter' CodeClimate::TestReporter.start From 88a7877d7404f8f03ed075b4c6ab42d3129d6f3d Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:09:10 +0100 Subject: [PATCH 21/32] Update check-ftp.rb --- bin/check-ftp.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/check-ftp.rb b/bin/check-ftp.rb index 1d12254..ebd77b1 100755 --- a/bin/check-ftp.rb +++ b/bin/check-ftp.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + #! /usr/bin/env ruby # # check-ftp From b7b59eb237e9b89346203af719034ca9a60bb255 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:12:12 +0100 Subject: [PATCH 22/32] Update check-ftp.rb --- bin/check-ftp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/check-ftp.rb b/bin/check-ftp.rb index ebd77b1..730fdc7 100755 --- a/bin/check-ftp.rb +++ b/bin/check-ftp.rb @@ -1,6 +1,6 @@ +#! /usr/bin/env ruby # frozen_string_literal: true -#! /usr/bin/env ruby # # check-ftp # From d7fc19e6a2194ab54593de318abdccf47e4c1a1a Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:12:29 +0100 Subject: [PATCH 23/32] Update spec_helper.rb --- test/spec_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/spec_helper.rb b/test/spec_helper.rb index e0dd8c4..3bb6bfe 100644 --- a/test/spec_helper.rb +++ b/test/spec_helper.rb @@ -1,3 +1,4 @@ # frozen_string_literal: true + require 'codeclimate-test-reporter' CodeClimate::TestReporter.start From 3f2bc1996a43a9b7dd8441523dcb9e72f79083f0 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:15:12 +0100 Subject: [PATCH 24/32] Update .rubocop.yml --- .rubocop.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 0d4633b..36f3f3f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,7 @@ AllCops: TargetRubyVersion: 2.4 + Exclude: + - 'bin/check-ftp.rb' MethodLength: Max: 200 From 2aa5b9680e70127373f27b479d1589591ea33d93 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:19:50 +0100 Subject: [PATCH 25/32] Update .travis.yml --- .travis.yml | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/.travis.yml b/.travis.yml index b0fd9b4..8c9a5e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,6 @@ cache: install: - bundle install rvm: -- 2.0 -- 2.1 -- 2.2 - 2.3.0 - 2.4.1 notifications: @@ -20,23 +17,19 @@ script: - gem build sensu-plugins-ftp.gemspec - gem install sensu-plugins-ftp-*.gem deploy: - provider: rubygems - api_key: - secure: v95V8Ti3/Ti38MFl8bYYJLv1M6IQ8XDr4mRbOCc4bsSBQJeR7vxlYqHLlymteDWdS26KkP6TBYJtMtoeGfuEYRRYoTFJNf23Tt75Qo6rGVxBJqjwhMkR+Q5c/3lYS84glryX9suZ17MXE2qOBLOBRsR1D4TemkC/IqysyQ3O6DA= - gem: sensu-plugins-ftp - 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-ftp - provider: script - script: bonsai/ruby-runtime/travis-build-bonsai-assets.sh sensu-plugins-ftp + script: chmod +x bonsai/ruby-runtime/travis-build-ruby-plugin-assets.sh && bonsai/ruby-runtime/travis-build-ruby-plugin-assets.sh sensu-plugins-ftp skip_cleanup: true on: tags: true all_branches: true rvm: 2.4.1 + - provider: rubygems + api_key: + secure: v95V8Ti3/Ti38MFl8bYYJLv1M6IQ8XDr4mRbOCc4bsSBQJeR7vxlYqHLlymteDWdS26KkP6TBYJtMtoeGfuEYRRYoTFJNf23Tt75Qo6rGVxBJqjwhMkR+Q5c/3lYS84glryX9suZ17MXE2qOBLOBRsR1D4TemkC/IqysyQ3O6DA= + gem: sensu-plugins-ftp + on: + tags: true + all_branches: true + rvm: 2.4.1 + repo: sensu-plugins/sensu-plugins-ftp From 74178e44e750655f9ce915bf35d5bee0d3d601e6 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:26:01 +0100 Subject: [PATCH 26/32] Update .travis.yml --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8c9a5e4..8546664 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,8 @@ script: - bundle exec rake default - gem build sensu-plugins-ftp.gemspec - gem install sensu-plugins-ftp-*.gem +before_deploy: +- bash -c "[ ! -d bonsai/ ] && git clone https://github.com/sensu/sensu-go-bonsai-asset.git bonsai || echo 'bonsai/ exists, skipping git clone'" deploy: - provider: script script: chmod +x bonsai/ruby-runtime/travis-build-ruby-plugin-assets.sh && bonsai/ruby-runtime/travis-build-ruby-plugin-assets.sh sensu-plugins-ftp From e7ea3884068767db3c9e55df245a627daee58151 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 15:43:21 +0100 Subject: [PATCH 27/32] Update .travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 8546664..8a4f652 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,6 +27,7 @@ deploy: all_branches: true rvm: 2.4.1 - provider: rubygems + github_token: $GH_TOKEN api_key: secure: v95V8Ti3/Ti38MFl8bYYJLv1M6IQ8XDr4mRbOCc4bsSBQJeR7vxlYqHLlymteDWdS26KkP6TBYJtMtoeGfuEYRRYoTFJNf23Tt75Qo6rGVxBJqjwhMkR+Q5c/3lYS84glryX9suZ17MXE2qOBLOBRsR1D4TemkC/IqysyQ3O6DA= gem: sensu-plugins-ftp From 90f011a290da1119e74a6e8b991279e30e2d7b4e Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 17:29:00 +0100 Subject: [PATCH 28/32] Update .bonsai.yml --- .bonsai.yml | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/.bonsai.yml b/.bonsai.yml index 4827e2d..521ba28 100644 --- a/.bonsai.yml +++ b/.bonsai.yml @@ -1,9 +1,60 @@ --- description: "#{repo}" builds: -- platform: "linux" +- platform: "alpine" arch: "amd64" - asset_filename: "#{repo}_#{version}_linux_amd64.tar.gz" + asset_filename: "#{repo}_#{version}_alpine_linux_amd64.tar.gz" + sha_filename: "#{repo}_#{version}_sha512-checksums.txt" + filter: + - "entity.system.os == 'linux'" + - "entity.system.arch == 'amd64'" + - "entity.system.platform == 'alpine'" + - "entity.system.platform_version.split('.')[0] == '3'" +- platform: "alpine3.8" + arch: "amd64" + asset_filename: "#{repo}_#{version}_alpine3.8_linux_amd64.tar.gz" + sha_filename: "#{repo}_#{version}_sha512-checksums.txt" + filter: + - "entity.system.os == 'linux'" + - "entity.system.arch == 'amd64'" + - "entity.system.platform == 'alpine'" +- platform: "centos" + arch: "amd64" + asset_filename: "#{repo}_#{version}_centos_linux_amd64.tar.gz" + sha_filename: "#{repo}_#{version}_sha512-checksums.txt" + filter: + - "entity.system.os == 'linux'" + - "entity.system.arch == 'amd64'" + - "entity.system.platform_family == 'rhel'" +- platform: "centos6" + arch: "amd64" + asset_filename: "#{repo}_#{version}_centos6_linux_amd64.tar.gz" + sha_filename: "#{repo}_#{version}_sha512-checksums.txt" + filter: + - "entity.system.os == 'linux'" + - "entity.system.arch == 'amd64'" + - "entity.system.platform_family == 'rhel'" + - "entity.system.platform_version.split('.')[0] == '6'" +- platform: "centos7" + arch: "amd64" + asset_filename: "#{repo}_#{version}_centos7_linux_amd64.tar.gz" + sha_filename: "#{repo}_#{version}_sha512-checksums.txt" + filter: + - "entity.system.os == 'linux'" + - "entity.system.arch == 'amd64'" + - "entity.system.platform_family == 'rhel'" + - "entity.system.platform_version.split('.')[0] == '7'" +- platform: "debian" + arch: "amd64" + asset_filename: "#{repo}_#{version}_debian_linux_amd64.tar.gz" + sha_filename: "#{repo}_#{version}_sha512-checksums.txt" + filter: + - "entity.system.os == 'linux'" + - "entity.system.arch == 'amd64'" + - "entity.system.platform_family == 'debian'" +- platform: "debian9" + arch: "amd64" + asset_filename: "#{repo}_#{version}_debian9_linux_amd64.tar.gz" sha_filename: "#{repo}_#{version}_sha512-checksums.txt" filter: - "entity.system.os == 'linux'" From 0e1d07ae19656ee235ca28512713c7d543d7c356 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Fri, 7 Feb 2020 19:59:07 +0100 Subject: [PATCH 29/32] Update .bonsai.yml --- .bonsai.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.bonsai.yml b/.bonsai.yml index 521ba28..ee9f5c0 100644 --- a/.bonsai.yml +++ b/.bonsai.yml @@ -18,14 +18,6 @@ builds: - "entity.system.os == 'linux'" - "entity.system.arch == 'amd64'" - "entity.system.platform == 'alpine'" -- platform: "centos" - arch: "amd64" - asset_filename: "#{repo}_#{version}_centos_linux_amd64.tar.gz" - sha_filename: "#{repo}_#{version}_sha512-checksums.txt" - filter: - - "entity.system.os == 'linux'" - - "entity.system.arch == 'amd64'" - - "entity.system.platform_family == 'rhel'" - platform: "centos6" arch: "amd64" asset_filename: "#{repo}_#{version}_centos6_linux_amd64.tar.gz" From b929c7dcf73a40614ad053b777e1c958bca56d33 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Sun, 15 Mar 2020 20:25:26 +0100 Subject: [PATCH 30/32] Update CHANGELOG.md --- CHANGELOG.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83c1724..a4ebc91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,11 +11,9 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/) ### Changed - update location for our changelog format (@majormoses) - -## [1.1.1] - 2020-02-07 -### Added - added .bonsai.yml for bonsai.sensu.io compatibility + ## [1.1.0] - 2017-05-30 ### Added - check-ftp.rb: add support for implicit FTPS. (@swibowo) From 29d4ea44876d6e29348c7fc4e1ec521b0ef65d41 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Sun, 15 Mar 2020 20:25:52 +0100 Subject: [PATCH 31/32] Update CHANGELOG.md --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4ebc91..e0a5449 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,6 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/) - update location for our changelog format (@majormoses) - added .bonsai.yml for bonsai.sensu.io compatibility - ## [1.1.0] - 2017-05-30 ### Added - check-ftp.rb: add support for implicit FTPS. (@swibowo) From 49520b42498d08f2f9ffb4318b61b8df1f7ef631 Mon Sep 17 00:00:00 2001 From: dhpowrhost Date: Sun, 15 Mar 2020 20:26:21 +0100 Subject: [PATCH 32/32] Update version.rb --- lib/sensu-plugins-ftp/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sensu-plugins-ftp/version.rb b/lib/sensu-plugins-ftp/version.rb index f46a8c2..1fedc8c 100644 --- a/lib/sensu-plugins-ftp/version.rb +++ b/lib/sensu-plugins-ftp/version.rb @@ -4,7 +4,7 @@ module SensuPluginsFtp module Version MAJOR = 1 MINOR = 1 - PATCH = 1 + PATCH = 0 VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.') end