Skip to content

Commit 5f8f6e3

Browse files
author
Matt Jones
committed
update repo
1 parent 801065e commit 5f8f6e3

File tree

6 files changed

+74
-43
lines changed

6 files changed

+74
-43
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## Pull Request Checklist
2+
3+
**Is this in reference to an existing issue?**
4+
5+
#### General
6+
7+
- [ ] Update Changelog following the conventions laid out on [Keep A Changelog](http://keepachangelog.com/)
8+
9+
- [ ] Update README with any necessary configuration snippets
10+
11+
- [ ] Binstubs are created if needed
12+
13+
- [ ] RuboCop passes
14+
15+
- [ ] Existing tests pass
16+
17+
#### New Plugins
18+
19+
- [ ] Tests
20+
21+
- [ ] Add the plugin to the README
22+
23+
- [ ] Does it have a complete header as outlined [here](http://sensu-plugins.io/docs/developer_guidelines.html#coding-style)
24+
25+
#### Purpose
26+
27+
#### Known Compatablity Issues
28+

.travis.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
11
language: ruby
22
cache:
3-
- bundler
3+
- bundler
44
install:
5-
- bundle install
5+
- bundle install
66
rvm:
7-
- 1.9.3
8-
- 2.0
9-
- 2.1
10-
- 2.2
7+
- 1.9.3
8+
- 2.0
9+
- 2.1
10+
- 2.2
1111
notifications:
1212
email:
1313
recipients:
14-
- sensu-plugin@sensu-plugins.io
14+
- sensu-plugin@sensu-plugins.io
1515
on_success: change
1616
on_failure: always
17-
1817
script:
19-
- 'bundle exec rake default'
18+
- bundle exec rake default
19+
deploy:
20+
provider: rubygems
21+
api_key:
22+
secure: CEl8sMqHZhUSekhiGoePkcbTl7vKt4aufE10TWKFX9aCL7eUyqzDX7K1desQeP27ZjXflF876/LgvsSDhOeifdIaolBSpSXu/9e6YuCDdGWInAcSKjBK8lYTpfQqF2NGqOapJce+v+mAkNiLiMmTZUN8YL8XO4ziPmuoMeW2NBg=
23+
gem: sensu-plugins-postgres
24+
on:
25+
tags: true
26+
all_branches: true
27+
rvm: 1.9.3
28+
rvm: 2.0
29+
rvm: 2.1
30+
rvm: 2.2
31+
repo: sensu-plugins/sensu-plugins-postgres

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
33

44
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
55

6-
## Unreleased
6+
## [Unreleased]
77

88
## [0.0.7] - 2015-12-10
99
### Changed

Rakefile

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ require 'yard/rake/yardoc_task'
88

99
desc 'Don\'t run Rubocop for unsupported versions'
1010
begin
11-
if RUBY_VERSION >= '2.0.0'
12-
args = [:spec, :make_bin_executable, :yard, :rubocop]
13-
else
14-
args = [:spec, :make_bin_executable, :yard]
15-
end
11+
args = if RUBY_VERSION >= '2.0.0'
12+
[:spec, :make_bin_executable, :yard, :rubocop, :check_binstubs]
13+
else
14+
[:spec, :make_bin_executable, :yard]
15+
end
1616
end
1717

1818
YARD::Rake::YardocTask.new do |t|
19-
OTHER_PATHS = %w()
19+
OTHER_PATHS = %w().freeze
2020
t.files = ['lib/**/*.rb', 'bin/**/*.rb', OTHER_PATHS]
21-
t.options = %w(--markup-provider=redcarpet --markup=markdown --main=README.md --files CHANGELOG.md,CONTRIBUTING.md)
21+
t.options = %w(--markup-provider=redcarpet --markup=markdown --main=README.md --files CHANGELOG.md)
2222
end
2323

2424
RuboCop::RakeTask.new
@@ -32,4 +32,16 @@ task :make_bin_executable do
3232
`chmod -R +x bin/*`
3333
end
3434

35+
desc 'Test for binstubs'
36+
task :check_binstubs do
37+
bin_list = Gem::Specification.load('sensu-plugins-ansible.gemspec').executables
38+
bin_list.each do |b|
39+
`which #{ b }`
40+
unless $CHILD_STATUS.success?
41+
puts "#{b} was not a binstub"
42+
exit
43+
end
44+
end
45+
end
46+
3547
task default: args

certs/sensu-plugins.pem

Lines changed: 0 additions & 21 deletions
This file was deleted.

sensu-plugins-postgres.gemspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ else
99
require_relative 'lib/sensu-plugins-postgres'
1010
end
1111

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

1414
Gem::Specification.new do |s|
1515
s.authors = ['Sensu-Plugins and contributors']
16-
s.cert_chain = ['certs/sensu-plugins.pem']
16+
#s.cert_chain = ['certs/sensu-plugins.pem']
1717
s.date = Date.today.to_s
1818
s.description = 'This plugin provides native PostgreSQL
1919
instrumentation for monitoring and metrics
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
2222
database size, `pg_stat_bgwriter` metrics, and
2323
more.'
2424
s.email = '<sensu-users@googlegroups.com>'
25-
s.executables = Dir.glob('bin/**/*').map { |file| File.basename(file) }
25+
s.executables = Dir.glob('bin/**/*.rb').map { |file| File.basename(file) }
2626
s.files = Dir.glob('{bin,lib}/**/*') + %w(LICENSE README.md CHANGELOG.md)
2727
s.homepage = 'https://github.com/sensu-plugins/sensu-plugins-postgres'
2828
s.license = 'MIT'
@@ -37,12 +37,12 @@ Gem::Specification.new do |s|
3737
s.post_install_message = 'You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu'
3838
s.require_paths = ['lib']
3939
s.required_ruby_version = '>= 1.9.3'
40-
s.signing_key = File.expand_path(pvt_key) if $PROGRAM_NAME =~ /gem\z/
40+
#s.signing_key = File.expand_path(pvt_key) if $PROGRAM_NAME =~ /gem\z/
4141
s.summary = 'Sensu plugins for postgres'
4242
s.test_files = s.files.grep(%r{^(test|spec|features)/})
4343
s.version = SensuPluginsPostgres::Version::VER_STRING
4444

45-
s.add_runtime_dependency 'sensu-plugin', '1.2.0'
45+
s.add_runtime_dependency 'sensu-plugin', '~> 1.2'
4646
s.add_runtime_dependency 'pg', '0.18.3'
4747
s.add_runtime_dependency 'dentaku', '2.0.4'
4848

0 commit comments

Comments
 (0)