diff --git a/.rubocop.yml b/.rubocop.yml index 74dd740..72d30d2 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -139,6 +139,9 @@ Style/SwapValues: Style/RedundantArgument: Enabled: true +Style/HashExcept: + Enabled: true + Layout/LineLength: Max: 140 @@ -170,6 +173,9 @@ Layout/EmptyLinesAroundAttributeAccessor: Layout/BeginEndAlignment: Enabled: true +Layout/SpaceBeforeBrackets: + Enabled: true + Lint/NonDeterministicRequireOrder: Enabled: false @@ -266,6 +272,9 @@ Lint/UnmodifiedReduceAccumulator: Lint/UnexpectedBlockArity: Enabled: true +Lint/AmbiguousAssignment: + Enabled: true + Performance/AncestorsInclude: Enabled: true diff --git a/CHANGELOG.md b/CHANGELOG.md index a49dca6..6141fdd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.2.2] - 2020.12.30 + +### Changed + +- Updated gem development dependencies +- Updated rubocop config + ## [2.2.1] - 2020.12.06 ### Fixed diff --git a/Gemfile.lock b/Gemfile.lock index f4a2ad1..ab4c9f4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - truemail (2.2.1) + truemail (2.2.2) simpleidn (~> 0.1.1) GEM @@ -17,7 +17,7 @@ GEM colorize (0.8.1) concurrent-ruby (1.1.7) diff-lcs (1.4.4) - docile (1.3.2) + docile (1.3.4) faker (2.15.1) i18n (>= 1.6, < 2) fasterer (0.8.3) @@ -26,7 +26,7 @@ GEM i18n (1.8.5) concurrent-ruby (~> 1.0) iniparse (1.5.0) - json (2.3.1) + json (2.5.1) json_matchers (0.11.1) json_schema json_schema (0.20.9) @@ -44,30 +44,30 @@ GEM pry-byebug (3.9.0) byebug (~> 11.0) pry (~> 0.13.0) - psych (3.2.0) + psych (3.3.0) rainbow (3.0.0) - rake (13.0.1) + rake (13.0.3) reek (6.0.2) kwalify (~> 0.7.0) parser (>= 2.5.0.0, < 2.8, != 2.5.1.1) psych (~> 3.1) rainbow (>= 2.0, < 4.0) - regexp_parser (2.0.0) + regexp_parser (2.0.3) rexml (3.2.4) rspec (3.10.0) rspec-core (~> 3.10.0) rspec-expectations (~> 3.10.0) rspec-mocks (~> 3.10.0) - rspec-core (3.10.0) + rspec-core (3.10.1) rspec-support (~> 3.10.0) - rspec-expectations (3.10.0) + rspec-expectations (3.10.1) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.10.0) - rspec-mocks (3.10.0) + rspec-mocks (3.10.1) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.10.0) - rspec-support (3.10.0) - rubocop (1.5.2) + rspec-support (3.10.1) + rubocop (1.7.0) parallel (~> 1.10) parser (>= 2.7.1.5) rainbow (>= 2.2.2, < 4.0) @@ -81,7 +81,7 @@ GEM rubocop-performance (1.9.1) rubocop (>= 0.90.0, < 2.0) rubocop-ast (>= 0.4.0) - rubocop-rspec (2.0.1) + rubocop-rspec (2.1.0) rubocop (~> 1.0) rubocop-ast (>= 1.1.0) ruby-progressbar (1.10.1) @@ -116,12 +116,12 @@ DEPENDENCIES json_matchers (~> 0.11.1) overcommit (~> 0.57.0) pry-byebug (~> 3.9) - rake (~> 13.0, >= 13.0.1) + rake (~> 13.0, >= 13.0.3) reek (~> 6.0, >= 6.0.2) rspec (~> 3.10) - rubocop (~> 1.5, >= 1.5.2) + rubocop (~> 1.7) rubocop-performance (~> 1.9, >= 1.9.1) - rubocop-rspec (~> 2.0, >= 2.0.1) + rubocop-rspec (~> 2.1) simplecov (~> 0.17.1) truemail! truemail-rspec (~> 0.3.3) diff --git a/lib/truemail/version.rb b/lib/truemail/version.rb index d2ed5b2..9cb3b27 100644 --- a/lib/truemail/version.rb +++ b/lib/truemail/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Truemail - VERSION = '2.2.1' + VERSION = '2.2.2' end diff --git a/spec/truemail/validator_spec.rb b/spec/truemail/validator_spec.rb index eba483e..c4e35df 100644 --- a/spec/truemail/validator_spec.rb +++ b/spec/truemail/validator_spec.rb @@ -114,7 +114,7 @@ describe 'works with logs' do context 'when logger configured' do - let(:logger_instance) { true } + let(:logger_instance) { instance_double('LoggerInstance') } it 'pushes logs' do expect(logger_instance).to receive(:push).with(validator_instance) diff --git a/truemail.gemspec b/truemail.gemspec index b8dd0e0..bfc4e9a 100644 --- a/truemail.gemspec +++ b/truemail.gemspec @@ -40,12 +40,12 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'json_matchers', '~> 0.11.1' spec.add_development_dependency 'overcommit', '~> 0.57.0' spec.add_development_dependency 'pry-byebug', '~> 3.9' - spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.1' + spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.3' spec.add_development_dependency 'reek', '~> 6.0', '>= 6.0.2' spec.add_development_dependency 'rspec', '~> 3.10' - spec.add_development_dependency 'rubocop', '~> 1.5', '>= 1.5.2' + spec.add_development_dependency 'rubocop', '~> 1.7' spec.add_development_dependency 'rubocop-performance', '~> 1.9', '>= 1.9.1' - spec.add_development_dependency 'rubocop-rspec', '~> 2.0', '>= 2.0.1' + spec.add_development_dependency 'rubocop-rspec', '~> 2.1' spec.add_development_dependency 'simplecov', '~> 0.17.1' spec.add_development_dependency 'truemail-rspec', '~> 0.3.3' end