Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@ GEM
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
ansi (1.5.0)
ast (2.4.0)
ast (2.4.1)
axiom-types (0.1.1)
descendants_tracker (~> 0.0.4)
ice_nine (~> 0.11.0)
thread_safe (~> 0.3, >= 0.3.1)
byebug (11.1.1)
byebug (11.1.3)
codeclimate-engine-rb (0.4.1)
virtus (~> 1.0)
codecov (0.1.16)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

codecov 0.1.16 was yanked, that's why we needed to update here.
Check:
https://rubygems.org/gems/codecov/versions

codecov (0.1.21)
json
simplecov
url
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
descendants_tracker (0.0.4)
Expand All @@ -41,19 +40,19 @@ GEM
sexp_processor (~> 4.8)
ice_nine (0.11.2)
jaro_winkler (1.5.4)
json (2.3.0)
json (2.3.1)
kwalify (0.7.2)
launchy (2.4.3)
addressable (~> 2.3)
minitest (5.8.5)
minitest-around (0.5.0)
minitest (~> 5.0)
parallel (1.19.1)
parallel (1.19.2)
parser (2.6.5.0)
ast (~> 2.4.0)
path_expander (1.1.0)
psych (3.1.0)
public_suffix (4.0.5)
public_suffix (4.0.6)
rainbow (3.0.0)
rake (13.0.1)
reek (5.4.1)
Expand All @@ -70,7 +69,7 @@ GEM
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
ruby-progressbar (1.10.1)
ruby_parser (3.14.2)
ruby_parser (3.15.0)
sexp_processor (~> 4.9)
rubycritic (4.4.1)
flay (~> 2.8)
Expand All @@ -83,7 +82,7 @@ GEM
simplecov (>= 0.17.0)
tty-which (~> 0.4.0)
virtus (~> 1.0)
sexp_processor (4.15.0)
sexp_processor (4.15.1)
simplecov (0.18.5)
docile (~> 1.1)
simplecov-html (~> 0.11)
Expand All @@ -97,7 +96,6 @@ GEM
thread_safe (0.3.6)
tty-which (0.4.2)
unicode-display_width (1.6.1)
url (0.3.2)
virtus (1.0.5)
axiom-types (~> 0.1)
coercible (~> 1.0)
Expand All @@ -108,7 +106,6 @@ PLATFORMS
ruby

DEPENDENCIES
bundler (~> 2.0)
byebug (~> 11)
codecov (~> 0.1.16)
minitest (~> 5.8.4)
Expand Down
11 changes: 11 additions & 0 deletions lib/skunk/cli/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ module Skunk
module Cli
# Knows how to execute command line commands
class Application < RubyCritic::Cli::Application
COVERAGE_FILE = "coverage/.resultset.json"

def initialize(argv)
@options = Skunk::Cli::Options.new(argv)
end

def execute
warn_coverage_info unless File.exist?(COVERAGE_FILE)

parsed_options = @options.parse.to_h
reporter = Skunk::Cli::CommandFactory.create(parsed_options).execute
print(reporter.status_message)
Expand All @@ -25,6 +29,13 @@ def execute
warn "Error: #{error}"
STATUS_ERROR
end

private

def warn_coverage_info
warn "warning: Couldn't find coverage info at #{COVERAGE_FILE}."
warn "warning: Having no coverage metrics will make your SkunkScore worse."
end
end
end
end
1 change: 0 additions & 1 deletion skunk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ Gem::Specification.new do |spec|
spec.add_dependency "rubycritic", ">= 4.4", "< 5.0"
spec.add_dependency "terminal-table", "~> 1.8.0"

spec.add_development_dependency "bundler", "~> 2.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we dropping the bundler dependency?

Copy link
Contributor Author

@manuca manuca Sep 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main reason was because Travis wasn't building, check it out here:

https://travis-ci.org/github/fastruby/skunk/builds/728404194

Then there's the question about if bundler is a development dependency of Skunk which I intuitively thought it isn't.

Honestly I'm not sure what the usual pattern is and if there's a reason why one would specify Bundler as a dep for a project.

spec.add_development_dependency "byebug", "~> 11"
spec.add_development_dependency "codecov", "~> 0.1.16"
spec.add_development_dependency "minitest", "~> 5.8.4"
Expand Down