truemail 2.3.3 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9278c398836ba8731183142427f3fa0728e21d7661a08393c75a64ca33ceb88b
4
- data.tar.gz: 194d45d32a45e82bcb5443be004a0c13c9e1faafc576d3dc859d475171c1265c
3
+ metadata.gz: 9a738f1fd2c236927014ba6a2303921ae8a90f33866bc4bc58e95fd8c8061e71
4
+ data.tar.gz: 43c708aa1253358616601ffce03a9ba743eb44ba428d47c67b02ea13712dea26
5
5
  SHA512:
6
- metadata.gz: 15b3683a39653524897a7a291b9363dffe1c5b225db275c1739272139c0ede302da3b02bea4ce88b6612907ba25bf4b003c8bceca945ea0df06ba7a79f681f85
7
- data.tar.gz: 52758d413fa43e9e0aab0f3d1cad1a53f552cfaa5768813719bd868e0d46322357064a8a433446977fc52a2323936e38c3f646f2901e8cf87c253695c968c08a
6
+ metadata.gz: f9546a0c5c6db1e8653536f084e746bd98d48454c9b8ff7c05a23c2551315b500ed2d6be55d050f4f5ba4d1794107330453dd6b5a346e3a20feb432aeb47d5e3
7
+ data.tar.gz: 5b955a25e540ef7330360e8b8b8ce65b02eea78af89d6f1f288c9db2e83122ea7894f33df1772e126107a63911e7cca20dd671ba22c2c1db9f519da50b2855c1
File without changes
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  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).
4
4
 
5
+ ## [2.3.4] - 2021.04.16
6
+
7
+ ### Fixed
8
+
9
+ Fixed bug with impossibility to use valid dns port number. Now validation for dns port for range `1..65535` works as expected.
10
+
11
+ - Updated `Truemail::RegexConstant::REGEX_PORT_NUMBER`, tests
12
+ - Updated gem documentation
13
+ - CircleCI config moved to `.circleci/config.yml`
14
+
5
15
  ## [2.3.3] - 2021.04.14
6
16
 
7
17
  ### Changed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- truemail (2.3.3)
4
+ truemail (2.3.4)
5
5
  simpleidn (~> 0.2.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -203,9 +203,9 @@ Truemail.configure do |config|
203
203
  config.blacklisted_domains = ['somedomain1.com', 'somedomain2.com']
204
204
 
205
205
  # Optional parameter. This option will provide to use custom DNS gateway when Truemail
206
- # interacts with DNS. If you won't specify nameserver's ports Truemail will use default
207
- # DNS TCP/UDP port 53. By default Truemail uses DNS gateway from system settings
208
- # and this option is equal to empty array.
206
+ # interacts with DNS. Valid port numbers are in the range 1-65535. If you won't specify
207
+ # nameserver's ports Truemail will use default DNS TCP/UDP port 53. By default Truemail
208
+ # uses DNS gateway from system settings and this option is equal to empty array.
209
209
  config.dns = ['10.0.0.1', '10.0.0.2:54']
210
210
 
211
211
  # Optional parameter. This option will provide to use not RFC MX lookup flow.
data/lib/truemail/core.rb CHANGED
@@ -24,7 +24,7 @@ module Truemail
24
24
  REGEX_DOMAIN_PATTERN = /(?=\A.{4,255}\z)(\A#{REGEX_DOMAIN}\z)/.freeze
25
25
  REGEX_DOMAIN_FROM_EMAIL = /\A.+@(.+)\z/.freeze
26
26
  REGEX_SMTP_ERROR_BODY_PATTERN = /(?=.*550)(?=.*(user|account|customer|mailbox)).*/i.freeze
27
- REGEX_PORT_NUMBER = /(6553[0-5]|655[0-2][0-9]\d|65[0-4](\d){2}|6[0-4](\d){3}|[1-5](\d){4}|[1-9](\d){0,3})/.freeze
27
+ REGEX_PORT_NUMBER = /6553[0-5]|655[0-2]\d|65[0-4](\d){2}|6[0-4](\d){3}|[1-5](\d){4}|[1-9](\d){0,3}/.freeze
28
28
  REGEX_DNS_SERVER_ADDRESS_PATTERN = /\A((1\d|[1-9]|2[0-4])?\d|25[0-5])(\.\g<1>){3}(:#{REGEX_PORT_NUMBER})?\z/.freeze
29
29
  end
30
30
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Truemail
4
- VERSION = '2.3.3'
4
+ VERSION = '2.3.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: truemail
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladislav Trotsenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-14 00:00:00.000000000 Z
11
+ date: 2021-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simpleidn
@@ -306,6 +306,7 @@ executables: []
306
306
  extensions: []
307
307
  extra_rdoc_files: []
308
308
  files:
309
+ - ".circleci/config.yml"
309
310
  - ".codeclimate.yml"
310
311
  - ".github/BRANCH_NAMING_CONVENTION.md"
311
312
  - ".github/ISSUE_TEMPLATE/bug_report.md"
@@ -330,7 +331,6 @@ files:
330
331
  - Rakefile
331
332
  - bin/console
332
333
  - bin/setup
333
- - circle.yml
334
334
  - lib/truemail.rb
335
335
  - lib/truemail/audit/base.rb
336
336
  - lib/truemail/audit/dns.rb