truemail-client 0.3.1 → 0.4.0

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: 5a409167c3748d25cdf77daab9413712e7b3eda3b4daf22583ce2f32454e3aa8
4
- data.tar.gz: a010200a17a38e82d705c7f926cef692dac02c274d18d5c67982a4c95f2b61de
3
+ metadata.gz: 0017ec293e409b63c7067b80612092b529526ad82a67f16975b30dce57dd29d3
4
+ data.tar.gz: 92f56feccafd77b19e3f6aa74a9177363e89aae40ffe1d0580ed38729dab39f1
5
5
  SHA512:
6
- metadata.gz: 27df3b47bb7ec391f571483206845567581581d6b39223b612ff3751f4f3232322feba4be494dd9f6b7ec9aeb245ecbb1014132375f1d37c0b256642d31a5727
7
- data.tar.gz: 43528b0002f699979274747718a91e096ee9eb35f338c6f1317146378650d7b5b1276bacc0ed0209e1e553c584864d06625241a9916f320c680a587e5fbcbe0d
6
+ metadata.gz: 0e08376485ee0d231bd2f4c8ee9d64e303900f85b5e0bc115df76139d20c25b7b450e967085a81372c3726c4e6285e99924c2539c45fa3fe39a923083d6f2d55
7
+ data.tar.gz: a7d6a359220232891cc5ebf06e92c6a700acce8de7270b9b87c9ed31db0da15d14d7dca7efb337bb80891377a7689ace364151ea62904b90bf2e70028c2174f3
data/.circleci/config.yml CHANGED
@@ -1,9 +1,12 @@
1
+ version: 2.1
2
+
1
3
  defaults: &defaults
2
4
  working_directory: ~/truemail-ruby-client
3
5
  docker:
4
- - image: circleci/ruby:2.5.0-node
5
- environment:
6
- CC_TEST_REPORTER_ID: 183d1173cc05e4e5dbd07ddb60a04b9c4115ed11a4bacda0e1834572eb168c51
6
+ - image: cimg/ruby:<< parameters.ruby-version >>
7
+
8
+ orbs:
9
+ ruby: circleci/ruby@1.4.0
7
10
 
8
11
  references:
9
12
  restore_bundle_cache: &restore_bundle_cache
@@ -14,7 +17,9 @@ references:
14
17
  bundle_install: &bundle_install
15
18
  run:
16
19
  name: Installing gems
17
- command: bundle install --path vendor/bundle
20
+ command: |
21
+ bundle config set --local path 'vendor/bundle'
22
+ bundle install
18
23
 
19
24
  save_bundle_cache: &save_bundle_cache
20
25
  save_cache:
@@ -24,14 +29,23 @@ references:
24
29
 
25
30
  install_codeclimate_reporter: &install_codeclimate_reporter
26
31
  run:
27
- name: Install Code Climate Test Reporter
32
+ name: Installing CodeClimate test reporter
28
33
  command: |
29
34
  curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
30
35
  chmod +x ./cc-test-reporter
31
36
 
32
- version: 2
37
+ use_compatible_gemspec: &use_compatible_gemspec
38
+ run:
39
+ name: Use compatible gemspec
40
+ command: |
41
+ cp .circleci/gemspec_compatible truemail-client.gemspec
42
+
33
43
  jobs:
34
- linters:
44
+ linters-ruby:
45
+ parameters:
46
+ ruby-version:
47
+ type: string
48
+
35
49
  <<: *defaults
36
50
 
37
51
  steps:
@@ -42,12 +56,16 @@ jobs:
42
56
  - <<: *save_bundle_cache
43
57
 
44
58
  - run:
45
- name: Running overcommit
59
+ name: Running Overcommit
46
60
  command: |
47
61
  bundle exec overcommit -s
48
62
  SKIP=AuthorEmail,AuthorName bundle exec overcommit -r
49
63
 
50
- tests:
64
+ tests-ruby:
65
+ parameters:
66
+ ruby-version:
67
+ type: string
68
+
51
69
  <<: *defaults
52
70
 
53
71
  steps:
@@ -59,31 +77,55 @@ jobs:
59
77
  - <<: *install_codeclimate_reporter
60
78
 
61
79
  - run:
62
- name: Running tests
80
+ name: Running RSpec
63
81
  command: |
