Skip to content

Commit 6c3c41b

Browse files
authored
Merge pull request #30 from jspaleta/feature/bonsai-asset
prep for bonsai asset and remove support for old ruby versions
2 parents 9915811 + 64c86f8 commit 6c3c41b

File tree

5 files changed

+52
-9
lines changed

5 files changed

+52
-9
lines changed

.bonsai.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
description: "#{repo}"
3+
builds:
4+
- platform: "debian"
5+
arch: "amd64"
6+
asset_filename: "#{repo}_#{version}_debian_linux_amd64.tar.gz"
7+
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
8+
filter:
9+
- "entity.system.os == 'linux'"
10+
- "entity.system.arch == 'amd64'"
11+
- "entity.system.platform_family == 'debian'"
12+
- platform: "centos"
13+
arch: "amd64"
14+
asset_filename: "#{repo}_#{version}_centos_linux_amd64.tar.gz"
15+
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
16+
filter:
17+
- "entity.system.os == 'linux'"
18+
- "entity.system.arch == 'amd64'"
19+
- "entity.system.platform_family == 'rhel'"
20+
- platform: "alpine"
21+
arch: "amd64"
22+
asset_filename: "#{repo}_#{version}_alpine_linux_amd64.tar.gz"
23+
sha_filename: "#{repo}_#{version}_sha512-checksums.txt"
24+
filter:
25+
- "entity.system.os == 'linux'"
26+
- "entity.system.arch == 'amd64'"
27+
- "entity.system.platform == 'alpine'"
28+

.travis.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
language: ruby
2+
services: docker
23
cache:
34
- bundler
45
install:
56
- bundle install
67
rvm:
7-
- 2.0
8-
- 2.1
9-
- 2.2
108
- 2.3.0
119
- 2.4.1
1210
notifications:
@@ -19,17 +17,24 @@ script:
1917
- bundle exec rake default
2018
- gem build sensu-plugins-filesystem-checks.gemspec
2119
- gem install sensu-plugins-filesystem-checks-*.gem
20+
before_deploy:
21+
- bash -c "[ ! -d bonsai/ ] && git clone https://github.com/sensu/sensu-go-bonsai-asset.git bonsai || echo 'bonsai/ exists, skipping git clone'"
2222
deploy:
23-
provider: rubygems
23+
- provider: rubygems
2424
api_key:
2525
secure: TGl7vZCnZoC7GmLkcBCihPCb9gTysLXpFJ4EpufVBzLj14zB6eh4D5pmmj/NDXzJ75MjP/VXk/aRSMN4Y5P9b3F23U7Bs3V2jf0waTCXambgmfuogMCAQ3wAY63bvQqGy2AMdvIo8SCbqLZ66SYQSQ2QgLCwFFnPW/QNOS3DGaM=
2626
gem: sensu-plugins-filesystem-checks
2727
on:
2828
tags: true
2929
all_branches: true
30-
rvm: 2.0
31-
rvm: 2.1
32-
rvm: 2.2
3330
rvm: 2.3.0
3431
rvm: 2.4.1
3532
repo: sensu-plugins/sensu-plugins-filesystem-checks
33+
- provider: script
34+
script: bonsai/ruby-runtime/travis-build-ruby-plugin-assets.sh sensu-plugins-filesystem-checks
35+
skip_cleanup: true
36+
on:
37+
tags: true
38+
all_branches: true
39+
rvm: 2.4.1
40+

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
55

66
## [Unreleased]
7+
### Breaking Changes
8+
- Update minimum required ruby version to 2.3. Drop unsupported ruby versions.
9+
- Bump `sensu-plugin` dependency from `~> 1.2` to `~> 4.0` you can read the changelog entries for [4.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#400---2018-02-17), [3.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#300---2018-12-04), and [2.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v200---2017-03-29)
10+
711
### Added
812
- Added testing on Ruby 2.4.1 (@portertech)
13+
- Travis build automation to generate Sensu Asset tarballs that can be used n conjunction with Sensu provided ruby runtime assets and the Bonsai Asset Index
14+
- Require latest sensu-plugin for [Sensu Go support](https://github.com/sensu-plugins/sensu-plugin#sensu-go-enablement)
915

1016
## [1.0.0] - 2017-07-01
1117
### Added

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-filesystem-checks/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-filesystem-checks)
66
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-filesystem-checks/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-filesystem-checks)
77
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-filesystem-checks.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-filesystem-checks)
8+
[![Sensu Bonsai Asset](https://img.shields.io/badge/Bonsai-Download%20Me-brightgreen.svg?colorB=89C967&logo=sensu)](https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-filesystem-checks)
9+
10+
## Sensu Asset
11+
The Sensu assets packaged from this repository are built against the Sensu ruby runtime environment. When using these assets as part of a Sensu Go resource (check, mutator or handler), make sure you include the corresponding Sensu ruby runtime asset in the list of assets needed by the resource. The current ruby-runtime assets can be found [here](https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime) in the [Bonsai Asset Index](bonsai.sensu.io).
812

913
## Functionality
1014

sensu-plugins-filesystem-checks.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ Gem::Specification.new do |s|
2828
s.platform = Gem::Platform::RUBY
2929
s.post_install_message = 'You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu'
3030
s.require_paths = ['lib']
31-
s.required_ruby_version = '>= 2.0.0'
31+
s.required_ruby_version = '>= 2.3'
3232
# s.signing_key = File.expand_path(pvt_key) if $PROGRAM_NAME =~ /gem\z/
3333
s.summary = 'Sensu plugins for filesystems'
3434
s.test_files = s.files.grep(%r{^(test|spec|features)/})
3535
s.version = SensuPluginsFilesystemChecks::Version::VER_STRING
3636

37-
s.add_runtime_dependency 'sensu-plugin', '~> 1.2'
37+
s.add_runtime_dependency 'sensu-plugin', '~> 4.0'
3838

3939
s.add_development_dependency 'bundler', '~> 1.7'
4040
s.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'

0 commit comments

Comments
 (0)