From aff10437b94e83e29ad16fbb3c17932a7a1488b3 Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Fri, 20 Apr 2018 14:39:57 +0200 Subject: bump rubocop to 0.55 and regenerate .rubocop_todo.yml --- oxidized.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oxidized.gemspec') diff --git a/oxidized.gemspec b/oxidized.gemspec index 6019842..ba5c74b 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -34,6 +34,6 @@ Gem::Specification.new do |s| 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.54' + s.add_development_dependency 'rubocop', '~> 0.55' s.add_development_dependency 'rails_best_practices', '~> 1.19' end -- cgit v1.2.1 From c7a439becb4def5d52e306f9aa1a0029b6ef0a97 Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Fri, 20 Apr 2018 15:25:00 +0200 Subject: Be pessimistic about rubocop --- oxidized.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oxidized.gemspec') diff --git a/oxidized.gemspec b/oxidized.gemspec index ba5c74b..dfcaf4c 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -34,6 +34,6 @@ Gem::Specification.new do |s| 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' + s.add_development_dependency 'rubocop', '~> 0.55.0' s.add_development_dependency 'rails_best_practices', '~> 1.19' end -- cgit v1.2.1 From 21e3d6490496573f25ef77fe8172766ac7d1a736 Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Sat, 21 Apr 2018 13:27:05 +0200 Subject: the great makeover - standardize layout, alignment, indentation --- oxidized.gemspec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'oxidized.gemspec') diff --git a/oxidized.gemspec b/oxidized.gemspec index dfcaf4c..3601cce 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -1,4 +1,5 @@ # coding: utf-8 + lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'oxidized/version' @@ -6,16 +7,16 @@ 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' @@ -25,7 +26,7 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'rugged', '~> 0.21', '>= 0.21.4' if defined?(RUBY_VERSION) && RUBY_VERSION > '2.3' - s.add_runtime_dependency 'net-telnet', '~> 0' + s.add_runtime_dependency 'net-telnet', '~> 0' end s.add_development_dependency 'pry', '~> 0' -- cgit v1.2.1 From 82d67f2f337df5dbef8109fc67ddc9a86ba79bdc Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Sun, 22 Apr 2018 22:06:23 +0200 Subject: integrate codecov --- oxidized.gemspec | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'oxidized.gemspec') 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 -- cgit v1.2.1 From dffae0f76656a57da8f5473ce21955638cbe1f7f Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Wed, 25 Apr 2018 14:41:47 +0200 Subject: additional touchups to catch up with master --- oxidized.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'oxidized.gemspec') diff --git a/oxidized.gemspec b/oxidized.gemspec index 205d3d9..6fcd5c5 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -20,13 +20,13 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 2.0.0' s.add_runtime_dependency 'asetus', '~> 0.1' s.add_runtime_dependency 'net-ssh', '~> 4.1.0' - s.add_runtime_dependency 'rugged', '~> 0.21', '>= 0.21.4' + 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' -- cgit v1.2.1 From 60c3408bfc0f6aa5a89013f99e0763719440f29b Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Wed, 25 Apr 2018 19:09:40 +0300 Subject: set version from git you still need to bump version.rb, as 'rake tag' will use that to create git tag, which we need :> --- oxidized.gemspec | 1 + 1 file changed, 1 insertion(+) (limited to 'oxidized.gemspec') diff --git a/oxidized.gemspec b/oxidized.gemspec index 6fcd5c5..06e1af9 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -1,6 +1,7 @@ lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'oxidized/version' +Oxidized.version_set Gem::Specification.new do |s| s.name = 'oxidized' -- cgit v1.2.1 From 5e31f4bc028f0e0bd6aade771fe10a3cc6d2a5fa Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Wed, 25 Apr 2018 18:43:23 +0200 Subject: fine tune rubocop to yttis exacting specifications --- oxidized.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oxidized.gemspec') diff --git a/oxidized.gemspec b/oxidized.gemspec index 06e1af9..bf90d00 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -14,7 +14,7 @@ Gem::Specification.new do |s| 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.files = %x(git ls-files -z).split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } s.executables = %w[oxidized] s.require_path = 'lib' -- cgit v1.2.1 From 9b22dfeebd5d5f30a8e15be28a00ff84534e9998 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Wed, 25 Apr 2018 21:14:40 +0300 Subject: only set version when building packege --- oxidized.gemspec | 1 - 1 file changed, 1 deletion(-) (limited to 'oxidized.gemspec') diff --git a/oxidized.gemspec b/oxidized.gemspec index bf90d00..8a126bb 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -1,7 +1,6 @@ lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'oxidized/version' -Oxidized.version_set Gem::Specification.new do |s| s.name = 'oxidized' -- cgit v1.2.1