Skip to content

Commit

Permalink
integrate codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
wk committed Apr 22, 2018
1 parent 2648b1b commit 82d67f2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 41 deletions.
29 changes: 0 additions & 29 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
# Include: **/*.gemspec
Gemspec/OrderedDependencies:
Exclude:
- 'oxidized.gemspec'

# Offense count: 1
# Configuration parameters: Include.
# Include: **/*.gemspec
Expand Down Expand Up @@ -84,12 +76,6 @@ Layout/ElseAlignment:
- 'lib/oxidized/output/gitcrypt.rb'
- 'lib/oxidized/source/csv.rb'

# Offense count: 1
# Cop supports --auto-correct.
Layout/EmptyLineAfterMagicComment:
Exclude:
- 'oxidized.gemspec'

# Offense count: 17
# Cop supports --auto-correct.
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
Expand Down Expand Up @@ -338,7 +324,6 @@ Layout/SpaceInsideArrayLiteralBrackets:
Exclude:
- 'lib/oxidized/input/ssh.rb'
- 'lib/oxidized/input/telnet.rb'
- 'oxidized.gemspec'

# Offense count: 29
# Cop supports --auto-correct.
Expand Down Expand Up @@ -384,12 +369,6 @@ Layout/SpaceInsideParens:
- 'lib/oxidized/input/telnet.rb'
- 'lib/oxidized/model/asa.rb'

# Offense count: 5
# Cop supports --auto-correct.
Layout/SpaceInsidePercentLiteralDelimiters:
Exclude:
- 'oxidized.gemspec'

# Offense count: 6
# Cop supports --auto-correct.
Layout/SpaceInsideRangeLiteral:
Expand Down Expand Up @@ -758,18 +737,11 @@ Style/EmptyMethod:
Exclude:
- 'lib/oxidized/hook.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/Encoding:
Exclude:
- 'oxidized.gemspec'

# Offense count: 2
# Cop supports --auto-correct.
Style/ExpandPathArguments:
Exclude:
- 'bin/console'
- 'oxidized.gemspec'

# Offense count: 6
# Cop supports --auto-correct.
Expand Down Expand Up @@ -944,7 +916,6 @@ Style/PercentLiteralDelimiters:
Exclude:
- 'lib/oxidized/config.rb'
- 'lib/oxidized/input/ssh.rb'
- 'oxidized.gemspec'

# Offense count: 22
# Cop supports --auto-correct.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Oxidized [![Build Status](https://travis-ci.org/ytti/oxidized.svg)](https://travis-ci.org/ytti/oxidized) [![Gem Version](https://badge.fury.io/rb/oxidized.svg)](http://badge.fury.io/rb/oxidized) [![Join the chat at https://gitter.im/oxidized/Lobby](https://badges.gitter.im/oxidized/Lobby.svg)](https://gitter.im/oxidized/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
# Oxidized [![Build Status](https://travis-ci.org/ytti/oxidized.svg)](https://travis-ci.org/ytti/oxidized) [![codecov.io](https://codecov.io/gh/ytti/oxidized/coverage.svg?branch=master)](https://codecov.io/gh/ytti/oxidized?branch=master) [![Gem Version](https://badge.fury.io/rb/oxidized.svg)](http://badge.fury.io/rb/oxidized) [![Join the chat at https://gitter.im/oxidized/Lobby](https://badges.gitter.im/oxidized/Lobby.svg)](https://gitter.im/oxidized/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Oxidized is a network device configuration backup tool. It's a RANCID replacement!

Expand Down
27 changes: 16 additions & 11 deletions oxidized.gemspec
Original file line number Diff line number Diff line change
@@ -1,39 +1,44 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)

lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'oxidized/version'

Gem::Specification.new do |s|
s.name = 'oxidized'
s.version = Oxidized::VERSION
s.licenses = %w( Apache-2.0 )
s.licenses = %w[Apache-2.0]
s.platform = Gem::Platform::RUBY
s.authors = [ 'Saku Ytti', 'Samer Abdel-Hafez', 'Anton Aksola' ]
s.email = %w( [email protected] [email protected] [email protected])
s.authors = ['Saku Ytti', 'Samer Abdel-Hafez', 'Anton Aksola']
s.email = %w[[email protected] [email protected] [email protected]]
s.homepage = 'http://github.com/ytti/oxidized'
s.summary = 'feeble attempt at rancid'
s.description = 'software to fetch configuration from network devices and store them'
s.rubyforge_project = s.name
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
s.executables = %w( oxidized )
s.executables = %w[oxidized]
s.require_path = 'lib'

s.required_ruby_version = '>= 2.0.0'
s.add_runtime_dependency 'asetus', '~> 0.1'
s.add_runtime_dependency 'slop', '~> 3.5'
s.add_runtime_dependency 'net-ssh', '~> 4.1.0'
s.add_runtime_dependency 'rugged', '~> 0.21', '>= 0.21.4'
s.add_runtime_dependency 'slop', '~> 3.5'

if defined?(RUBY_VERSION) && RUBY_VERSION > '2.3'
s.add_runtime_dependency 'net-telnet', '~> 0'
end

s.add_development_dependency 'simplecov'
if ENV['CI'] == 'true'
s.add_development_dependency 'codecov'
end

s.add_development_dependency 'pry', '~> 0'
s.add_development_dependency 'bundler', '~> 1.10'
s.add_development_dependency 'rake', '~> 10.0'
s.add_development_dependency 'git', '~> 1'
s.add_development_dependency 'minitest', '~> 5.8'
s.add_development_dependency 'mocha', '~> 1.1'
s.add_development_dependency 'git', '~> 1'
s.add_development_dependency 'rubocop', '~> 0.55.0'
s.add_development_dependency 'pry', '~> 0'
s.add_development_dependency 'rails_best_practices', '~> 1.19'
s.add_development_dependency 'rake', '~> 10.0'
s.add_development_dependency 'rubocop', '~> 0.55.0'
end
8 changes: 8 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
require 'simplecov'
SimpleCov.start

if ENV['CI'] == 'true'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

require 'minitest/autorun'
require 'mocha/minitest'
require 'oxidized'
Expand Down

0 comments on commit 82d67f2

Please sign in to comment.