64
- mkdir /tmp/test-results
65
82
  ./cc-test-reporter before-build
66
83
  bundle exec rspec
67
84
 
68
85
  - run:
69
- name: Code Climate Test Coverage
86
+ name: Creating CodeClimate test coverage report
70
87
  command: |
71
88
  ./cc-test-reporter format-coverage -t simplecov -o "coverage/codeclimate.$CIRCLE_NODE_INDEX.json"
72
89
 
73
- - store_test_results:
74
- path: /tmp/test-results
75
-
76
90
  - store_artifacts:
77
- path: /tmp/test-results
78
- destination: test-results
91
+ name: Saving Simplecov coverage artifacts
92
+ path: ~/truemail-ruby-client/coverage
93
+ destination: coverage
79
94
 
80
95
  - deploy:
96
+ name: Uploading CodeClimate test coverage report
81
97
  command: |
82
98
  ./cc-test-reporter sum-coverage --output - --parts $CIRCLE_NODE_TOTAL coverage/codeclimate.*.json | ./cc-test-reporter upload-coverage --debug --input -
83
99
 
100
+ compatibility-ruby:
101
+ parameters:
102
+ ruby-version:
103
+ type: string
104
+ docker:
105
+ - image: cimg/ruby:<< parameters.ruby-version >>
106
+ steps:
107
+ - checkout
108
+ - <<: *use_compatible_gemspec
109
+ - ruby/install-deps:
110
+ bundler-version: "2.3.5"
111
+ with-cache: false
112
+ path: './vendor/custom_bundle'
113
+ - run:
114
+ name: Running compatibility tests
115
+ command: bundle exec rspec
116
+
84
117
  workflows:
85
- version: 2
86
- build:
118
+ build_and_test:
87
119
  jobs:
88
- - linters
89
- - tests
120
+ - linters-ruby:
121
+ matrix:
122
+ parameters:
123
+ ruby-version: ["3.1"]
124
+ - tests-ruby:
125
+ matrix:
126
+ parameters:
127
+ ruby-version: ["3.1"]
128
+ - compatibility-ruby:
129
+ matrix:
130
+ parameters:
131
+ ruby-version: ["2.5", "2.6", "2.7", "3.0"]
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = ::File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'truemail/client/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'truemail-client'
9
+ spec.version = Truemail::Client::VERSION
10
+ spec.authors = ['Vladislav Trotsenko']
11
+ spec.email = ['admin@bestweb.com.ua']
12
+
13
+ spec.summary = %(truemail-client)
14
+ spec.description = %(Truemail web API client library for Ruby)
15
+
16
+ spec.homepage = 'https://github.com/truemail-rb/truemail-ruby-client'
17
+ spec.license = 'MIT'
18
+
19
+ spec.metadata = {
20
+ 'homepage_uri' => 'https://truemail-rb.org',
21
+ 'changelog_uri' => 'https://github.com/truemail-rb/truemail-ruby-client/blob/master/CHANGELOG.md',
22
+ 'source_code_uri' => 'https://github.com/truemail-rb/truemail-ruby-client',
23
+ 'documentation_uri' => 'https://truemail-rb.org/truemail-ruby-client',
24
+ 'bug_tracker_uri' => 'https://github.com/truemail-rb/truemail-ruby-client/issues'
25
+ }
26
+
27
+ spec.required_ruby_version = '>= 2.5.0'
28
+
29
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
30
+ spec.bindir = 'exe'
31
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) }
32
+ spec.require_paths = ['lib']
33
+
34
+ spec.add_development_dependency 'ffaker', '~> 2.20'
35
+ spec.add_development_dependency 'json_matchers', '~> 0.11.1'
36
+ spec.add_development_dependency 'pry-byebug', '~> 3.9'
37
+ spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
38
+ spec.add_development_dependency 'rspec', '~> 3.10'
39
+ spec.add_development_dependency 'simplecov', '~> 0.17.1'
40
+ spec.add_development_dependency 'webmock', '~> 3.14'
41
+ end
data/.codeclimate.yml CHANGED
@@ -7,7 +7,7 @@ checks:
7
7
  plugins:
8
8
  rubocop:
9
9
  enabled: true
10
- channel: rubocop-1-14
10
+ channel: rubocop-1-25
11
11
 
12
12
  reek:
13
13
  enabled: true
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /tmp/
9
9
  .rspec_status
