Skip to content

Commit

Permalink
Merge pull request #278 from truemail-rb/develop
Browse files Browse the repository at this point in the history
Truemail v3.1.1
  • Loading branch information
bestwebua authored Jan 27, 2024
2 parents 3009794 + de59ce1 commit cdae41a
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .circleci/gemspecs/compatible
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.require_paths = %w[lib]

spec.add_runtime_dependency 'net-smtp', '~> 0.4.0' if ::Gem::Version.new(::RUBY_VERSION) >= ::Gem::Version.new('3.1.0')
spec.add_runtime_dependency 'net-smtp', '~> 0.4.0.1' 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'
Expand Down
16 changes: 8 additions & 8 deletions .circleci/gemspecs/latest
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ Gem::Specification.new do |spec|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.require_paths = %w[lib]

spec.add_runtime_dependency 'net-smtp', '~> 0.4.0'
spec.add_runtime_dependency 'net-smtp', '~> 0.4.0.1'
spec.add_runtime_dependency 'simpleidn', '~> 0.2.1'

spec.add_development_dependency 'bundler-audit', '~> 0.9.1'
spec.add_development_dependency 'dns_mock', '~> 1.5', '>= 1.5.16'
spec.add_development_dependency 'fasterer', '~> 0.10.1'
spec.add_development_dependency 'dns_mock', '~> 1.6', '>= 1.6.1'
spec.add_development_dependency 'fasterer', '~> 0.11.0'
spec.add_development_dependency 'ffaker', '~> 2.23'
spec.add_development_dependency 'json_matchers', '~> 0.11.1'
spec.add_development_dependency 'pry-byebug', '~> 3.10', '>= 3.10.1'
spec.add_development_dependency 'rake', '~> 13.1'
spec.add_development_dependency 'reek', '~> 6.1', '>= 6.1.4'
spec.add_development_dependency 'reek', '~> 6.2'
spec.add_development_dependency 'rspec', '~> 3.12'
spec.add_development_dependency 'rubocop', '~> 1.57', '>= 1.57.2'
spec.add_development_dependency 'rubocop-performance', '~> 1.19', '>= 1.19.1'
spec.add_development_dependency 'rubocop-rspec', '~> 2.25'
spec.add_development_dependency 'rubocop', '~> 1.59'
spec.add_development_dependency 'rubocop-performance', '~> 1.20', '>= 1.20.2'
spec.add_development_dependency 'rubocop-rspec', '~> 2.26', '>= 2.26.1'
spec.add_development_dependency 'simplecov', '~> 0.22.0'
spec.add_development_dependency 'smtp_mock', '~> 1.3', '>= 1.3.5'
spec.add_development_dependency 'smtp_mock', '~> 1.3', '>= 1.3.6'
spec.add_development_dependency 'truemail-rspec', '~> 1.2'
spec.add_development_dependency 'webmock', '~> 3.19', '>= 3.19.1'
end
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ checks:
plugins:
rubocop:
enabled: true
channel: rubocop-1-57
channel: rubocop-1-59
config:
file: .circleci/linter_configs/.rubocop.yml

Expand Down
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.1.1] - 2024.01.27

### Updated

- Updated `valid?` predicate. Thanks [@SofiaSousa](https://github.com/SofiaSousa) for report
- Updated runtime/development dependencies
- Updated `codeclimate` config
- Updated gem version

## [3.1.0] - 2023.10.31

### Updated
Expand All @@ -16,7 +25,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Fixed

- Fixed `Truemail::RegexConstant::REGEX_DOMAIN`. Thanks [@Sybe](https://github.com/Sybe) for report.
- Fixed `Truemail::RegexConstant::REGEX_DOMAIN`. Thanks [@Sybe](https://github.com/Sybe) for report

### Updated

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019-2023 Vladislav Trotsenko
Copyright (c) 2019-2024 Vladislav Trotsenko

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 0 additions & 1 deletion lib/truemail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def validate(email, custom_configuration: nil, **options)
end

def valid?(email, **options)
check_argument_type(email)
validate(email, **options).result.valid?
end

Expand Down
2 changes: 1 addition & 1 deletion lib/truemail/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def argument_consistent?(method, argument)
end

Truemail::Configuration::SETTERS.each do |method|
define_method("#{method}=") do |argument|
define_method(:"#{method}=") do |argument|
raise_unless(argument, __method__, argument_consistent?(method, argument))
instance_variable_set(:"@#{method}", argument)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/truemail/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Truemail
VERSION = '3.1.0'
VERSION = '3.1.1'
end
6 changes: 3 additions & 3 deletions truemail.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ Gem::Specification.new do |spec|
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(bin|lib)/|.ruby-version|truemail.gemspec|LICENSE}) }
spec.require_paths = %w[lib]

spec.add_runtime_dependency 'net-smtp', '~> 0.4.0' if current_ruby_version >= ::Gem::Version.new('3.1.0')
spec.add_runtime_dependency 'net-smtp', '~> 0.4.0.1' if current_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.16'
spec.add_development_dependency 'dns_mock', '~> 1.6', '>= 1.6.1'
spec.add_development_dependency 'ffaker', ffaker_version
spec.add_development_dependency 'json_matchers', '~> 0.11.1'
spec.add_development_dependency 'rake', '~> 13.1'
spec.add_development_dependency 'rspec', '~> 3.12'
spec.add_development_dependency 'smtp_mock', '~> 1.3', '>= 1.3.5'
spec.add_development_dependency 'smtp_mock', '~> 1.3', '>= 1.3.6'
spec.add_development_dependency 'truemail-rspec', '~> 1.2'
spec.add_development_dependency 'webmock', '~> 3.19', '>= 3.19.1'
end

0 comments on commit cdae41a

Please sign in to comment.