Skip to content

Commit

Permalink
update repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jones committed Mar 5, 2016
1 parent 14c5beb commit 17547a3
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -16,13 +16,15 @@ notifications:
on_failure: always
script:
- bundle exec rake default
- gem build sensu-plugins-redis.gemspec
- gem install sensu-plugins-redis-*.gem
deploy:
provider: rubygems
api_key:
secure: HJBqE9Ic/Y+utyn2gMj55IB0ErMJF+E0fq9dkhcU2c7AaiOAM5uViDWMW3kjyIGIPUOSK8ardIL+Bq52cF4yUAQA7D7G6KXtg0mLuuzWwVfLSYO7jUEknjSZchDts1RABOLES9ps66AhKZyUWWl+oUmuDzmXEsTkFZ/Lvlx/UGw=
secure: Nx//keKnx9rs/hJN9RtQ72iXs+ZRTX4t7vuyOdxDEay8htD3HTMOsFSvwQopzDcArNrsCvIB81M/SXDBTBp7ECsLR2YZAsTYix2Jjt5oKl0ltByGkPGQtqe9q3kSt494Z8CzCi/nuXaYABElF3Dd4bUGa3Q4iQHAnZb3/NyeQiQ=
gem: sensu-plugins-redis
on:
tags: true
ags: true
all_branches: true
rvm: 1.9.3
rvm: 2.0
Expand Down
8 changes: 6 additions & 2 deletions CHANGELOG.md
Expand Up @@ -15,14 +15,18 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
### Changed
- updated sensu-plugin gem to 1.2.0

## [0.0.2 - 2015-07-05]
## [0.0.2] - 2015-07-05
### Added
- Add check for existance of Redis keys

### Fixed
- Fixed the gemspec to properly install the plugins to the embedded sensu bin dir

## 0.0.1 - 2015-05-31

### Added
- initial release

[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-iis/compare/0.0.4...HEAD
[0.0.4]: https://github.com/sensu-plugins/sensu-plugins-iis/compare/0.0.3...0.0.4
[0.0.3]: https://github.com/sensu-plugins/sensu-plugins-iis/compare/0.0.2...0.0.3
[0.0.2]: https://github.com/sensu-plugins/sensu-plugins-iis/compare/0.0.1...0.0.2
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -5,7 +5,6 @@
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-redis/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-redis)
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-redis/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-redis)
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-redis.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-redis)
[![Codeship Status for sensu-plugins/sensu-plugins-redis](https://codeship.com/projects/e211de50-e89a-0132-adeb-62885e5c211b/status?branch=master)](https://codeship.com/projects/82841)

## Functionality

Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -34,7 +34,7 @@ end

desc 'Test for binstubs'
task :check_binstubs do
bin_list = Gem::Specification.load('sensu-plugins-ansible.gemspec').executables
bin_list = Gem::Specification.load('sensu-plugins-redis.gemspec').executables
bin_list.each do |b|
`which #{ b }`
unless $CHILD_STATUS.success?
Expand Down
4 changes: 2 additions & 2 deletions bin/check-redis-info.rb
Expand Up @@ -59,10 +59,10 @@ def run
options[:password] = config[:password] if config[:password]
redis = Redis.new(options)

if redis.info.fetch("#{config[:redis_info_key]}") == "#{config[:redis_info_value]}"
if redis.info.fetch(config[:redis_info_key].to_s) == config[:redis_info_value].to_s
ok "Redis #{config[:redis_info_key]} is #{config[:redis_info_value]}"
else
critical "Redis #{config[:redis_info_key]} is #{redis.info.fetch("#{config[:redis_info_key]}")}!"
critical "Redis #{config[:redis_info_key]} is #{redis.info.fetch(config[:redis_info_key].to_s)}!"
end

rescue
Expand Down
2 changes: 1 addition & 1 deletion bin/metrics-redis-graphite.rb
Expand Up @@ -20,7 +20,7 @@ class Redis2Graphite < Sensu::Plugin::Metric::CLI::Graphite
'run_id', '^slave', 'used_memory_human', 'used_memory_peak_human',
'redis_mode', 'os', 'arch_bits', 'tcp_port',
'rdb_last_bgsave_status', 'aof_last_bgrewrite_status', 'config_file',
'redis_build_id']
'redis_build_id'].freeze

option :host,
short: '-h HOST',
Expand Down
6 changes: 2 additions & 4 deletions sensu-plugins-redis.gemspec
Expand Up @@ -9,11 +9,9 @@ else
require_relative 'lib/sensu-plugins-redis'
end

#pvt_key = '~/.ssh/gem-private_key.pem'

Gem::Specification.new do |s|
s.authors = ['Sensu-Plugins and contributors']
#s.cert_chain = ['certs/sensu-plugins.pem']

s.date = Date.today.to_s
s.description = 'This plugin provides native Redis instrumentation
for monitoring and metrics collection, including:
Expand All @@ -36,7 +34,7 @@ Gem::Specification.new do |s|
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 = '>= 1.9.3'
#s.signing_key = File.expand_path(pvt_key) if $PROGRAM_NAME =~ /gem\z/

s.summary = 'Sensu plugins for working with redis'
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.version = SensuPluginsRedis::Version::VER_STRING
Expand Down

0 comments on commit 17547a3

Please sign in to comment.