From ecc43859c29659d04d7e718bb7f6f4378fbb8a9d Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Sun, 1 Mar 2015 22:47:33 -0500 Subject: [PATCH] clean repo --- .gitignore | 18 ++++++++++++ .rubocop.yml | 25 +++++++++++++++++ .travis.yml | 18 ++++++++++++ README.md | 18 ++++++------ Rakefile | 8 ------ bin/{check_mongodb.py => check-mongodb.py} | 0 ...{mongodb-metrics.rb => metrics-mongodb.rb} | 0 sensu-plugins-mongodb.gemspec | 28 ++++++------------- 8 files changed, 78 insertions(+), 37 deletions(-) create mode 100644 .gitignore create mode 100644 .rubocop.yml create mode 100644 .travis.yml rename bin/{check_mongodb.py => check-mongodb.py} (100%) rename bin/{mongodb-metrics.rb => metrics-mongodb.rb} (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f92e714 --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +/.bundle/ +/.yardoc +/Gemfile.lock +/_yardoc/ +/coverage/ +/doc/ +/pkg/ +/spec/reports/ +/tmp/ +*.bundle +*.so +*.o +*.a +mkmf.log +.vagrant/* +.DS_Store +.idea/* +*.gem diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..8011955 --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,25 @@ + +MethodLength: + Max: 200 + +LineLength: + Max: 160 + +FileName: + Enabled: false + +PerceivedComplexity: + Enabled: false + +CyclomaticComplexity: + Enabled: false + +ClassLength: + Enabled: false + +IfUnlessModifier: + Enabled: false + +RegexpLiteral: + Enabled: false + diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..95ba777 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +language: ruby +cache: + - bundler +install: + - bundle install +rvm: + - 1.9.3 + - 2.0 + - 2.1 +notifications: + email: + recipients: + - mattjones@yieldbot.com + on_success: change + on_failure: always + +script: + - 'bundle exec rake default' diff --git a/README.md b/README.md index 40d27b4..0341cb1 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,16 @@ -## Sensu-Plugins-disk-checks +## Sensu-Plugins-mongodb -[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-mongodb.svg?branch=master)][1] -[![Gem Version](https://badge.fury.io/rb/sensu-plugins-mongodb.svg)][2] -[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-mongodb/badges/gpa.svg)][3] -[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-mongodb/badges/coverage.svg)][4] -[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-mongodb.svg)][5] +[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-mongodb.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-mongodb) +[![Gem Version](https://badge.fury.io/rb/sensu-plugins-mongodb.svg)](http://badge.fury.io/rb/sensu-plugins-mongodb) +[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-mongodb/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-mongodb) +[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-mongodb/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-mongodb) +[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-mongodb.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-mongodb) ## Functionality ## Files - * - * - * - * + * bin/check-mongodb.py + * bin/metrics-mongodb ## Usage diff --git a/Rakefile b/Rakefile index 4e5d83a..c4ee4f2 100644 --- a/Rakefile +++ b/Rakefile @@ -1,19 +1,11 @@ - require 'bundler/gem_tasks' - require 'rspec/core/rake_task' - require 'yard' - require 'github/markup' - require 'rubocop/rake_task' - require 'redcarpet' - require 'yard/rake/yardoc_task' - desc 'Don\'t run Rubocop for unsupported versions' begin if RUBY_VERSION >= '2.0.0' diff --git a/bin/check_mongodb.py b/bin/check-mongodb.py similarity index 100% rename from bin/check_mongodb.py rename to bin/check-mongodb.py diff --git a/bin/mongodb-metrics.rb b/bin/metrics-mongodb.rb similarity index 100% rename from bin/mongodb-metrics.rb rename to bin/metrics-mongodb.rb diff --git a/sensu-plugins-mongodb.gemspec b/sensu-plugins-mongodb.gemspec index d979b47..3379566 100644 --- a/sensu-plugins-mongodb.gemspec +++ b/sensu-plugins-mongodb.gemspec @@ -31,23 +31,13 @@ Gem::Specification.new do |s| s.platform = ruby s.required_ruby_version = '>= 1.9.3' - - s.add_development_dependency 'codeclimate-test-reporter' 'XXX' - - s.add_development_dependency 'rubocop' '~> 0.17.0' - - 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 'github-markup' 'XXX' - - s.add_development_dependency 'redcarpet' 'XXX' - - s.add_development_dependency 'yard' 'XXX' - - s.add_development_dependency 'pry' 'XXX' - + s.add_development_dependency 'codeclimate-test-reporter' + s.add_development_dependency 'rubocop', '~> 0.17.0' + 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 'github-markup' + s.add_development_dependency 'redcarpet' + s.add_development_dependency 'yard' + s.add_development_dependency 'pry' end