10
10
  .DS_Store
11
+ Gemfile.lock
data/.rubocop.yml CHANGED
@@ -32,6 +32,12 @@ Naming/VariableNumber:
32
32
  Naming/RescuedExceptionsVariableName:
33
33
  Enabled: false
34
34
 
35
+ Naming/InclusiveLanguage:
36
+ Enabled: false
37
+
38
+ Naming/BlockForwarding:
39
+ Enabled: true
40
+
35
41
  Style/Documentation:
36
42
  Enabled: false
37
43
 
@@ -135,6 +141,39 @@ Style/IfUnlessModifier:
135
141
  Exclude:
136
142
  - 'lib/truemail/client/http.rb'
137
143
 
144
+ Style/InPatternThen:
145
+ Enabled: true
146
+
147
+ Style/MultilineInPatternThen:
148
+ Enabled: true
149
+
150
+ Style/QuotedSymbols:
151
+ Enabled: true
152
+
153
+ Style/RedundantSelfAssignmentBranch:
154
+ Enabled: true
155
+
156
+ Style/FileRead:
157
+ Enabled: true
158
+
159
+ Style/FileWrite:
160
+ Enabled: true
161
+
162
+ Style/MapToHash:
163
+ Enabled: true
164
+
165
+ Style/NumberedParameters:
166
+ Enabled: true
167
+
168
+ Style/NumberedParametersLimit:
169
+ Enabled: true
170
+
171
+ Style/OpenStructUse:
172
+ Enabled: true
173
+
174
+ Style/SelectByRegexp:
175
+ Enabled: true
176
+
138
177
  Layout/LineLength:
139
178
  Max: 140
140
179
 
@@ -172,6 +211,9 @@ Layout/EmptyLineAfterGuardClause:
172
211
  Layout/SpaceBeforeBrackets:
173
212
  Enabled: true
174
213
 
214
+ Layout/LineEndStringConcatenationIndentation:
215
+ Enabled: true
216
+
175
217
  Lint/NonDeterministicRequireOrder:
176
218
  Enabled: true
177
219
 
@@ -238,6 +280,33 @@ Lint/UnexpectedBlockArity:
238
280
  Lint/UnmodifiedReduceAccumulator:
239
281
  Enabled: true
240
282
 
283
+ Lint/EmptyInPattern:
284
+ Enabled: true
285
+
286
+ Lint/AmbiguousOperatorPrecedence:
287
+ Enabled: true
288
+
289
+ Lint/AmbiguousRange:
290
+ Enabled: true
291
+
292
+ Lint/IncompatibleIoSelectWithFiberScheduler:
293
+ Enabled: true
294
+
295
+ Lint/RequireRelativeSelfPath:
296
+ Enabled: true
297
+
298
+ Lint/UselessRuby2Keywords:
299
+ Enabled: true
300
+
301
+ Gemspec/DateAssignment:
302
+ Enabled: true
303
+
304
+ Gemspec/RequireMFA:
305
+ Enabled: false
306
+
307
+ Security/IoMethods:
308
+ Enabled: true
309
+
241
310
  Performance/AncestorsInclude:
242
311
  Enabled: true
243
312
 
@@ -286,7 +355,10 @@ Performance/RedundantSplitRegexpArgument:
286
355
  Performance/Sum:
287
356
  Enabled: true
288
357
 
289
- Gemspec/DateAssignment:
358
+ Performance/ConcurrentMonotonicTime:
359
+ Enabled: true
360
+
361
+ Performance/StringIdentifierArgument:
290
362
  Enabled: true
291
363
 
292
364
  RSpec/ExampleLength:
@@ -318,3 +390,18 @@ RSpec/MultipleMemoizedHelpers:
318
390
 
319
391
  RSpec/StubbedMock:
320
392
  Enabled: false
