truemail 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +14 -14
- data/README.md +8 -0
- data/lib/truemail.rb +2 -3
- data/lib/truemail/audit/ptr.rb +1 -0
- data/lib/truemail/configuration.rb +0 -2
- data/lib/truemail/core.rb +2 -2
- data/lib/truemail/version.rb +1 -1
- data/truemail.gemspec +3 -3
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31b9d354c841d370094f66ba22e481aded3501b0b17206b61eeb1c768d756ea1
|
4
|
+
data.tar.gz: dbe57fe9cdc4763b4fc60c75aaf313aa1dd4ddff2cb5f60c1af9b3a6caddb659
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e319f8eeaadba558bc79173fb5765c615c0b67112d49b45eeaee07b3c3f496019eb89ebb95f736c0413eb08d0e7b1b1b6579389bd02e13c33464eefef8aaa82
|
7
|
+
data.tar.gz: 4093fc875a8363d7fe7211c0d1e698ac081c80ff63e8a01e3fc7bef913a65b71743afbc47f0de7eaa4d203f32e3560b40336b5d311b48449dde6542c9c8e9164
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
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
3
|
|
4
|
+
## [1.6.1] - 2020.03.23
|
5
|
+
### Changed
|
6
|
+
- `Truemail.configuration`
|
7
|
+
- `Truemail::ArgumentError`
|
8
|
+
- `Truemail::Audit::Ptr`
|
9
|
+
- `Truemail::VERSION`
|
10
|
+
- gem development dependencies
|
11
|
+
- gem documentation
|
12
|
+
|
13
|
+
### Removed
|
14
|
+
`Truemail::Configuration.retry_count` deprecated, and alias for this method has been removed. Please use `Truemail::Configuration.connection_attempts` instead.
|
15
|
+
|
4
16
|
## [1.6.0] - 2020-02-01
|
5
17
|
### Added
|
6
18
|
- Possibility to use `Truemail::Validator` instance represented as json directly
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
truemail (1.6.
|
4
|
+
truemail (1.6.1)
|
5
5
|
simpleidn (~> 0.1.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -28,10 +28,10 @@ GEM
|
|
28
28
|
diff-lcs (1.3)
|
29
29
|
docile (1.3.2)
|
30
30
|
equalizer (0.0.11)
|
31
|
-
fasterer (0.8.
|
31
|
+
fasterer (0.8.2)
|
32
32
|
colorize (~> 0.7)
|
33
33
|
ruby_parser (>= 3.14.1)
|
34
|
-
ffaker (2.
|
34
|
+
ffaker (2.14.0)
|
35
35
|
ice_nine (0.11.2)
|
36
36
|
iniparse (1.4.4)
|
37
37
|
jaro_winkler (1.5.4)
|
@@ -40,19 +40,19 @@ GEM
|
|
40
40
|
json_schema
|
41
41
|
json_schema (0.20.8)
|
42
42
|
kwalify (0.7.2)
|
43
|
-
method_source (0.
|
43
|
+
method_source (1.0.0)
|
44
44
|
overcommit (0.52.1)
|
45
45
|
childprocess (>= 0.6.3, < 4)
|
46
46
|
iniparse (~> 1.4)
|
47
47
|
parallel (1.19.1)
|
48
48
|
parser (2.7.0.2)
|
49
49
|
ast (~> 2.4.0)
|
50
|
-
pry (0.
|
51
|
-
coderay (~> 1.1
|
52
|
-
method_source (~>
|
53
|
-
pry-byebug (3.
|
50
|
+
pry (0.13.0)
|
51
|
+
coderay (~> 1.1)
|
52
|
+
method_source (~> 1.0)
|
53
|
+
pry-byebug (3.9.0)
|
54
54
|
byebug (~> 11.0)
|
55
|
-
pry (~> 0.
|
55
|
+
pry (~> 0.13.0)
|
56
56
|
psych (3.1.0)
|
57
57
|
rainbow (3.0.0)
|
58
58
|
rake (13.0.1)
|
@@ -87,9 +87,9 @@ GEM
|
|
87
87
|
rubocop-rspec (1.37.1)
|
88
88
|
rubocop (>= 0.68.1)
|
89
89
|
ruby-progressbar (1.10.1)
|
90
|
-
ruby_parser (3.14.
|
90
|
+
ruby_parser (3.14.2)
|
91
91
|
sexp_processor (~> 4.9)
|
92
|
-
sexp_processor (4.
|
92
|
+
sexp_processor (4.14.1)
|
93
93
|
simplecov (0.17.1)
|
94
94
|
docile (~> 1.1)
|
95
95
|
json (>= 1.8, < 3)
|
@@ -118,11 +118,11 @@ PLATFORMS
|
|
118
118
|
DEPENDENCIES
|
119
119
|
bundler (~> 1.16)
|
120
120
|
bundler-audit (~> 0.6.1)
|
121
|
-
fasterer (~> 0.8.
|
122
|
-
ffaker (~> 2.
|
121
|
+
fasterer (~> 0.8.2)
|
122
|
+
ffaker (~> 2.14)
|
123
123
|
json_matchers (~> 0.11.1)
|
124
124
|
overcommit (~> 0.52.1)
|
125
|
-
pry-byebug (~> 3.
|
125
|
+
pry-byebug (~> 3.9)
|
126
126
|
rake (~> 13.0, >= 13.0.1)
|
127
127
|
reek (~> 5.6)
|
128
128
|
rspec (~> 3.9)
|
data/README.md
CHANGED
@@ -1012,6 +1012,14 @@ end
|
|
1012
1012
|
|
1013
1013
|
All Truemail extensions: https://github.com/truemail-rb
|
1014
1014
|
|
1015
|
+
### truemail server
|
1016
|
+
|
1017
|
+
Lightweight rack based web API wrapper for Truemail, https://github.com/truemail-rb/truemail-rack
|
1018
|
+
|
1019
|
+
### truemail-rack-docker-image
|
1020
|
+
|
1021
|
+
Lightweight rack based web API dockerized image :whale: of [Truemail server](https://github.com/truemail-rb/truemail-rack) hosted on [dockerhub](https://hub.docker.com/r/truemail/truemail-rack), https://github.com/truemail-rb/truemail-rack-docker-image
|
1022
|
+
|
1015
1023
|
### truemail-rspec
|
1016
1024
|
|
1017
1025
|
gem `truemail-rspec` - Truemail configuration and validator RSpec helpers, https://github.com/truemail-rb/truemail-rspec
|
data/lib/truemail.rb
CHANGED
@@ -7,11 +7,10 @@ module Truemail
|
|
7
7
|
NOT_CONFIGURED = 'use Truemail.configure before or pass custom configuration'
|
8
8
|
|
9
9
|
class << self
|
10
|
-
def configuration
|
10
|
+
def configuration(&block)
|
11
11
|
@configuration ||= begin
|
12
12
|
return unless block_given?
|
13
|
-
configuration = Truemail::Configuration.new
|
14
|
-
yield(configuration)
|
13
|
+
configuration = Truemail::Configuration.new(&block)
|
15
14
|
raise_unless(configuration.complete?, Truemail::INCOMPLETE_CONFIG)
|
16
15
|
configuration
|
17
16
|
end
|
data/lib/truemail/audit/ptr.rb
CHANGED
@@ -22,8 +22,6 @@ module Truemail
|
|
22
22
|
|
23
23
|
attr_accessor :whitelist_validation, :smtp_safe_check
|
24
24
|
|
25
|
-
alias retry_count connection_attempts
|
26
|
-
|
27
25
|
def initialize(&block)
|
28
26
|
instance_initializer.each do |instace_variable, value|
|
29
27
|
instance_variable_set(:"@#{instace_variable}", value)
|
data/lib/truemail/core.rb
CHANGED
@@ -12,8 +12,8 @@ module Truemail
|
|
12
12
|
ConfigurationError = Class.new(StandardError)
|
13
13
|
|
14
14
|
ArgumentError = Class.new(StandardError) do
|
15
|
-
def initialize(
|
16
|
-
super("#{
|
15
|
+
def initialize(arg_value, arg_name)
|
16
|
+
super("#{arg_value} is not a valid #{arg_name}")
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
data/lib/truemail/version.rb
CHANGED
data/truemail.gemspec
CHANGED
@@ -27,11 +27,11 @@ Gem::Specification.new do |spec|
|
|
27
27
|
|
28
28
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
29
29
|
spec.add_development_dependency 'bundler-audit', '~> 0.6.1'
|
30
|
-
spec.add_development_dependency 'fasterer', '~> 0.8.
|
31
|
-
spec.add_development_dependency 'ffaker', '~> 2.
|
30
|
+
spec.add_development_dependency 'fasterer', '~> 0.8.2'
|
31
|
+
spec.add_development_dependency 'ffaker', '~> 2.14'
|
32
32
|
spec.add_development_dependency 'json_matchers', '~> 0.11.1'
|
33
33
|
spec.add_development_dependency 'overcommit', '~> 0.52.1'
|
34
|
-
spec.add_development_dependency 'pry-byebug', '~> 3.
|
34
|
+
spec.add_development_dependency 'pry-byebug', '~> 3.9'
|
35
35
|
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.1'
|
36
36
|
spec.add_development_dependency 'reek', '~> 5.6'
|
37
37
|
spec.add_development_dependency 'rspec', '~> 3.9'
|
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: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladislav Trotsenko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simpleidn
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.8.
|
61
|
+
version: 0.8.2
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.8.
|
68
|
+
version: 0.8.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: ffaker
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '2.
|
75
|
+
version: '2.14'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '2.
|
82
|
+
version: '2.14'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: json_matchers
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '3.
|
117
|
+
version: '3.9'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '3.
|
124
|
+
version: '3.9'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rake
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|