smtp_mock 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +0 -3
- data/CHANGELOG.md +7 -0
- data/README.md +6 -3
- data/lib/smtp_mock/cli/resolver.rb +3 -4
- data/lib/smtp_mock/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6fcd84a6232032428e31f2d0627b9c72a98a74a257dcb7638fb8b0bb11dbba5
|
4
|
+
data.tar.gz: 1b06de5c2a1009eb9dddc7f3b1aa2a15573f6f2ff2fadd2a4d81fb50c8c7d91f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd6df23a441cebf9a7d597d770f16af4548880da884082c32e91f507399a76e953a274ee6985f963143cd5fac98560cd5d9563896c3f8019a26ee266f4c29d3a
|
7
|
+
data.tar.gz: aa7c24286f3e74b059b48f3d59f67e5dd4548feabcdc3cd85ae6381d8950c64ec5042ca84baa6d06e1a55155668f2f296c7e6fd95bf1bcdb6614e81024ea282c
|
data/.codeclimate.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
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
|
+
## [0.1.2] - 2022-01-24
|
6
|
+
|
7
|
+
### Updated
|
8
|
+
|
9
|
+
- Updated `SmtpMock::Cli::Command`, tests
|
10
|
+
- Updated gem version, documentation
|
11
|
+
|
5
12
|
## [0.1.1] - 2022-01-18
|
6
13
|
|
7
14
|
### Updated
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ![Ruby SmtpMock - mimic any 📤 SMTP server behaviour for your test environment
|
1
|
+
# ![Ruby SmtpMock - mimic any 📤 SMTP server behaviour for your test environment with fake SMTP server](https://repository-images.githubusercontent.com/443795043/81ce5b00-0915-4dd0-93ad-88e6699e18cd)
|
2
2
|
|
3
3
|
[![Maintainability](https://api.codeclimate.com/v1/badges/315c5fff7449a11868dd/maintainability)](https://codeclimate.com/github/mocktools/ruby-smtp-mock/maintainability)
|
4
4
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/315c5fff7449a11868dd/test_coverage)](https://codeclimate.com/github/mocktools/ruby-smtp-mock/test_coverage)
|
@@ -70,7 +70,7 @@ Then install [`smtpmock`](https://github.com/mocktools/go-smtp-mock) as system d
|
|
70
70
|
|
71
71
|
### Dependency manager
|
72
72
|
|
73
|
-
This gem includes
|
73
|
+
This gem includes easy system dependency manager. Run `bundle exec smtp_mock` with options for manage `smtpmock` system dependency.
|
74
74
|
|
75
75
|
#### Available flags
|
76
76
|
|
@@ -157,6 +157,7 @@ Require this either in your Gemfile or in RSpec's support scripts. So either:
|
|
157
157
|
|
158
158
|
```ruby
|
159
159
|
# Gemfile
|
160
|
+
|
160
161
|
group :test do
|
161
162
|
gem 'rspec'
|
162
163
|
gem 'smtp_mock', require: 'smtp_mock/test_framework/rspec'
|
@@ -167,6 +168,7 @@ or
|
|
167
168
|
|
168
169
|
```ruby
|
169
170
|
# spec/support/config/smtp_mock.rb
|
171
|
+
|
170
172
|
require 'smtp_mock/test_framework/rspec'
|
171
173
|
```
|
172
174
|
|
@@ -176,13 +178,14 @@ Just add `SmtpMock::TestFramework::RSpec::Helper` if you wanna use shortcut `smt
|
|
176
178
|
|
177
179
|
```ruby
|
178
180
|
# spec/support/config/smtp_mock.rb
|
181
|
+
|
179
182
|
RSpec.configure do |config|
|
180
183
|
config.include SmtpMock::TestFramework::RSpec::Helper
|
181
184
|
end
|
182
185
|
```
|
183
186
|
|
184
187
|
```ruby
|
185
|
-
# your awesome
|
188
|
+
# your awesome smtp_client_spec.rb
|
186
189
|
|
187
190
|
RSpec.describe SmtpClient do
|
188
191
|
subject(:smtp_response) do
|
@@ -36,12 +36,11 @@ module SmtpMock
|
|
36
36
|
self.message = 'smtpmock was uninstalled successfully'
|
37
37
|
end
|
38
38
|
|
39
|
-
self.success = true
|
40
|
-
|
41
39
|
parser.on('-h', '--help', 'Prints help') do
|
42
|
-
|
43
|
-
::Kernel.exit
|
40
|
+
self.message = parser.to_s
|
44
41
|
end
|
42
|
+
|
43
|
+
self.success = true
|
45
44
|
end
|
46
45
|
|
47
46
|
opt_parser.parse(command_line_args) # TODO: add error handler
|
data/lib/smtp_mock/version.rb
CHANGED
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: 0.1.
|
4
|
+
version: 0.1.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-01-
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|