smtp_mock 1.0.0 → 1.0.1

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: 6e7b1afecc17c4c1905acc7008dece2c87908a622adf0d3e7fa4093b3385584d
4
- data.tar.gz: a8e006258b42098c2b35cbadd10b7004b7099942d18cdd6baec533fc7abc62c7
3
+ metadata.gz: 33e54a07175e2b3e8245c8934d9839082a28e02f51d958127135342187e87326
4
+ data.tar.gz: cf9ff702f31049e1bc849bcde4f3cee662a5e76d77adf7f2404e634c35e9a53a
5
5
  SHA512:
6
- metadata.gz: 9713d4cd810845321ce7b7bce79717382da3652b3475836342e5a68433d7ee92246ff456285cc905d862030801a7c545b89780100bd5e867ab433f6bf82ae29a
7
- data.tar.gz: cd51a1f5a1bd7f70b9babe5b4cf2cbfd8ab17333bd1b739a941f598960b1b6e1de8baddceda89aad0e0276ddf64a1ba17074fed4989a2d09e62b0aa0638ccb0f
6
+ metadata.gz: 4e13797075610d3a5d99917a8d4584014ef320bc8a522a2785061b24d1fe842dda34d9cee834af07918ae9b826de3566244bdd0b693ac632363bebe6302874dc
7
+ data.tar.gz: 490d7e3e2688ef984bd2de0a90a90ee9946120ae0eb2b532eb561e4e8b102b0ef6e8e6d4cfe80df6edd111e4e15e03c84e58b7c1e0bd35186c19c89835e41a04
data/.circleci/config.yml CHANGED
@@ -40,9 +40,15 @@ references:
40
40
  curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
41
41
  chmod +x ./cc-test-reporter
42
42
 
43
+ use_latest_gemspec: &use_latest_gemspec
44
+ run:
45
+ name: Using latest gemspec
46
+ command: |
47
+ cp .circleci/gemspec_latest smtp_mock.gemspec
48
+
43
49
  use_compatible_gemspec: &use_compatible_gemspec
44
50
  run:
45
- name: Use compatible gemspec
51
+ name: Using compatible gemspec
46
52
  command: |
47
53
  cp .circleci/gemspec_compatible smtp_mock.gemspec
48
54
 
@@ -57,6 +63,7 @@ jobs:
57
63
  steps:
58
64
  - checkout
59
65
 
66
+ - <<: *use_latest_gemspec
60
67
  - <<: *restore_bundle_cache
61
68
  - <<: *bundle_install
62
69
  - <<: *save_bundle_cache
@@ -77,6 +84,7 @@ jobs:
77
84
  steps:
78
85
  - checkout
79
86
 
87
+ - <<: *use_latest_gemspec
80
88
  - <<: *restore_bundle_cache
81
89
  - <<: *bundle_install
82
90
  - <<: *save_bundle_cache
@@ -114,7 +122,7 @@ jobs:
114
122
  - checkout
115
123
  - <<: *use_compatible_gemspec
116
124
  - ruby/install-deps:
117
- bundler-version: "2.3.5"
125
+ bundler-version: "2.3.9"
118
126
  with-cache: false
119
127
  path: './vendor/custom_bundle'
120
128
  - <<: *system_dependencies
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = ::File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'smtp_mock/version'
3
+ require_relative 'lib/smtp_mock/version'
6
4
 
7
5
  Gem::Specification.new do |spec|
8
6
  spec.name = 'smtp_mock'
@@ -33,7 +31,6 @@ Gem::Specification.new do |spec|
33
31
  spec.add_runtime_dependency 'dry-struct', '~> 1.4'
34
32
 
35
33
  spec.add_development_dependency 'ffaker', '~> 2.20'
36
- spec.add_development_dependency 'pry-byebug', '~> 3.9'
37
34
  spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
38
- spec.add_development_dependency 'rspec', '~> 3.10'
35
+ spec.add_development_dependency 'rspec', '~> 3.11'
39
36
  end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/smtp_mock/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'smtp_mock'
