From 0abcf827d88f2048771646d6783641364a6b9dc1 Mon Sep 17 00:00:00 2001 From: Vladislav Trotsenko Date: Mon, 21 Nov 2022 20:34:33 +0100 Subject: [PATCH] Technical/Update gem dependencies (#236) * Updated gem runtime/development dependencies * Updated gemspecs, circleci config * Updated rubocop/codeclimate configs * Updated gem version, changelog --- .circleci/config.yml | 2 +- .circleci/gemspec_compatible | 2 +- .circleci/gemspec_latest | 12 ++++++------ .codeclimate.yml | 2 +- CHANGELOG.md | 9 +++++++++ lib/truemail/core.rb | 2 +- lib/truemail/version.rb | 2 +- truemail.gemspec | 4 ++-- 8 files changed, 22 insertions(+), 13 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c925b7b..428da47 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -122,7 +122,7 @@ jobs: - checkout - <<: *use_compatible_gemspec - ruby/install-deps: - bundler-version: "2.3.24" + bundler-version: "2.3.26" with-cache: false path: './vendor/custom_bundle' - <<: *install_system_dependencies diff --git a/.circleci/gemspec_compatible b/.circleci/gemspec_compatible index 529fa64..8feb6b2 100644 --- a/.circleci/gemspec_compatible +++ b/.circleci/gemspec_compatible @@ -36,7 +36,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'json_matchers', '~> 0.11.1' spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6' spec.add_development_dependency 'rspec', '~> 3.12' - spec.add_development_dependency 'smtp_mock', '~> 1.2', '>= 1.2.2' + spec.add_development_dependency 'smtp_mock', '~> 1.3' spec.add_development_dependency 'truemail-rspec', '~> 1.0' spec.add_development_dependency 'webmock', '~> 3.18', '>= 3.18.1' end diff --git a/.circleci/gemspec_latest b/.circleci/gemspec_latest index 07bdc39..5d9c983 100644 --- a/.circleci/gemspec_latest +++ b/.circleci/gemspec_latest @@ -29,7 +29,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) } spec.require_paths = ['lib'] - spec.add_runtime_dependency 'net-smtp', '~> 0.3.2' + spec.add_runtime_dependency 'net-smtp', '~> 0.3.3' spec.add_runtime_dependency 'simpleidn', '~> 0.2.1' spec.add_development_dependency 'bundler-audit', '~> 0.9.1' @@ -40,13 +40,13 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'overcommit', '~> 0.59.1' spec.add_development_dependency 'pry-byebug', '~> 3.10', '>= 3.10.1' spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6' - spec.add_development_dependency 'reek', '~> 6.1', '>= 6.1.1' + spec.add_development_dependency 'reek', '~> 6.1', '>= 6.1.2' spec.add_development_dependency 'rspec', '~> 3.12' - spec.add_development_dependency 'rubocop', '~> 1.37', '>= 1.37.1' - spec.add_development_dependency 'rubocop-performance', '~> 1.15' - spec.add_development_dependency 'rubocop-rspec', '~> 2.14', '>= 2.14.2' + spec.add_development_dependency 'rubocop', '~> 1.39' + spec.add_development_dependency 'rubocop-performance', '~> 1.15', '>= 1.15.1' + spec.add_development_dependency 'rubocop-rspec', '~> 2.15' spec.add_development_dependency 'simplecov', '~> 0.21.2' - spec.add_development_dependency 'smtp_mock', '~> 1.2', '>= 1.2.2' + spec.add_development_dependency 'smtp_mock', '~> 1.3' spec.add_development_dependency 'truemail-rspec', '~> 1.0' spec.add_development_dependency 'webmock', '~> 3.18', '>= 3.18.1' end diff --git a/.codeclimate.yml b/.codeclimate.yml index 854ffb1..4e01e4e 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -7,7 +7,7 @@ checks: plugins: rubocop: enabled: true - channel: rubocop-1-37 + channel: rubocop-1-39 reek: enabled: true diff --git a/CHANGELOG.md b/CHANGELOG.md index bd2393a..b3dd111 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ 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). +## [3.0.2] - 2022.11.21 + +### Updated + +- Updated gem runtime/development dependencies +- Updated gemspecs, circleci config +- Updated rubocop/codeclimate configs +- Updated gem version + ## [3.0.1] - 2022.11.01 ### Fixed diff --git a/lib/truemail/core.rb b/lib/truemail/core.rb index 737dd23..7130bed 100644 --- a/lib/truemail/core.rb +++ b/lib/truemail/core.rb @@ -19,7 +19,7 @@ def initialize(arg_value, arg_name) end module RegexConstant - REGEX_DOMAIN = /[\p{L}0-9]+([\-.]{1}[\p{L}0-9]+)*\.\p{L}{2,63}/i.freeze + REGEX_DOMAIN = /[\p{L}0-9]+([-.]{1}[\p{L}0-9]+)*\.\p{L}{2,63}/i.freeze REGEX_SIMPLE_EMAIL_PATTERN = /\w+@\w+/.freeze REGEX_EMAIL_PATTERN = %r{(?=\A.{6,255}\z)(\A([\p{L}0-9]+[\w\p{L}.+!~,'&%#*^`{}|\-/?=$]*)@(#{REGEX_DOMAIN})\z)}.freeze REGEX_DOMAIN_PATTERN = /(?=\A.{4,255}\z)(\A#{REGEX_DOMAIN}\z)/.freeze diff --git a/lib/truemail/version.rb b/lib/truemail/version.rb index 9072891..f80f1ce 100644 --- a/lib/truemail/version.rb +++ b/lib/truemail/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Truemail - VERSION = '3.0.1' + VERSION = '3.0.2' end diff --git a/truemail.gemspec b/truemail.gemspec index aa9ffa4..1c1523a 100644 --- a/truemail.gemspec +++ b/truemail.gemspec @@ -29,7 +29,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) } spec.require_paths = ['lib'] - spec.add_runtime_dependency 'net-smtp', '~> 0.3.2' if ::Gem::Version.new(::RUBY_VERSION) >= ::Gem::Version.new('3.1.0') + spec.add_runtime_dependency 'net-smtp', '~> 0.3.3' if ::Gem::Version.new(::RUBY_VERSION) >= ::Gem::Version.new('3.1.0') spec.add_runtime_dependency 'simpleidn', '~> 0.2.1' spec.add_development_dependency 'dns_mock', '~> 1.5', '>= 1.5.5' @@ -37,7 +37,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'json_matchers', '~> 0.11.1' spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6' spec.add_development_dependency 'rspec', '~> 3.12' - spec.add_development_dependency 'smtp_mock', '~> 1.2', '>= 1.2.2' + spec.add_development_dependency 'smtp_mock', '~> 1.3' spec.add_development_dependency 'truemail-rspec', '~> 1.0' spec.add_development_dependency 'webmock', '~> 3.18', '>= 3.18.1' end