truemail-client 0.2.0 → 0.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: c1b42e36e9d9d70a91dd951c594d3b3afc3ee8815ed3a50fbaa4b179b0488b59
4
- data.tar.gz: 4af09437d71822e86365eb59cef631b52f3ddf2d49db65d528949296f904d780
3
+ metadata.gz: 48c2946676618918377d4bded0c96bbf00c3f5b487d880b305066bd54c2ef248
4
+ data.tar.gz: f8842a57578431f8ba94af663ea4a8b3d181ae9f022238ae01b8bc06f77d4ae3
5
5
  SHA512:
6
- metadata.gz: 162f18138f8764672e8e416c5f30f46a63092aadde2d7592bf828be002991632dba30b184c0873764c9802032b605b8c43ab9609993a95de407425bd9c051c58
7
- data.tar.gz: 4296b7edb2acc4a22be663bc2c14ba5b0af3375e3ddcf5d5419ce80c3c7fb6849e19792430e4e6c34369c500f6e7b76bdca6a8d38ba27921e22ab2d1572cac5b
6
+ metadata.gz: a7afdb7c4dafd711454e1c098b686045470b2fda5cdbfd4a46acb45184176f4ea8991740b94402b6c92e112e606e30ccbd7233cac7b71936325d3c1633945708
7
+ data.tar.gz: fc98990b012f75ab3204d439238f2285185975d5bad01dd7425a9eec9d57a5b43c5b8705bb91b5a6a9f04e77a6d8643aaac4ec89890d687b36ca96269bb38b0e
@@ -22,6 +22,10 @@ Metrics/CyclomaticComplexity:
22
22
  Metrics/PerceivedComplexity:
23
23
  Enabled: false
24
24
 
25
+ Metrics/AbcSize:
26
+ Exclude:
27
+ - 'lib/truemail/client/http.rb'
28
+
25
29
  Naming/VariableNumber:
26
30
  Enabled: false
27
31
 
@@ -91,6 +95,10 @@ Style/RedundantRegexpEscape:
91
95
  Style/SlicingWithRange:
92
96
  Enabled: true
93
97
 
98
+ Style/IfUnlessModifier:
99
+ Exclude:
100
+ - 'lib/truemail/client/http.rb'
101
+
94
102
  Layout/LineLength:
95
103
  Max: 140
96
104
 
@@ -2,6 +2,17 @@
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.2.1] - 2020-10-05
6
+
7
+ ### Fixed
8
+
9
+ - Removed auth headers for public endpoint request
10
+
11
+ ### Changed
12
+
13
+ - `Truemail::Client::Http#run`
14
+ - Updated gem version
15
+
5
16
  ## [0.2.0] - 2020-10-04
6
17
 
7
18
  ### Added
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- truemail-client (0.2.0)
4
+ truemail-client (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -27,7 +27,9 @@ module Truemail
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
30
- request['Authorization'] = Truemail::Client.configuration.token
30
+ unless endpoint.eql?(Truemail::Client::Http::HEALTHCHECK_ENDPOINT)
31
+ request['Authorization'] = Truemail::Client.configuration.token
32
+ end
31
33
  http.request(request)
32
34
  end.body
33
35
  rescue => error
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Truemail
4
4
  module Client
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: truemail-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladislav Trotsenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-04 00:00:00.000000000 Z
11
+ date: 2020-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler