Skip to content

Commit

Permalink
Update dependencies (undercover, rubocop)
Browse files Browse the repository at this point in the history
  • Loading branch information
grodowski committed Jan 4, 2024
1 parent 02c6db2 commit 4918f07
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Gemfile.lock
# rspec failure tracking
.rspec_status

.tool-versions
.rbenv-gemsets
.ruby-version
.ruby-gemset
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
AllCops:
TargetRubyVersion: 2.5
NewCops: enable
SuggestExtensions: false

Style/RegexpLiteral:
EnforcedStyle: slashes
Expand Down
9 changes: 9 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }

# Specify your gem's dependencies in pronto-undercover.gemspec
gemspec

gem 'pry'
gem 'rake', '~> 13.0'
gem 'rspec', '~> 3.0'
gem 'rubocop'
gem 'simplecov'
gem 'simplecov-html'
gem 'simplecov-lcov'
gem 'timecop'
3 changes: 3 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

desc 'Run RuboCop'
RuboCop::RakeTask.new(:rubocop)

desc 'Run Tests'
RSpec::Core::RakeTask.new(:spec)

task default: %i[rubocop spec]
3 changes: 2 additions & 1 deletion lib/pronto/patch_changeset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def each_changed_line

def validate(lcov_report_path)
return :no_changes if file_paths.empty?
return :stale_coverage if last_modified > File.mtime(lcov_report_path)

:stale_coverage if last_modified > File.mtime(lcov_report_path)
end
end
end
14 changes: 5 additions & 9 deletions pronto-undercover.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,10 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 2.5'

spec.add_dependency 'pronto', '>= 0.9', '< 0.12'
spec.add_dependency 'undercover', '~> 0.4.3'
spec.add_development_dependency 'pry'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'rubocop'
spec.add_development_dependency 'simplecov'
spec.add_development_dependency 'simplecov-html'
spec.add_development_dependency 'simplecov-lcov'
spec.add_development_dependency 'timecop'
spec.add_dependency 'undercover', '~> 0.4'

spec.add_dependency 'bigdecimal'
spec.add_dependency 'csv'

spec.metadata['rubygems_mfa_required'] = 'true'
end

0 comments on commit 4918f07

Please sign in to comment.