sensu-plugins-memory-checks 2.1.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 614f7bdc2d20b63f8705a4148dd00a6d922ca53b
4
- data.tar.gz: 809ffdc76014e4b877bdfe11dbb52a0fd1fc2393
3
+ metadata.gz: 0c0f5b4490651c2017746c39c18cb9c4161bd4d7
4
+ data.tar.gz: ab03f6f7901e7b1ff07ea9e93066dedb807045be
5
5
  SHA512:
6
- metadata.gz: 03dfb83c2f898d2c6c60d396ddebe6fea2d02e49c93fb6adc69724c8b0f571aefc7f7410373feb1a2846e64afec1dcce4e54b1ec9c31df36273fb1a7a7919ccc
7
- data.tar.gz: b122f99e53ff866ad4cfbe3bcf84375751ee1c9a8171d0cffa73d4a8d40adb16d50e7be8bfeca40e85eb90de4ea12e7516d75eea90a78de27bc1b02ab1b27232
6
+ metadata.gz: 6902f9bf9a2431c36348322d37d29b62f5586612b91e9e6e4461115758247c3cec9bf2c8bdc6e2225c05d1dcfd3092f35079dcc9810c1cfb74d2bf67b9a4b58f
7
+ data.tar.gz: 6620abe8c8fa5b7fabb58426b5e3e8d4f6c331ffbd5fbdf7bca941f521560f4dbf8aa6a5eac7ea4f2f22eb4a65186cd11eb1753f3304882633bb3f4d7d94fd5a
@@ -4,6 +4,15 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
6
  ## [Unreleased]
7
+ ### [3.0.0] - 2017-07-07
8
+ ### Added
9
+ - ruby 2.4 testing (@majormoses)
10
+
11
+ ### Fixed
12
+ - in PR template spell "compatibility" correctly (@majormoses)
13
+
14
+ ### Breaking Changes
15
+ - `check-memory.sh`: Validate that both critical and warning values are provided. (@EslamElHusseiny)
7
16
 
8
17
  ## [2.1.0] - 2017-03-08
9
18
  ### Changed
@@ -96,7 +105,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
96
105
  ### Added
97
106
  - initial release
98
107
 
99
- [unreleased]: https://github.com/sensu-plugins/sensu-plugins-memory-checks/compare/2.1.0...HEAD
108
+ [unreleased]: https://github.com/sensu-plugins/sensu-plugins-memory-checks/compare/3.0.0...HEAD
109
+ [3.0.0]: https://github.com/sensu-plugins/sensu-plugins-memory-checks/compare/2.1.0...3.0.0
100
110
  [2.1.0]: https://github.com/sensu-plugins/sensu-plugins-memory-checks/compare/2.0.0...2.1.0
101
111
  [2.0.0]: https://github.com/sensu-plugins/sensu-plugins-memory-checks/compare/1.0.2...2.0.0
102
112
  [1.0.2]: https://github.com/sensu-plugins/sensu-plugins-memory-checks/compare/1.0.1...1.0.2
@@ -41,8 +41,10 @@ if [ "$hlp" = "yes" ]; then
41
41
  exit 0
42
42
  fi
43
43
 
44
- WARN=${WARN:=0}
45
- CRIT=${CRIT:=0}
44
+ if [ -z "$WARN"] || [ -z "$CRIT" ]; then
45
+ echo "You must provide both warning and critical values"
46
+ exit 3
47
+ fi
46
48
 
47
49
  set -o pipefail
48
50
  FREE_MEMORY=$(free -m | grep buffers/cache | awk '{ print $4 }')
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsMemoryChecks
2
2
  module Version
3
- MAJOR = 2
4
- MINOR = 1
3
+ MAJOR = 3
4
+ MINOR = 0
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-memory-checks
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-08 00:00:00.000000000 Z
11
+ date: 2017-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin