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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dccc759c41d239a8155971f6737f25b21316b8ce260c8857796df3b9e7dd11c7
4
- data.tar.gz: 57b7f87e53a724d728a6ee8049ba02b4c722a6b8168c7ac5d28e51632520819b
3
+ metadata.gz: c6fcd84a6232032428e31f2d0627b9c72a98a74a257dcb7638fb8b0bb11dbba5
4
+ data.tar.gz: 1b06de5c2a1009eb9dddc7f3b1aa2a15573f6f2ff2fadd2a4d81fb50c8c7d91f
5
5
  SHA512:
6
- metadata.gz: d82a4ea78742c7badea54814e2b3a2f86c01c021cac9fbca7a2889c81e87bf5792e05b968aa88f3ab7309d900198bcfd2beb111b17c5bbcde0125aa310f879b2
7
- data.tar.gz: bf6258d619446af3f679c34cef262d0e8597c8e6e3f49e10a96272d73951f15b4715118d0609ce6eb6c42347695c29751ead62ec79ceb32e223abf58981ab5e9
6
+ metadata.gz: bd6df23a441cebf9a7d597d770f16af4548880da884082c32e91f507399a76e953a274ee6985f963143cd5fac98560cd5d9563896c3f8019a26ee266f4c29d3a
7
+ data.tar.gz: aa7c24286f3e74b059b48f3d59f67e5dd4548feabcdc3cd85ae6381d8950c64ec5042ca84baa6d06e1a55155668f2f296c7e6fd95bf1bcdb6614e81024ea282c
data/.codeclimate.yml CHANGED
@@ -8,9 +8,6 @@ plugins:
8
8
  rubocop:
9
9
  enabled: true
10
10
  channel: rubocop-1-24
11
- checks:
12
- Rubocop/Metrics/MethodLength:
13
- enabled: false
14
11
 
15
12
  reek:
16
13
  enabled: true
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 and even more!](https://repository-images.githubusercontent.com/443795043/81ce5b00-0915-4dd0-93ad-88e6699e18cd)
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 esasy system dependency manager. Run `bundle exec smtp_mock` with options for manage `smtpmock` system dependency.
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 first_a_record_spec.rb
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
- ::Kernel.puts(parser.to_s)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SmtpMock
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  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: 0.1.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-18 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct