Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jones committed Aug 5, 2015
1 parent bd4d3d8 commit 57413d5
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 34 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).

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

## Unreleased
## [Unreleased][unreleased]

## [0.0.4] - 2015-08-04
### Changed
- general cleanup, no code changes


## [0.0.3] - 2015-07-14
### Changed
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[Development Documentation](http://sensu-plugins.github.io/development/)
[Development Documentation](http://sensu-plugins.io/docs/developer_guidelines.html)
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@

## Installation

[Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)

## Notes

[1]:[https://travis-ci.org/sensu-plugins/sensu-plugins-postgres]
[2]:[http://badge.fury.io/rb/sensu-plugins-postgres]
[3]:[https://codeclimate.com/github/sensu-plugins/sensu-plugins-postgres]
[4]:[https://codeclimate.com/github/sensu-plugins/sensu-plugins-postgres]
[5]:[https://gemnasium.com/sensu-plugins/sensu-plugins-postgres]
20 changes: 2 additions & 18 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'github/markup'
require 'redcarpet'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'yard'
require 'yard/rake/yardoc_task'

Expand Down Expand Up @@ -32,20 +32,4 @@ task :make_bin_executable do
`chmod -R +x bin/*`
end

desc 'Retrieve the current version'
task :version do
puts SensuPluginsPostgres::Version.json_version
end

desc 'Bump the PATCH version'
task :bump do
version_file = 'lib/sensu-plugins-postgres/version.rb'

# Read the file, bump the PATCH version
contents = File.read(version_file).gsub(/(PATCH = )(\d+)/) { |_| Regexp.last_match[1] + (Regexp.last_match[2].to_i + 1).to_s }

# Write the new contents of the file
File.open(version_file, 'w') { |file| file.puts contents }
end

task default: args
2 changes: 1 addition & 1 deletion bin/metric-postgres-graphite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def run
m_segbytes = conn_master.exec('SHOW wal_segment_size').getvalue(0, 0).sub(/\D+/, '').to_i << 20
conn_master.close

def lag_compute(res1, res, m_segbytes)
def lag_compute(res1, res, m_segbytes) # rubocop:disable NestedMethodDefinition
m_segment, m_offset = res1.split(/\//)
s_segment, s_offset = res.split(/\//)
((m_segment.hex - s_segment.hex) * m_segbytes) + (m_offset.hex - s_offset.hex)
Expand Down
2 changes: 1 addition & 1 deletion lib/sensu-plugins-postgres/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module SensuPluginsPostgres
module Version
MAJOR = 0
MINOR = 0
PATCH = 3
PATCH = 4

VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
end
Expand Down
10 changes: 5 additions & 5 deletions sensu-plugins-postgres.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'sensu-plugin', '1.2.0'
s.add_runtime_dependency 'pg', '0.18.2'

s.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
s.add_development_dependency 'rubocop', '0.30'
s.add_development_dependency 'rspec', '~> 3.1'
s.add_development_dependency 'bundler', '~> 1.7'
s.add_development_dependency 'rake', '~> 10.0'
s.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
s.add_development_dependency 'github-markup', '~> 1.3'
s.add_development_dependency 'pry', '~> 0.10'
s.add_development_dependency 'rake', '~> 10.0'
s.add_development_dependency 'redcarpet', '~> 3.2'
s.add_development_dependency 'rspec', '~> 3.1'
s.add_development_dependency 'rubocop', '0.32.1'
s.add_development_dependency 'yard', '~> 0.8'
s.add_development_dependency 'pry', '~> 0.10'
end

0 comments on commit 57413d5

Please sign in to comment.