-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from lagged/lint
lint
- Loading branch information
Showing
22 changed files
with
327 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,17 @@ | ||
require "bundler/gem_tasks" | ||
require "minitest/autorun" | ||
require "simplecov" | ||
require "simplecov-lcov" | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/gem_tasks' | ||
require 'rake/testtask' | ||
|
||
Encoding.default_external = Encoding::UTF_8 | ||
Encoding.default_internal = Encoding::UTF_8 | ||
|
||
task :test do | ||
Rake::TestTask.new do |t| | ||
ENV['COVERAGE'] = 'true' | ||
t.pattern = 'tests/*_test.rb' | ||
|
||
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter | ||
SimpleCov::Formatter::LcovFormatter.config do |c| | ||
c.output_directory = './coverage' | ||
c.report_with_single_file = true | ||
c.single_report_path = './coverage/lcov.info' | ||
end | ||
SimpleCov.start | ||
|
||
$LOAD_PATH.unshift('lib', 'tests') | ||
Dir.glob('./tests/*_test.rb') do |f| | ||
require f | ||
end | ||
# $LOAD_PATH.unshift('lib', 'tests') | ||
# Dir.glob('./tests/*_test.rb').sort.each do |f| | ||
# require f | ||
# end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,36 @@ | ||
# coding: utf-8 | ||
lib = File.expand_path('../lib', __FILE__) | ||
# frozen_string_literal: true | ||
|
||
# require 'English' | ||
lib = File.expand_path('lib', __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'apt/spy2/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "apt-spy2" | ||
spec.name = 'apt-spy2' | ||
spec.version = Apt::Spy2::VERSION | ||
spec.authors = ["till"] | ||
spec.email = ["[email protected]"] | ||
spec.description = "Keep your /etc/apt/sources.list up to date" | ||
spec.summary = "apt-spy2, or apt-spy for ubuntu" | ||
spec.homepage = "https://github.com/lagged/apt-spy2" | ||
spec.authors = ['till'] | ||
spec.email = ['[email protected]'] | ||
spec.description = 'Keep your /etc/apt/sources.list up to date' | ||
spec.summary = 'apt-spy2, or apt-spy for ubuntu' | ||
spec.homepage = 'https://github.com/lagged/apt-spy2' | ||
spec.license = 'BSD-2-Clause' | ||
|
||
spec.required_ruby_version = '>= 2.7', '< 3.3' | ||
|
||
spec.files = `git ls-files`.split($/) | ||
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR) | ||
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } | ||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) | ||
spec.require_paths = ["lib"] | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_dependency 'thor', '>= 0.18.1' | ||
spec.add_dependency 'colored', '>= 1.2' | ||
spec.add_dependency 'json' | ||
spec.add_dependency 'nokogiri', '~> 1.14.1' | ||
spec.add_dependency 'thor', '>= 0.18.1' | ||
|
||
spec.add_development_dependency "bundler", "~> 2.0" | ||
spec.add_development_dependency "rake" | ||
spec.add_development_dependency "minitest", "~> 5.15.0" | ||
spec.add_development_dependency "simplecov", "~> 0.18" | ||
spec.add_development_dependency "simplecov-lcov", "~> 0.8.0" | ||
spec.add_development_dependency 'bundler', '~> 2.0' | ||
spec.add_development_dependency 'minitest', '~> 5.15.0' | ||
spec.add_development_dependency 'rake' | ||
spec.add_development_dependency 'rubocop' | ||
spec.add_development_dependency 'simplecov', '~> 0.18' | ||
spec.add_development_dependency 'simplecov-lcov', '~> 0.8.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.