mailtrap 1.2.0 → 1.2.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: e4f1415f049fa2132b1716a70d48c1e6fd5650d4fa263b15fe2339c024053abd
4
- data.tar.gz: e6a299b5d04aeeb2ed80c0b47bf3f1177d5934ef214d0499a9c8d4c8f17a5f7c
3
+ metadata.gz: 7dee4a202b02e16f840e8fc74526903e10418a0073c2392faf964dcdbcdfcde4
4
+ data.tar.gz: d35cf9fa125e8ec587f96626be7830f4398002173b7dc07c4560dddbbb0ddb3e
5
5
  SHA512:
6
- metadata.gz: b594f448ac1fee0581ebac86107572e69c7f77ec8acc558671977e1301b762bedb3e962514485cfba87089c5587c63475dd57e5744c2c6225da58a36525f3bad
7
- data.tar.gz: 94692a8b8a05646ddf49f92a13cfb630ed5e79176bed7f7b48f2f914b092becfd422ba21c38c5dddb6e802261d235c6e8ac2f2cdb190a0e3bc4c1d6339156b72
6
+ metadata.gz: 5b4c0ba57ab2cab64cec15704bd34c04be134360a2600d2fc530bcae47ab8caf2e8dd79ce7ba5fd342e46dad599153d473006613c953da868182dcff2bb1e2be
7
+ data.tar.gz: 45d64a548b0cd54e0f98394a8c6739d1bc5dcd90716105100f7bae92f7aa5913c9ff66fde412d8965d3818bc7d6594c1c218d96cfcde59eabc6bd92c1901e2c3
data/.rubocop.yml CHANGED
@@ -12,6 +12,9 @@ Layout/LineLength:
12
12
  Naming/MethodParameterName:
13
13
  MinNameLength: 2
14
14
 
15
+ Naming/VariableNumber:
16
+ EnforcedStyle: snake_case
17
+
15
18
  RSpec/MultipleExpectations:
16
19
  Max: 4
17
20
 
data/CHANGELOG.md CHANGED
@@ -1,24 +1,27 @@
1
- ## [1.0.0] - 2022-06-14
1
+ ## [1.2.1] - 2023-04-12
2
2
 
3
- - Initial release
3
+ - Set custom user agent
4
4
 
5
- ## [1.0.1] - 2022-06-20
5
+ ## [1.2.0] - 2023-01-27
6
6
 
7
- - Update packed files list
7
+ - Breaking changes:
8
+ - move `Mailtrap::Sending::Mail` class to `Mailtrap::Mail::Base`
9
+ - move `Mailtrap::Sending::Convert` to `Mailtrap::Mail`
10
+ - Add mail gem 2.8 support
11
+ - Add email template support
8
12
 
13
+ ## [1.1.1] - 2022-10-14
14
+
15
+ - Fix custom port and host usage
9
16
 
10
17
  ## [1.1.0] - 2022-07-22
11
18
 
12
19
  - Add ActionMailer support
13
20
 
14
- ## [1.1.1] - 2022-10-14
21
+ ## [1.0.1] - 2022-06-20
15
22
 
16
- - Fix custom port and host usage
23
+ - Update packed files list
17
24
 
18
- ## [1.2.0] - 2023-01-27
25
+ ## [1.0.0] - 2022-06-14
19
26
 
20
- - Breaking changes:
21
- - move `Mailtrap::Sending::Mail` class to `Mailtrap::Mail::Base`
22
- - move `Mailtrap::Sending::Convert` to `Mailtrap::Mail`
23
- - Add mail gem 2.8 support
24
- - Add email template support
27
+ - Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mailtrap (1.2.0)
4
+ mailtrap (1.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -38,6 +38,7 @@ module Mailtrap
38
38
  request.body = body
39
39
  request['Authorization'] = "Bearer #{api_key}"
40
40
  request['Content-Type'] = 'application/json'
41
+ request['User-Agent'] = 'mailtrap-ruby (https://github.com/railsware/mailtrap-ruby)'
41
42
 
42
43
  request
43
44
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mailtrap
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.1'
5
5
  end
data/mailtrap.gemspec ADDED
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/mailtrap/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'mailtrap'
7
+ spec.version = Mailtrap::VERSION
8
+ spec.authors = ['Railsware Products Studio LLC']
9
+ spec.email = ['support@mailtrap.io']
10
+
11
+ spec.summary = 'Official mailtrap.io API client'
12
+ spec.description = 'Official mailtrap.io API client'
13
+ spec.homepage = 'https://github.com/railsware/mailtrap-ruby'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = '>= 2.7.0'
16
+
17
+ spec.metadata['homepage_uri'] = spec.homepage
18
+ spec.metadata['source_code_uri'] = 'https://github.com/railsware/mailtrap-ruby'
19
+ spec.metadata['changelog_uri'] = 'https://github.com/railsware/mailtrap-ruby/blob/main/CHANGELOG.md'
20
+ spec.metadata['rubygems_mfa_required'] = 'true'
21
+
22
+ # Specify which files should be added to the gem when it is released.
23
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
25
+ `git ls-files -z`.split("\x0").reject do |f|
26
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|github|travis|circleci)|appveyor)})
27
+ end
28
+ end
29
+ spec.require_paths = ['lib']
30
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailtrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Railsware Products Studio LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-31 00:00:00.000000000 Z
11
+ date: 2023-04-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Official mailtrap.io API client
14
14
  email:
@@ -39,6 +39,7 @@ files:
39
39
  - lib/mailtrap/sending/attachment.rb
40
40
  - lib/mailtrap/sending/client.rb
41
41
  - lib/mailtrap/version.rb
42
+ - mailtrap.gemspec
42
43
  homepage: https://github.com/railsware/mailtrap-ruby
43
44
  licenses:
44
45
  - MIT