-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Development environment guide * Updated gemspecs * Updated codeclimate/circleci configs * Updated gem development dependencies * Updated gem version, changelog
- Loading branch information
Showing
12 changed files
with
119 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative 'lib/smtp_mock/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'smtp_mock' | ||
spec.version = SmtpMock::VERSION | ||
spec.authors = ['Vladislav Trotsenko'] | ||
spec.email = ['[email protected]'] | ||
|
||
spec.summary = %(smtp_mock) | ||
spec.description = %(💎 Ruby SMTP mock. Mimic any SMTP server behaviour for your test environment.) | ||
|
||
spec.homepage = 'https://github.com/mocktools/ruby-smtp-mock' | ||
spec.license = 'MIT' | ||
|
||
spec.metadata = { | ||
'homepage_uri' => 'https://github.com/mocktools/ruby-smtp-mock', | ||
'changelog_uri' => 'https://github.com/mocktools/ruby-smtp-mock/blob/master/CHANGELOG.md', | ||
'source_code_uri' => 'https://github.com/mocktools/ruby-smtp-mock', | ||
'documentation_uri' => 'https://github.com/mocktools/ruby-smtp-mock/blob/master/README.md', | ||
'bug_tracker_uri' => 'https://github.com/mocktools/ruby-smtp-mock/issues' | ||
} | ||
|
||
spec.required_ruby_version = '>= 2.5.0' | ||
|
||
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
spec.executables = %w[smtp_mock] | ||
spec.require_paths = %w[lib] | ||
spec.post_install_message = 'smtpmock is required system dependency. For more details run: `bundle exec smtp_mock -h`' | ||
|
||
spec.add_runtime_dependency 'dry-struct', '~> 1.4' | ||
|
||
spec.add_development_dependency 'bundler-audit', '~> 0.9.0.1' | ||
spec.add_development_dependency 'fasterer', '~> 0.9.0' | ||
spec.add_development_dependency 'ffaker', '~> 2.20' | ||
spec.add_development_dependency 'net-smtp', '~> 0.3.1' | ||
spec.add_development_dependency 'overcommit', '~> 0.58.0' | ||
spec.add_development_dependency 'pry-byebug', '~> 3.9' | ||
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6' | ||
spec.add_development_dependency 'reek', '~> 6.1' | ||
spec.add_development_dependency 'rspec', '~> 3.11' | ||
spec.add_development_dependency 'rubocop', '~> 1.26' | ||
spec.add_development_dependency 'rubocop-performance', '~> 1.13', '>= 1.13.3' | ||
spec.add_development_dependency 'rubocop-rspec', '~> 2.9' | ||
spec.add_development_dependency 'simplecov', '~> 0.21.2' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ checks: | |
plugins: | ||
rubocop: | ||
enabled: true | ||
channel: rubocop-1-25 | ||
channel: rubocop-1-26 | ||
|
||
reek: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Development environment guide | ||
|
||
## Preparing | ||
|
||
Clone `smtp_mock` repository: | ||
|
||
```bash | ||
git clone https://github.com/mocktools/ruby-smtp-mock.git | ||
cd ruby-smtp-mock | ||
``` | ||
|
||
Configure latest Ruby environment: | ||
|
||
```bash | ||
echo 'ruby-3.1.1' > .ruby-version | ||
cp .circleci/gemspec_latest smtp_mock.gemspec | ||
``` | ||
|
||
## Commiting | ||
|
||
Commit your changes excluding `.ruby-version`, `smtp_mock.gemspec` | ||
|
||
```bash | ||
git add . ':!.ruby-version' ':!smtp_mock.gemspec' | ||
git commit -m 'Your new awesome smtp_mock feature' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ruby-3.1.0 | ||
ruby-2.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module SmtpMock | ||
VERSION = '1.0.0' | ||
VERSION = '1.0.1' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'pry' | ||
require 'pry' if ::RUBY_VERSION[/\A3\.1.+\z/] |