7
+ spec.version = SmtpMock::VERSION
8
+ spec.authors = ['Vladislav Trotsenko']
9
+ spec.email = ['admin@bestweb.com.ua']
10
+
11
+ spec.summary = %(smtp_mock)
12
+ spec.description = %(💎 Ruby SMTP mock. Mimic any SMTP server behaviour for your test environment.)
13
+
14
+ spec.homepage = 'https://github.com/mocktools/ruby-smtp-mock'
15
+ spec.license = 'MIT'
16
+
17
+ spec.metadata = {
18
+ 'homepage_uri' => 'https://github.com/mocktools/ruby-smtp-mock',
19
+ 'changelog_uri' => 'https://github.com/mocktools/ruby-smtp-mock/blob/master/CHANGELOG.md',
20
+ 'source_code_uri' => 'https://github.com/mocktools/ruby-smtp-mock',
21
+ 'documentation_uri' => 'https://github.com/mocktools/ruby-smtp-mock/blob/master/README.md',
22
+ 'bug_tracker_uri' => 'https://github.com/mocktools/ruby-smtp-mock/issues'
23
+ }
24
+
25
+ spec.required_ruby_version = '>= 2.5.0'
26
+
27
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
+ spec.executables = %w[smtp_mock]
29
+ spec.require_paths = %w[lib]
30
+ spec.post_install_message = 'smtpmock is required system dependency. For more details run: `bundle exec smtp_mock -h`'
31
+
32
+ spec.add_runtime_dependency 'dry-struct', '~> 1.4'
33
+
34
+ spec.add_development_dependency 'bundler-audit', '~> 0.9.0.1'
35
+ spec.add_development_dependency 'fasterer', '~> 0.9.0'
36
+ spec.add_development_dependency 'ffaker', '~> 2.20'
37
+ spec.add_development_dependency 'net-smtp', '~> 0.3.1'
38
+ spec.add_development_dependency 'overcommit', '~> 0.58.0'
39
+ spec.add_development_dependency 'pry-byebug', '~> 3.9'
40
+ spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
41
+ spec.add_development_dependency 'reek', '~> 6.1'
42
+ spec.add_development_dependency 'rspec', '~> 3.11'
43
+ spec.add_development_dependency 'rubocop', '~> 1.26'
44
+ spec.add_development_dependency 'rubocop-performance', '~> 1.13', '>= 1.13.3'
45
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.9'
46
+ spec.add_development_dependency 'simplecov', '~> 0.21.2'
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-25
10
+ channel: rubocop-1-26
11
11
 
12
12
  reek:
13
13
  enabled: true
@@ -0,0 +1,26 @@
1
+ # Development environment guide
2
+
3
+ ## Preparing
4
+
5
+ Clone `smtp_mock` repository:
6
+
7
+ ```bash
8
+ git clone https://github.com/mocktools/ruby-smtp-mock.git
9
+ cd ruby-smtp-mock
10
+ ```
11
+
12
+ Configure latest Ruby environment:
13
+
14
+ ```bash
15
+ echo 'ruby-3.1.1' > .ruby-version
16
+ cp .circleci/gemspec_latest smtp_mock.gemspec
17
+ ```
18
+
19
+ ## Commiting
20
+
21
+ Commit your changes excluding `.ruby-version`, `smtp_mock.gemspec`
22
+
23
+ ```bash
24
+ git add . ':!.ruby-version' ':!smtp_mock.gemspec'
25
+ git commit -m 'Your new awesome smtp_mock feature'
26
+ ```
data/.rubocop.yml CHANGED
@@ -166,6 +166,9 @@ Style/MapToHash:
166
166
  Style/OpenStructUse:
167
167
  Enabled: true
168
168
 
169
+ Style/NestedFileDirname:
170
+ Enabled: true
171
+
169
172
  Layout/LineLength:
170
173
  Max: 150
171
174
 
@@ -391,3 +394,9 @@ RSpec/SubjectDeclaration:
391
394
 
392
395
  RSpec/FactoryBot/SyntaxMethods:
393
396
  Enabled: true
397
+
398
+ RSpec/BeEq:
399
+ Enabled: true
400
+
401
+ RSpec/BeNil:
402
+ Enabled: true
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.1.0
1
+ ruby-2.5.0
data/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
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
+
6
+ ## [1.0.1] - 2022-03-10
7
+
8
+ ### Added
9
+
10
+ - Development environment guide
11
+
12
+ ### Updated
13
+
14
+ - Updated gemspecs
15
+ - Updated codeclimate/circleci configs
16
+ - Updated gem development dependencies
17
+ - Updated gem version
18
+
5
19
  ## [1.0.0] - 2022-01-31
6
20
 
7
21
  ### Added
data/CONTRIBUTING.md CHANGED
@@ -42,5 +42,7 @@ Guidelines for pull requests:
42
42
  2. Fork the repo, checkout to `develop` branch
43
43
  3. Run the tests. This is to make sure your starting point works
44
44
  4. Read our [branch naming convention](.github/BRANCH_NAMING_CONVENTION.md)
45
- 5. Create a new branch and make your changes. This includes tests for features!
46
- 6. Push to your fork and submit a pull request to `develop` branch
45
+ 5. Create a new branch
46
+ 6. Read our [setup development environment guide](.github/DEVELOPMENT_ENVIRONMENT_GUIDE.md)
47
+ 7. Make your changes. Please note that your PR should include tests for the new codebase!
48
+ 9. Push to your fork and submit a pull request to `develop` branch
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SmtpMock
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
data/smtp_mock.gemspec CHANGED
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = ::File.expand_path('lib', __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'smtp_mock/version'
3
+ require_relative 'lib/smtp_mock/version'
6
4
 
7
5
  Gem::Specification.new do |spec|
8
6
  spec.name = 'smtp_mock'
@@ -33,17 +31,8 @@ Gem::Specification.new do |spec|
33
31
 
34
32
  spec.add_runtime_dependency 'dry-struct', '~> 1.4'
35
33
 
36
- spec.add_development_dependency 'bundler-audit', '~> 0.9.0.1'
37
- spec.add_development_dependency 'fasterer', '~> 0.9.0'
38
34
  spec.add_development_dependency 'ffaker', '~> 2.20'
39
- spec.add_development_dependency 'net-smtp', '~> 0.3.1'
40
- spec.add_development_dependency 'overcommit', '~> 0.58.0'
41
- spec.add_development_dependency 'pry-byebug', '~> 3.9'
35
+ spec.add_development_dependency 'net-smtp', '~> 0.3.1' if ::RUBY_VERSION >= '3.1.0'
42
36
  spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
43
- spec.add_development_dependency 'reek', '~> 6.1'
44
- spec.add_development_dependency 'rspec', '~> 3.10'
45
- spec.add_development_dependency 'rubocop', '~> 1.25'
46
- spec.add_development_dependency 'rubocop-performance', '~> 1.13', '>= 1.13.2'
47
- spec.add_development_dependency 'rubocop-rspec', '~> 2.8'
48
- spec.add_development_dependency 'simplecov', '~> 0.21.2'
37
+ spec.add_development_dependency 'rspec', '~> 3.11'
49
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.0.0
4
+ version: 1.0.1
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-31 00:00:00.000000000 Z
11
+ date: 2022-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct
@@ -24,34 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.4'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler-audit
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 0.9.0.1
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 0.9.0.1
41
- - !ruby/object:Gem::Dependency
42
- name: fasterer
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 0.9.0
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 0.9.0
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: ffaker
57
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,48 +38,6 @@ dependencies:
66
38
  - - "~>"
67
39
  - !ruby/object:Gem::Version
68
40
  version: '2.20'
69
- - !ruby/object:Gem::Dependency
70
- name: net-smtp
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 0.3.1
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 0.3.1
83
- - !ruby/object:Gem::Dependency
84
- name: overcommit
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 0.58.0
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 0.58.0
97
- - !ruby/object:Gem::Dependency
98
- name: pry-byebug
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '3.9'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '3.9'
111
41
  - !ruby/object:Gem::Dependency
112
42
  name: rake
113
43
  requirement: !ruby/object:Gem::Requirement
@@ -128,96 +58,20 @@ dependencies:
128
58
  - - ">="
129
59
  - !ruby/object:Gem::Version
130
60
  version: 13.0.6
131
- - !ruby/object:Gem::Dependency
132
- name: reek
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '6.1'
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '6.1'
145
61
  - !ruby/object:Gem::Dependency
146
62
  name: rspec
147
63
  requirement: !ruby/object:Gem::Requirement
148
64
  requirements:
149
65
  - - "~>"
150
66
  - !ruby/object:Gem::Version
151
- version: '3.10'
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '3.10'
159
- - !ruby/object:Gem::Dependency
160
- name: rubocop
161
- requirement: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - "~>"
164
- - !ruby/object:Gem::Version
165
- version: '1.25'
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- requirements:
170
- - - "~>"
171
- - !ruby/object:Gem::Version
172
- version: '1.25'
173
- - !ruby/object:Gem::Dependency
174
- name: rubocop-performance
175
- requirement: !ruby/object:Gem::Requirement
176
- requirements:
177
- - - "~>"
178
- - !ruby/object:Gem::Version
179
- version: '1.13'
180
- - - ">="
181
- - !ruby/object:Gem::Version
182
- version: 1.13.2
183
- type: :development
184
- prerelease: false
185
- version_requirements: !ruby/object:Gem::Requirement
186
- requirements:
187
- - - "~>"
188
- - !ruby/object:Gem::Version
189
- version: '1.13'
190
- - - ">="
191
- - !ruby/object:Gem::Version
192
- version: 1.13.2
193
- - !ruby/object:Gem::Dependency
194
- name: rubocop-rspec
195
- requirement: !ruby/object:Gem::Requirement
196
- requirements:
197
- - - "~>"
198
- - !ruby/object:Gem::Version
199
- version: '2.8'
200
- type: :development
201
- prerelease: false
202
- version_requirements: !ruby/object:Gem::Requirement
203
- requirements:
204
- - - "~>"
205
- - !ruby/object:Gem::Version
206
- version: '2.8'
207
- - !ruby/object:Gem::Dependency
208
- name: simplecov
209
- requirement: !ruby/object:Gem::Requirement
210
- requirements:
211
- - - "~>"
212
- - !ruby/object:Gem::Version
213
- version: 0.21.2
67
+ version: '3.11'
214
68
  type: :development
215
69
  prerelease: false
216
70
  version_requirements: !ruby/object:Gem::Requirement
217
71
  requirements:
218
72
  - - "~>"
219
73
  - !ruby/object:Gem::Version
220
- version: 0.21.2
74
+ version: '3.11'
221
75
  description: "\U0001F48E Ruby SMTP mock. Mimic any SMTP server behaviour for your
222
76
  test environment."
223
77
  email:
@@ -229,8 +83,10 @@ extra_rdoc_files: []
229
83
  files:
230
84
  - ".circleci/config.yml"
231
85
  - ".circleci/gemspec_compatible"
86
+ - ".circleci/gemspec_latest"
232
87
  - ".codeclimate.yml"
233
88
  - ".github/BRANCH_NAMING_CONVENTION.md"
89
+ - ".github/DEVELOPMENT_ENVIRONMENT_GUIDE.md"
234
90
  - ".github/ISSUE_TEMPLATE/bug_report.md"
235
91
  - ".github/ISSUE_TEMPLATE/feature_request.md"
236
92
  - ".github/ISSUE_TEMPLATE/issue_report.md"
@@ -296,7 +152,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
296
152
  - !ruby/object:Gem::Version
297
153
  version: '0'
298
154
  requirements: []
299
- rubygems_version: 3.3.3
155
+ rubyforge_project:
156
+ rubygems_version: 2.7.3
300
157
  signing_key:
301
158
  specification_version: 4
302
159
  summary: smtp_mock