emailable 4.2.0 → 4.2.1

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: 4ae844b48d6433e3ecf55f873f33ca5df1e879f483c86951ff8f08f38c8bbe8d
4
- data.tar.gz: a8a52f0099c05dee80e7b4b7ef47f94f3c43fd5403ca21a8356a13a6ef49dadc
3
+ metadata.gz: 40abf56d12f29b5dbabe69dd9d31f6ec584678d87a077fe3ffb738cf1ee29179
4
+ data.tar.gz: 351bde8b6f16f1f9c6cbba03f44c9b4c54aa84a6bd0bfbee8a6a83908d4191c5
5
5
  SHA512:
6
- metadata.gz: 9783c1e17821e6f49dfd534145c610dffb1b2f22db8b4af268b983544ee516afcb6f3347edcc41f9bdc97e010d5dcbd561acb21e8c1f07a34d32db3ad1efec23
7
- data.tar.gz: ee6c2d7a11fe9071117355a958016b7cda3285cf981e03a31eae151be75a13cba1be560ec024928f4ef85ada642d1d576659c4fbf8c82851790494a923da29a8
6
+ metadata.gz: f65147217f29eaaa10aa7c6c5884095f801954bc2de35243a63d1265ae0cb939d7d85e0ee66995a65c209be0e44d55dbc83583fa0fdc3898c894d1010f03e8e3
7
+ data.tar.gz: b609bcf9d5960e3546b126e7aec4c1b878ee5488957df8b20d2a822a8f2a89608f38a19397ba98e95be2c379cdc59b62c684d2f0cf94e0f46ce91b0757bd9a23
@@ -22,7 +22,7 @@ module Emailable
22
22
 
23
23
  uri = URI("#{@base_url}/#{endpoint}")
24
24
  headers = {
25
- 'Authorization': "Bearer #{Emailable.api_key || api_key || access_token}",
25
+ 'Authorization': "Bearer #{api_key || access_token || Emailable.api_key}",
26
26
  'Content-Type': 'application/json'
27
27
  }
28
28
 
@@ -1,3 +1,3 @@
1
1
  module Emailable
2
- VERSION = '4.2.0'
2
+ VERSION = '4.2.1'
3
3
  end
@@ -24,4 +24,10 @@ class AuthenticationTest < Minitest::Test
24
24
  refute_nil Emailable::Batch.new(bid).status(api_key: @api_key).id
25
25
  end
26
26
 
27
+ def test_request_time_authentication_takes_priority_over_global
28
+ Emailable.api_key = 'invalid_api_key'
29
+
30
+ refute_nil Emailable.verify(@email, api_key: @api_key).domain
31
+ end
32
+
27
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emailable
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emailable