From 36060cd50dada8f4f96e469cece5b66bf67e4724 Mon Sep 17 00:00:00 2001 From: Vladislav Trotsenko Date: Fri, 1 Oct 2021 09:13:28 +0300 Subject: [PATCH] Technical/Update gem development dependencies (#179) * Updated gem development dependencies * Updated root namespace for base stdlib classes * Updated rubocop/codeclimate configs * Updated gem version, documentation, changelog --- .codeclimate.yml | 2 +- .rubocop.yml | 27 ++++++++++++++++++ CHANGELOG.md | 7 +++++ Gemfile.lock | 35 ++++++++++++------------ lib/truemail/dns/punycode_representer.rb | 2 +- lib/truemail/version.rb | 2 +- spec/spec_helper.rb | 2 +- truemail.gemspec | 12 ++++---- 8 files changed, 61 insertions(+), 28 deletions(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index ff1348a..2de2407 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -7,7 +7,7 @@ checks: plugins: rubocop: enabled: true - channel: rubocop-1-19 + channel: rubocop-1-22 reek: enabled: true diff --git a/.rubocop.yml b/.rubocop.yml index f83de7e..1797b63 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -169,6 +169,15 @@ Style/QuotedSymbols: Style/RedundantSelfAssignmentBranch: Enabled: true +Style/NumberedParameters: + Enabled: true + +Style/NumberedParametersLimit: + Enabled: true + +Style/SelectByRegexp: + Enabled: true + Layout/LineLength: Max: 140 @@ -332,9 +341,21 @@ Lint/EmptyInPattern: Lint/AmbiguousRange: Enabled: true +Lint/AmbiguousOperatorPrecedence: + Enabled: true + +Lint/IncompatibleIoSelectWithFiberScheduler: + Enabled: true + +Lint/RequireRelativeSelfPath: + Enabled: true + Gemspec/DateAssignment: Enabled: true +Security/IoMethods: + Enabled: true + Performance/AncestorsInclude: Enabled: true @@ -418,3 +439,9 @@ RSpec/IdenticalEqualityAssertion: RSpec/Rails/AvoidSetupHook: Enabled: true + +RSpec/ExcessiveDocstringSpacing: + Enabled: true + +RSpec/SubjectDeclaration: + Enabled: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 977d03d..5fd4162 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.5.1] - 2021.10.01 + +### Updated + +- Updated gem development dependencies +- Updated gem version + ## [2.5.0] - 2021.09.01 ### Updated diff --git a/Gemfile.lock b/Gemfile.lock index 875713a..909e491 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - truemail (2.5.0) + truemail (2.5.1) simpleidn (~> 0.2.1) GEM @@ -10,7 +10,7 @@ GEM addressable (2.8.0) public_suffix (>= 2.0.2, < 5.0) ast (2.4.2) - bundler-audit (0.8.0) + bundler-audit (0.9.0.1) bundler (>= 1.2.0, < 3) thor (~> 1.0) byebug (11.1.3) @@ -20,7 +20,7 @@ GEM crack (0.4.5) rexml diff-lcs (1.4.4) - dns_mock (1.4.1) + dns_mock (1.4.2) simpleidn (~> 0.2.1) docile (1.4.0) fasterer (0.9.0) @@ -39,7 +39,7 @@ GEM childprocess (>= 0.6.3, < 5) iniparse (~> 1.4) rexml (~> 3.2) - parallel (1.20.1) + parallel (1.21.0) parser (3.0.2.0) ast (~> 2.4.1) pry (0.13.1) @@ -70,23 +70,22 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.10.0) rspec-support (3.10.2) - rubocop (1.19.1) + rubocop (1.22.0) parallel (~> 1.10) parser (>= 3.0.0.0) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml - rubocop-ast (>= 1.9.1, < 2.0) + rubocop-ast (>= 1.12.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.10.0) + rubocop-ast (1.12.0) parser (>= 3.0.1.1) rubocop-performance (1.11.5) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) - rubocop-rspec (2.4.0) - rubocop (~> 1.0) - rubocop-ast (>= 1.1.0) + rubocop-rspec (2.5.0) + rubocop (~> 1.19) ruby-progressbar (1.11.0) ruby_parser (3.17.0) sexp_processor (~> 4.15, >= 4.15.1) @@ -105,8 +104,8 @@ GEM truemail (>= 2.4) unf (0.1.4) unf_ext - unf_ext (0.0.7.7) - unicode-display_width (2.0.0) + unf_ext (0.0.8) + unicode-display_width (2.1.0) webmock (3.14.0) addressable (>= 2.8.0) crack (>= 0.3.2) @@ -116,9 +115,9 @@ PLATFORMS x86_64-darwin-20 DEPENDENCIES - bundler (~> 2.2, >= 2.2.26) - bundler-audit (~> 0.8.0) - dns_mock (~> 1.4, >= 1.4.1) + bundler (~> 2.2, >= 2.2.28) + bundler-audit (~> 0.9.0.1) + dns_mock (~> 1.4, >= 1.4.2) fasterer (~> 0.9.0) ffaker (~> 2.19) json_matchers (~> 0.11.1) @@ -127,13 +126,13 @@ DEPENDENCIES rake (~> 13.0, >= 13.0.6) reek (~> 6.0, >= 6.0.6) rspec (~> 3.10) - rubocop (~> 1.19, >= 1.19.1) + rubocop (~> 1.22) rubocop-performance (~> 1.11, >= 1.11.5) - rubocop-rspec (~> 2.4) + rubocop-rspec (~> 2.5) simplecov (~> 0.17.1) truemail! truemail-rspec (~> 0.7.0) webmock (~> 3.14) BUNDLED WITH - 2.2.26 + 2.2.28 diff --git a/lib/truemail/dns/punycode_representer.rb b/lib/truemail/dns/punycode_representer.rb index 9cfb529..853a94b 100644 --- a/lib/truemail/dns/punycode_representer.rb +++ b/lib/truemail/dns/punycode_representer.rb @@ -2,7 +2,7 @@ module Truemail module Dns - PunycodeRepresenter = Class.new do + PunycodeRepresenter = ::Class.new do require 'simpleidn' def self.call(email) diff --git a/lib/truemail/version.rb b/lib/truemail/version.rb index 3a618a2..ff0474d 100644 --- a/lib/truemail/version.rb +++ b/lib/truemail/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Truemail - VERSION = '2.5.0' + VERSION = '2.5.1' end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index f234333..2009911 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -5,7 +5,7 @@ require_relative '../lib/truemail' rspec_custom = ::File.join(::File.dirname(__FILE__), 'support/**/*.rb') -::Dir[File.expand_path(rspec_custom)].each { |file| require file unless file[/\A.+_spec\.rb\z/] } +::Dir[::File.expand_path(rspec_custom)].each { |file| require file unless file[/\A.+_spec\.rb\z/] } RSpec::Mocks.configuration.allow_message_expectations_on_nil = true RSpec.configure do |config| diff --git a/truemail.gemspec b/truemail.gemspec index 20559c3..2c0f405 100644 --- a/truemail.gemspec +++ b/truemail.gemspec @@ -28,14 +28,14 @@ Gem::Specification.new do |spec| spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } spec.bindir = 'exe' - spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } + spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) } spec.require_paths = ['lib'] spec.add_runtime_dependency 'simpleidn', '~> 0.2.1' - spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.26' - spec.add_development_dependency 'bundler-audit', '~> 0.8.0' - spec.add_development_dependency 'dns_mock', '~> 1.4', '>= 1.4.1' + spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.28' + spec.add_development_dependency 'bundler-audit', '~> 0.9.0.1' + spec.add_development_dependency 'dns_mock', '~> 1.4', '>= 1.4.2' spec.add_development_dependency 'fasterer', '~> 0.9.0' spec.add_development_dependency 'ffaker', '~> 2.19' spec.add_development_dependency 'json_matchers', '~> 0.11.1' @@ -44,9 +44,9 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6' spec.add_development_dependency 'reek', '~> 6.0', '>= 6.0.6' spec.add_development_dependency 'rspec', '~> 3.10' - spec.add_development_dependency 'rubocop', '~> 1.19', '>= 1.19.1' + spec.add_development_dependency 'rubocop', '~> 1.22' spec.add_development_dependency 'rubocop-performance', '~> 1.11', '>= 1.11.5' - spec.add_development_dependency 'rubocop-rspec', '~> 2.4' + spec.add_development_dependency 'rubocop-rspec', '~> 2.5' spec.add_development_dependency 'simplecov', '~> 0.17.1' spec.add_development_dependency 'truemail-rspec', '~> 0.7.0' spec.add_development_dependency 'webmock', '~> 3.14'