summaryrefslogtreecommitdiff
path: root/oxidized.gemspec
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2018-04-22 23:48:15 +0300
committerGitHub <noreply@github.com>2018-04-22 23:48:15 +0300
commit6bc4f7e65af36a3ca1e541ba9cbfeea2b7fd4170 (patch)
tree2ac3d04576a53e44e42023cadc5629e56f62b7ab /oxidized.gemspec
parent2648b1bb271727976e2d96123fcd51d52af39f79 (diff)
parent82d67f2f337df5dbef8109fc67ddc9a86ba79bdc (diff)
Merge pull request #1300 from wk/integrate-codecov
integrate codecov
Diffstat (limited to 'oxidized.gemspec')
-rw-r--r--oxidized.gemspec27
1 files changed, 16 insertions, 11 deletions
diff --git a/oxidized.gemspec b/oxidized.gemspec
index dfcaf4c..105da7e 100644
--- a/oxidized.gemspec
+++ b/oxidized.gemspec
@@ -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( saku@ytti.fi sam@arahant.net aakso@iki.fi)
+ s.authors = ['Saku Ytti', 'Samer Abdel-Hafez', 'Anton Aksola']
+ s.email = %w[saku@ytti.fi sam@arahant.net aakso@iki.fi]
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