smtp_mock 1.2.0 → 1.2.2

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: 61d44a5dae5f6ba3f2a8b9dfea9ef79f66d87cc229d0f2b67351e93898e81c99
4
- data.tar.gz: 211930e92b9075fb4d0afbb70729814344752ceb5a8839408f4d0e24449cae0e
3
+ metadata.gz: 81b2778a019cbd2da371fb35e7f13c6a00bde745f3282b37e1b3c99be6832868
4
+ data.tar.gz: cb12eb6af66cd0617696099af93f7f0cc988b2acb307c1ee99fe8e311706b0f4
5
5
  SHA512:
6
- metadata.gz: 8d3615059b8c883c0cb3fb71be0bcabb7bdd1c31489d2e2c2585aaa81823f83f6386dfaff15b17854bc22ffd7224514e15765a52556c8e5a08cc6d55d969da3c
7
- data.tar.gz: 4a58ac1a1e53a7b04f204dae54ee57d572189d02f2a09b0c73cd3d3e76ccddd86bd7dda95dc1e00a10b7411cbb704c8801c7e8285507bda915a0f8538dd0761e
6
+ metadata.gz: 2f3d18d3d2061ae6d2b68c0fa3208771364c6bec3edef8e801374f72a73cc319081e4e8801245e9f48541b099f1087ce0ffea4038e056ae608bec97c0ce66ba8
7
+ data.tar.gz: e9eaa27cabb82d68fd988443a69fa24ac4a8111dd1d86d74da9322e3aceabb3b5fd637d6a033038e44f90df6a4904af70db41941fa1e5351d2f816deb3913755
data/.circleci/config.yml CHANGED
@@ -122,7 +122,7 @@ jobs:
122
122
  - checkout
123
123
  - <<: *use_compatible_gemspec
124
124
  - ruby/install-deps:
125
- bundler-version: "2.3.18"
125
+ bundler-version: "2.3.23"
126
126
  with-cache: false
127
127
  path: './vendor/custom_bundle'
128
128
  - <<: *system_dependencies
@@ -34,14 +34,14 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency 'bundler-audit', '~> 0.9.1'
35
35
  spec.add_development_dependency 'fasterer', '~> 0.10.0'
36
36
  spec.add_development_dependency 'ffaker', '~> 2.21'
37
- spec.add_development_dependency 'net-smtp', '~> 0.3.1'
37
+ spec.add_development_dependency 'net-smtp', '~> 0.3.2'
38
38
  spec.add_development_dependency 'overcommit', '~> 0.59.1'
39
- spec.add_development_dependency 'pry-byebug', '~> 3.9'
39
+ spec.add_development_dependency 'pry-byebug', '~> 3.10', '>= 3.10.1'
40
40
  spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
41
41
  spec.add_development_dependency 'reek', '~> 6.1', '>= 6.1.1'
42
42
  spec.add_development_dependency 'rspec', '~> 3.11'
43
- spec.add_development_dependency 'rubocop', '~> 1.32'
44
- spec.add_development_dependency 'rubocop-performance', '~> 1.14', '>= 1.14.3'
45
- spec.add_development_dependency 'rubocop-rspec', '~> 2.12', '>= 2.12.1'
43
+ spec.add_development_dependency 'rubocop', '~> 1.36'
44
+ spec.add_development_dependency 'rubocop-performance', '~> 1.15'
45
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.13', '>= 2.13.2'
46
46
  spec.add_development_dependency 'simplecov', '~> 0.21.2'
47
47
  end
data/.codeclimate.yml CHANGED
@@ -7,7 +7,7 @@ checks:
7
7
  plugins:
8
8
  rubocop:
9
9
  enabled: true
10
- channel: rubocop-1-32
10
+ channel: rubocop-1-36
11
11
 
12
12
  reek:
13
13
  enabled: true
data/CHANGELOG.md CHANGED
@@ -2,13 +2,37 @@
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
+ ## [1.2.2] - 2022-10-05
6
+
7
+ ### Fixed
8
+
9
+ - Fixed wrong semantic version comparison in `SmtpMock::Dependency#minimal_version?`
10
+
11
+ ### Updated
12
+
13
+ - Updated gemspecs
14
+ - Updated tests
15
+ - Updated codeclimate/circleci configs
16
+ - Updated gem development dependencies
17
+ - Updated gem version
18
+
19
+ ## [1.2.1] - 2022-07-27
20
+
21
+ ### Fixed
22
+
23
+ - Fixed documentation
24
+
25
+ ### Updated
26
+
27
+ - Updated gem documentation, version
28
+
5
29
  ## [1.2.0] - 2022-07-27
6
30
 
7
31
  ### Added
8
32
 
9
- - Ability to use `RSET` SMTP command
10
- - Ability to configure multiple message receiving flow during one session
11
- - Ability to configure SMTP command delay responses
33
+ - Added ability to use `RSET` SMTP command
34
+ - Added ability to configure multiple message receiving flow during one session
35
+ - Added ability to configure SMTP command delay responses
12
36
 
13
37
  ### Updated
14
38
 
data/README.md CHANGED
@@ -95,7 +95,7 @@ This gem includes easy system dependency manager. Run `bundle exec smtp_mock` wi
95
95
  | `session_timeout: 60` | Session timeout in seconds. It's equal to 30 seconds by default |
96
96
  | `shutdown_timeout: 5` | Graceful shutdown timeout in seconds. It's equal to 1 second by default |
97
97
  | `fail_fast: true` | Enables fail fast scenario. Disabled by default |
98
- | `multipleMessageReceiving: true` | Enables multiple message receiving scenario. Disabled by default |
98
+ | `multiple_message_receiving: true` | Enables multiple message receiving scenario. Disabled by default |
99
99
  | `blacklisted_helo_domains: %w[a.com b.com]` | Blacklisted `HELO` domains |
100
100
  | `blacklisted_mailfrom_emails: %w[a@a.com b@b.com]` | Blacklisted `MAIL FROM` emails |
101
101
  | `blacklisted_rcptto_emails: %w[c@c.com d@d.com]` | blacklisted `RCPT TO` emails |
@@ -36,7 +36,7 @@ module SmtpMock
36
36
  private
37
37
 
38
38
  def minimal_version?(current_version)
39
- !!current_version && current_version >= SmtpMock::SMTPMOCK_MIN_VERSION
39
+ !!current_version && ::Gem::Version.new(current_version) >= ::Gem::Version.new(SmtpMock::SMTPMOCK_MIN_VERSION)
40
40
  end
41
41
  end
42
42
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SmtpMock
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.2'
5
5
  end
data/smtp_mock.gemspec CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_runtime_dependency 'dry-struct', '~> 1.4'
33
33
 
34
34
  spec.add_development_dependency 'ffaker', '~> 2.21'
35
- spec.add_development_dependency 'net-smtp', '~> 0.3.1' if ::RUBY_VERSION >= '3.1.0'
35
+ spec.add_development_dependency 'net-smtp', '~> 0.3.2' if ::RUBY_VERSION >= '3.1.0'
36
36
  spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
37
37
  spec.add_development_dependency 'rspec', '~> 3.11'
38
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smtp_mock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladislav Trotsenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-26 00:00:00.000000000 Z
11
+ date: 2022-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct