From 05831889ee65a4dcca30ab85de70658d04185708 Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Mon, 2 Mar 2015 08:29:21 -0500 Subject: [PATCH] clean repo --- .gitignore | 18 +++++++++++++++ .rubocop.yml | 25 +++++++++++++++++++++ .travis.yml | 18 +++++++++++++++ README.md | 18 +++++++-------- Rakefile | 8 ------- bin/{etcd-metrics.rb => metrics-etcd.rb} | 0 sensu-plugins-etcd.gemspec | 28 ++++++++---------------- 7 files changed, 78 insertions(+), 37 deletions(-) create mode 100644 .gitignore create mode 100644 .rubocop.yml create mode 100644 .travis.yml rename bin/{etcd-metrics.rb => metrics-etcd.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 17da423..e8d9e77 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,16 @@ -## Sensu-Plugins-disk-checks +## Sensu-Plugins-etcd -[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-etcd.svg?branch=master)][1] -[![Gem Version](https://badge.fury.io/rb/sensu-plugins-etcd.svg)][2] -[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-etcd/badges/gpa.svg)][3] -[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-etcd/badges/coverage.svg)][4] -[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-etcd.svg)][5] +[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-etcd.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-etcd) +[![Gem Version](https://badge.fury.io/rb/sensu-plugins-etcd.svg)](http://badge.fury.io/rb/sensu-plugins-etcd) +[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-etcd/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-etcd) +[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-etcd/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-etcd) +[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-etcd.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-etcd) ## Functionality ## Files - * - * - * - * + * bin/check-etcd + * bin/metrics-etcd ## 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/etcd-metrics.rb b/bin/metrics-etcd.rb similarity index 100% rename from bin/etcd-metrics.rb rename to bin/metrics-etcd.rb diff --git a/sensu-plugins-etcd.gemspec b/sensu-plugins-etcd.gemspec index 2a43f99..bbec3e1 100644 --- a/sensu-plugins-etcd.gemspec +++ b/sensu-plugins-etcd.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