393
+
394
+ RSpec/IdenticalEqualityAssertion:
395
+ Enabled: true
396
+
397
+ RSpec/Rails/AvoidSetupHook:
398
+ Enabled: true
399
+
400
+ RSpec/ExcessiveDocstringSpacing:
401
+ Enabled: true
402
+
403
+ RSpec/SubjectDeclaration:
404
+ Enabled: true
405
+
406
+ RSpec/FactoryBot/SyntaxMethods:
407
+ Enabled: true
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.5.0
1
+ ruby-3.1.0
data/CHANGELOG.md CHANGED
@@ -2,6 +2,48 @@
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.4.0] - 2022-01-26
6
+
7
+ ### Changed
8
+
9
+ - Updated default test environment to Ruby 3.1
10
+ - Updated gem development dependencies
11
+ - Changed faker to ffaker dependency
12
+ - Updated rubocop/codeclimate/simplecov/circleci configs
13
+ - Updated gem version
14
+
15
+ ## [0.3.4] - 2021-09-16
16
+
17
+ ### Changed
18
+
19
+ - Updated gem dependencies
20
+ - Updated rubocop/codeclimate config
21
+ - Updated gem version
22
+
23
+ ## [0.3.3] - 2021-07-13
24
+
25
+ ### Fixed
26
+
27
+ - Security vulnerability [CVE-2021-32740](https://github.com/advisories/GHSA-jxhc-q857-3j6g)
28
+
29
+ ### Changed
30
+
31
+ - Updated gem dependencies
32
+ - Updated rubocop/codeclimate config
33
+ - Updated gem version
34
+
35
+ ## [0.3.2] - 2021-05-19
36
+
37
+ ### Fixed
38
+
39
+ - Gem syntax compatibility with Ruby 3.x
40
+
41
+ ### Changed
42
+
43
+ - Updated gem dependencies
44
+ - Updated rubocop/codeclimate config
45
+ - Updated gem version
46
+
5
47
  ## [0.3.1] - 2021-05-08
6
48
 
7
49
  ### Changed
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2020 Vladislav Trotsenko
3
+ Copyright (c) 2020-2022 Vladislav Trotsenko
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Maintainability](https://api.codeclimate.com/v1/badges/ccc7167f4f49d4a10146/maintainability)](https://codeclimate.com/github/truemail-rb/truemail-ruby-client/maintainability)
4
4
  [![Test Coverage](https://api.codeclimate.com/v1/badges/ccc7167f4f49d4a10146/test_coverage)](https://codeclimate.com/github/truemail-rb/truemail-ruby-client/test_coverage)
5
- [![CircleCI](https://circleci.com/gh/truemail-rb/truemail-ruby-client/tree/develop.svg?style=svg)](https://circleci.com/gh/truemail-rb/truemail-ruby-client/tree/develop)
5
+ [![CircleCI](https://circleci.com/gh/truemail-rb/truemail-ruby-client/tree/master.svg?style=svg)](https://circleci.com/gh/truemail-rb/truemail-ruby-client/tree/master)
6
6
  [![Gem Version](https://badge.fury.io/rb/truemail-client.svg)](https://badge.fury.io/rb/truemail-client)
7
7
  [![Downloads](https://img.shields.io/gem/dt/truemail-client.svg?colorA=004d99&colorB=0073e6)](https://rubygems.org/gems/truemail-client)
8
8
  [![Gitter](https://badges.gitter.im/truemail-rb/community.svg)](https://gitter.im/truemail-rb/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
@@ -59,17 +59,17 @@ To have an access for `Truemail::Client` you must configure it first as in the e
59
59
  require 'truemail/client'
60
60
 
61
61
  Truemail::Client.configure do |config|
62
- # Optional parameter (Boolean). By default it is equal false
63
- config.secure_connection = true
64
-
65
62
  # Required parameter (String). It should be a hostname or an ip address where Truemail server runs
66
63
  config.host = 'example.com'
67
64
 
68
- # Optional parameter (Integer). By default it is equal 9292
69
- config.port = 80
70
-
71
65
  # Required parameter (String). It should be valid Truemail server access token
72
66
  config.token = 'token'
67
+
68
+ # Optional parameter (Boolean). By default it is equal false
69
+ config.secure_connection = true
70
+
71
+ # Optional parameter (Integer). By default it is equal 9292
72
+ config.port = 80
73
73
  end
74
74
  ```
75
75
 
@@ -94,6 +94,8 @@ Truemail::Client.validate('admin@bestweb.com.ua')
94
94
  "whitelist_validation": false,
95
95
  "whitelisted_domains": null,
96
96
  "blacklisted_domains": null,
97
+ "blacklisted_mx_ip_addresses": null,
98
+ "dns": null,
97
99
  "smtp_safe_check": false,
98
100
  "email_pattern": "default gem value",
99
101
  "smtp_error_body_pattern": "default gem value",
@@ -177,7 +179,7 @@ All Truemail solutions: https://truemail-rb.org
177
179
 
178
180
  ## Contributing
179
181
 
180
- Bug reports and pull requests are welcome on GitHub at https://github.com/truemail-rb/truemail-ruby-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct. Please check the [open tikets](https://github.com/truemail-rb/truemail-ruby-client/issues). Be shure to follow Contributor Code of Conduct below and our [Contributing Guidelines](CONTRIBUTING.md).
182
+ Bug reports and pull requests are welcome on GitHub at https://github.com/truemail-rb/truemail-ruby-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct. Please check the [open tickets](https://github.com/truemail-rb/truemail-ruby-client/issues). Be sure to follow Contributor Code of Conduct below and our [Contributing Guidelines](CONTRIBUTING.md).
181
183
 
182
184
  ## License
183
185
 
data/bin/console CHANGED
@@ -12,4 +12,4 @@ require 'truemail/client'
12
12
  # Pry.start
13
13
 
14
14
  require 'irb'
15
- IRB.start(__FILE__)
15
+ ::IRB.start(__FILE__)
@@ -5,8 +5,8 @@ module Truemail
5
5
  class Configuration
6
6
  DEFAULT_PORT = 9292
7
7
 
8
- Error = Class.new(StandardError)
9
- ArgumentError = Class.new(StandardError) do
8
+ Error = ::Class.new(::StandardError)
9
+ ArgumentError = ::Class.new(::StandardError) do
10
10
  def initialize(arg_value, arg_name)
11
11
  super("#{arg_value} is not a valid #{arg_name[0..-2]}")
12
12
  end
@@ -26,7 +26,7 @@ module Truemail
26
26
  raise_unless(
27
27
  argument,
28
28
  __method__,
29
- method.eql?(:port) ? argument.is_a?(Integer) && argument.positive? : argument.is_a?(String)
29
+ method.eql?(:port) ? argument.is_a?(::Integer) && argument.positive? : argument.is_a?(::String)
30
30
  )
31
31
  instance_variable_set(:"@#{method}", argument)
32
32
  end
@@ -22,8 +22,8 @@ module Truemail
22
22
  end
23
23
 
24
24
  def run
25
- Net::HTTP.start(uri.host, uri.port, use_ssl: secure_connection) do |http|
26
- request = Net::HTTP::Get.new(uri)
25
+ ::Net::HTTP.start(uri.host, uri.port, use_ssl: secure_connection) do |http|
26
+ request = ::Net::HTTP::Get.new(uri)
27
27
  request['User-Agent'] = Truemail::Client::Http::USER_AGENT
28
28
  request['Accept'] = Truemail::Client::Http::MIME_TYPE
29
29
  request['Content-Type'] = Truemail::Client::Http::MIME_TYPE
@@ -41,9 +41,9 @@ module Truemail
41
41
  attr_reader(*Truemail::Client::Http::URI_ATTRS)
42
42
 
43
43
  def request_uri
44
- URI::HTTP.build(
44
+ ::URI::HTTP.build(
45
45
  path: endpoint,
46
- query: uri_params.empty? ? nil : URI.encode_www_form(uri_params)
46
+ query: uri_params.empty? ? nil : ::URI.encode_www_form(uri_params)
47
47
  ).request_uri
48
48
  end
49
49
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Truemail
4
4
  module Client
5
- VERSION = '0.3.1'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('lib', __dir__)
3
+ lib = ::File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'truemail/client/version'
6
6
 
@@ -28,22 +28,21 @@ Gem::Specification.new do |spec|
28
28
 
29
29
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
30
30
  spec.bindir = 'exe'
31
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| ::File.basename(f) }
32
32
  spec.require_paths = ['lib']
33
33
 
34
- spec.add_development_dependency 'bundler', '~> 1.16'
35
- spec.add_development_dependency 'bundler-audit', '~> 0.8.0'
36
- spec.add_development_dependency 'faker', '~> 2.17'
34
+ spec.add_development_dependency 'bundler-audit', '~> 0.9.0.1'
37
35
  spec.add_development_dependency 'fasterer', '~> 0.9.0'
36
+ spec.add_development_dependency 'ffaker', '~> 2.20'
38
37
  spec.add_development_dependency 'json_matchers', '~> 0.11.1'
39
- spec.add_development_dependency 'overcommit', '~> 0.57.0'
38
+ spec.add_development_dependency 'overcommit', '~> 0.58.0'
40
39
  spec.add_development_dependency 'pry-byebug', '~> 3.9'
41
- spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.3'
42
- spec.add_development_dependency 'reek', '~> 6.0', '>= 6.0.4'
40
+ spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
41
+ spec.add_development_dependency 'reek', '~> 6.1'
43
42
  spec.add_development_dependency 'rspec', '~> 3.10'
44
- spec.add_development_dependency 'rubocop', '~> 1.14'
45
- spec.add_development_dependency 'rubocop-performance', '~> 1.11', '>= 1.11.3'
46
- spec.add_development_dependency 'rubocop-rspec', '~> 2.3'
43
+ spec.add_development_dependency 'rubocop', '~> 1.25'
44
+ spec.add_development_dependency 'rubocop-performance', '~> 1.13', '>= 1.13.2'
45
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.8'
47
46
  spec.add_development_dependency 'simplecov', '~> 0.17.1'
48
- spec.add_development_dependency 'webmock', '~> 3.12', '>= 3.12.2'
47
+ spec.add_development_dependency 'webmock', '~> 3.14'
49
48
  end
metadata CHANGED
@@ -1,71 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: truemail-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladislav Trotsenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-08 00:00:00.000000000 Z
11
+ date: 2022-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.16'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.16'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: bundler-audit
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: 0.8.0
19
+ version: 0.9.0.1
34
20
  type: :development
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
24
  - - "~>"
39
25
  - !ruby/object:Gem::Version
40
- version: 0.8.0
26
+ version: 0.9.0.1
41
27
  - !ruby/object:Gem::Dependency
42
- name: faker
28
+ name: fasterer
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '2.17'
33
+ version: 0.9.0
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: '2.17'
40
+ version: 0.9.0
55
41
  - !ruby/object:Gem::Dependency
56
- name: fasterer
42
+ name: ffaker
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: 0.9.0
47
+ version: '2.20'
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: 0.9.0
54
+ version: '2.20'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: json_matchers
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +72,14 @@ dependencies:
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: 0.57.0
75
+ version: 0.58.0
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: 0.57.0
82
+ version: 0.58.0
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: pry-byebug
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -117,7 +103,7 @@ dependencies:
117
103
  version: '13.0'
118
104
  - - ">="
119
105
  - !ruby/object:Gem::Version
120
- version: 13.0.3
106
+ version: 13.0.6
121
107
  type: :development
122
108
  prerelease: false
123
109
  version_requirements: !ruby/object:Gem::Requirement
@@ -127,27 +113,21 @@ dependencies:
127
113
  version: '13.0'
128
114
  - - ">="
129
115
  - !ruby/object:Gem::Version
130
- version: 13.0.3
116
+ version: 13.0.6
131
117
  - !ruby/object:Gem::Dependency
132
118
  name: reek
133
119
  requirement: !ruby/object:Gem::Requirement
134
120
  requirements:
135
121
  - - "~>"
136
122
  - !ruby/object:Gem::Version
137
- version: '6.0'
138
- - - ">="
139
- - !ruby/object:Gem::Version
140
- version: 6.0.4
123
+ version: '6.1'
141
124
  type: :development
142
125
  prerelease: false
143
126
  version_requirements: !ruby/object:Gem::Requirement
144
127
  requirements:
145
128
  - - "~>"
146
129
  - !ruby/object:Gem::Version
147
- version: '6.0'
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- version: 6.0.4
130
+ version: '6.1'
151
131
  - !ruby/object:Gem::Dependency
152
132
  name: rspec
153
133
  requirement: !ruby/object:Gem::Requirement
@@ -168,48 +148,48 @@ dependencies:
168
148
  requirements:
169
149
  - - "~>"
170
150
  - !ruby/object:Gem::Version
171
- version: '1.14'
151
+ version: '1.25'
172
152
  type: :development
173
153
  prerelease: false
174
154
  version_requirements: !ruby/object:Gem::Requirement
175
155
  requirements:
176
156
  - - "~>"
177
157
  - !ruby/object:Gem::Version
178
- version: '1.14'
158
+ version: '1.25'
179
159
  - !ruby/object:Gem::Dependency
180
160
  name: rubocop-performance
181
161
  requirement: !ruby/object:Gem::Requirement
182
162
  requirements:
183
163
  - - "~>"
184
164
  - !ruby/object:Gem::Version
185
- version: '1.11'
165
+ version: '1.13'
186
166
  - - ">="
187
167
  - !ruby/object:Gem::Version
188
- version: 1.11.3
168
+ version: 1.13.2
189
169
  type: :development
190
170
  prerelease: false
191
171
  version_requirements: !ruby/object:Gem::Requirement
192
172
  requirements:
193
173
  - - "~>"
194
174
  - !ruby/object:Gem::Version
195
- version: '1.11'
175
+ version: '1.13'
196
176
  - - ">="
197
177
  - !ruby/object:Gem::Version
198
- version: 1.11.3
178
+ version: 1.13.2
199
179
  - !ruby/object:Gem::Dependency
200
180
  name: rubocop-rspec
201
181
  requirement: !ruby/object:Gem::Requirement
202
182
  requirements:
203
183
  - - "~>"
204
184
  - !ruby/object:Gem::Version
205
- version: '2.3'
185
+ version: '2.8'
206
186
  type: :development
207
187
  prerelease: false
208
188
  version_requirements: !ruby/object:Gem::Requirement
209
189
  requirements:
210
190
  - - "~>"
211
191
  - !ruby/object:Gem::Version
212
- version: '2.3'
192
+ version: '2.8'
213
193
  - !ruby/object:Gem::Dependency
214
194
  name: simplecov
215
195
  requirement: !ruby/object:Gem::Requirement
@@ -230,20 +210,14 @@ dependencies:
230
210
  requirements:
231
211
  - - "~>"
232
212
  - !ruby/object:Gem::Version
233
- version: '3.12'
234
- - - ">="
235
- - !ruby/object:Gem::Version
236
- version: 3.12.2
213
+ version: '3.14'
237
214
  type: :development
238
215
  prerelease: false
239
216
  version_requirements: !ruby/object:Gem::Requirement
240
217
  requirements:
241
218
  - - "~>"
242
219
  - !ruby/object:Gem::Version
243
- version: '3.12'
244
- - - ">="
245
- - !ruby/object:Gem::Version
246
- version: 3.12.2
220
+ version: '3.14'
247
221
  description: Truemail web API client library for Ruby
248
222
  email:
249
223
  - admin@bestweb.com.ua
@@ -252,6 +226,7 @@ extensions: []
252
226
  extra_rdoc_files: []
253
227
  files:
254
228
  - ".circleci/config.yml"
229
+ - ".circleci/gemspec_compatible"
255
230
  - ".codeclimate.yml"
256
231
  - ".github/BRANCH_NAMING_CONVENTION.md"
257
232
  - ".github/ISSUE_TEMPLATE/bug_report.md"
@@ -270,7 +245,6 @@ files:
270
245
  - CODE_OF_CONDUCT.md
271
246
  - CONTRIBUTING.md
272
247
  - Gemfile
273
- - Gemfile.lock
274
248
  - LICENSE.txt
275
249
  - README.md
276
250
  - Rakefile
@@ -305,8 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
305
279
  - !ruby/object:Gem::Version
306
280
  version: '0'
307
281
  requirements: []
308
- rubyforge_project:
309
- rubygems_version: 2.7.3
282
+ rubygems_version: 3.3.3
310
283
  signing_key:
311
284
  specification_version: 4
312
285
  summary: truemail-client
data/Gemfile.lock DELETED
@@ -1,130 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- truemail-client (0.3.1)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- addressable (2.7.0)
10
- public_suffix (>= 2.0.2, < 5.0)
11
- ast (2.4.2)
12
- bundler-audit (0.8.0)
13
- bundler (>= 1.2.0, < 3)
14
- thor (~> 1.0)
15
- byebug (11.1.3)
16
- childprocess (4.0.0)
17
- coderay (1.1.3)
18
- colorize (0.8.1)
19
- concurrent-ruby (1.1.8)
20
- crack (0.4.5)
21
- rexml
22
- diff-lcs (1.4.4)
23
- docile (1.3.5)
24
- faker (2.17.0)
25
- i18n (>= 1.6, < 2)
26
- fasterer (0.9.0)
27
- colorize (~> 0.7)
28
- ruby_parser (>= 3.14.1)
29
- hashdiff (1.0.1)
30
- i18n (1.8.10)
31
- concurrent-ruby (~> 1.0)
32
- iniparse (1.5.0)
33
- json (2.5.1)
34
- json_matchers (0.11.1)
35
- json_schema
36
- json_schema (0.21.0)
37
- kwalify (0.7.2)
38
- method_source (1.0.0)
39
- overcommit (0.57.0)
40
- childprocess (>= 0.6.3, < 5)
41
- iniparse (~> 1.4)
42
- parallel (1.20.1)
43
- parser (3.0.1.1)
44
- ast (~> 2.4.1)
45
- pry (0.13.1)
46
- coderay (~> 1.1)
47
- method_source (~> 1.0)
48
- pry-byebug (3.9.0)
49
- byebug (~> 11.0)
50
- pry (~> 0.13.0)
51
- psych (3.3.1)
52
- public_suffix (4.0.6)
53
- rainbow (3.0.0)
54
- rake (13.0.3)
55
- reek (6.0.4)
56
- kwalify (~> 0.7.0)
57
- parser (~> 3.0.0)
58
- psych (~> 3.1)
59
- rainbow (>= 2.0, < 4.0)
60
- regexp_parser (2.1.1)
61
- rexml (3.2.5)
62
- rspec (3.10.0)
63
- rspec-core (~> 3.10.0)
64
- rspec-expectations (~> 3.10.0)
65
- rspec-mocks (~> 3.10.0)
66
- rspec-core (3.10.1)
67
- rspec-support (~> 3.10.0)
68
- rspec-expectations (3.10.1)
69
- diff-lcs (>= 1.2.0, < 2.0)
70
- rspec-support (~> 3.10.0)
71
- rspec-mocks (3.10.2)
72
- diff-lcs (>= 1.2.0, < 2.0)
73
- rspec-support (~> 3.10.0)
74
- rspec-support (3.10.2)
75
- rubocop (1.14.0)
76
- parallel (~> 1.10)
77
- parser (>= 3.0.0.0)
78
- rainbow (>= 2.2.2, < 4.0)
79
- regexp_parser (>= 1.8, < 3.0)
80
- rexml
81
- rubocop-ast (>= 1.5.0, < 2.0)
82
- ruby-progressbar (~> 1.7)
83
- unicode-display_width (>= 1.4.0, < 3.0)
84
- rubocop-ast (1.5.0)
85
- parser (>= 3.0.1.1)
86
- rubocop-performance (1.11.3)
87
- rubocop (>= 1.7.0, < 2.0)
88
- rubocop-ast (>= 0.4.0)
89
- rubocop-rspec (2.3.0)
90
- rubocop (~> 1.0)
91
- rubocop-ast (>= 1.1.0)
92
- ruby-progressbar (1.11.0)
93
- ruby_parser (3.15.1)
94
- sexp_processor (~> 4.9)
95
- sexp_processor (4.15.2)
96
- simplecov (0.17.1)
97
- docile (~> 1.1)
98
- json (>= 1.8, < 3)
99
- simplecov-html (~> 0.10.0)
100
- simplecov-html (0.10.2)
101
- thor (1.1.0)
102
- unicode-display_width (2.0.0)
103
- webmock (3.12.2)
104
- addressable (>= 2.3.6)
105
- crack (>= 0.3.2)
106
- hashdiff (>= 0.4.0, < 2.0.0)
107
-
108
- PLATFORMS
109
- ruby
110
-
111
- DEPENDENCIES
112
- bundler (~> 1.16)
113
- bundler-audit (~> 0.8.0)
114
- faker (~> 2.17)
115
- fasterer (~> 0.9.0)
116
- json_matchers (~> 0.11.1)
117
- overcommit (~> 0.57.0)
118
- pry-byebug (~> 3.9)
119
- rake (~> 13.0, >= 13.0.3)
120
- reek (~> 6.0, >= 6.0.4)
121
- rspec (~> 3.10)
122
- rubocop (~> 1.14)
123
- rubocop-performance (~> 1.11, >= 1.11.3)
124
- rubocop-rspec (~> 2.3)
125
- simplecov (~> 0.17.1)
126
- truemail-client!
127
- webmock (~> 3.12, >= 3.12.2)
128
-
129
- BUNDLED WITH
130
- 1.16.6