mail_xoauth2 1.0.3 → 1.0.4

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: 777d390b187520dc1cec1f13cf201111a908c9392dc941c61a1a3e5edd2a3f4a
4
- data.tar.gz: '097fb2f68a7fbd1c802d15451c50e8e34dd34677004fb82aeff455aa3032015f'
3
+ metadata.gz: 4c96148ffc64eb67a76dfb91eaa1abf38a97ba6d733e38f7ffae35e1be494264
4
+ data.tar.gz: 3be9fef3c48b8e2405d7d6f2d45902fbd5087781f1f844955d2c24d3f1d822f2
5
5
  SHA512:
6
- metadata.gz: 0bece243b03fdd49c852bdf12a17a98bcb7c89605e14e9143832b00e1280ee677c58cc09e408f8d231e8556e99bc428720e3be3b9f2403602068942a2256527c
7
- data.tar.gz: 868d90d474be0e193345a94707d3f2192e876ff7927431b8a1b7770167b379f566e8516051b9ab651dd753c6541e5ef8b352f45aadc0b6c887d7e99a05bd4152
6
+ metadata.gz: e8423de18552a2d36c89c5047af2f6e933fbf51b2909cad1f3e0cf3c8db66ab44e53e7b8ee48120cd7ba691b7a4af1369fb81014d28662384d8bb684bdf831aa
7
+ data.tar.gz: 3eafd53b1aed35c777f196abb0f181bdeaa32bf90782eb148a15a81bd84f31c8d609ad1ffa60b3b7c800c56a103dfcd77f249be40baa5dc9aab12019bbbeb091
@@ -21,4 +21,8 @@ module MailXoauth2
21
21
  end
22
22
  end
23
23
 
24
- Net::IMAP::SASL.add_authenticator('XOAUTH2', MailXoauth2::ImapXoauth2Authenticator)
24
+ if Gem::Version.new(Net::IMAP::VERSION) >= Gem::Version.new('0.4.0')
25
+ Net::IMAP::SASL.add_authenticator('XOAUTH2', MailXoauth2::ImapXoauth2Authenticator)
26
+ else
27
+ Net::IMAP.add_authenticator('XOAUTH2', MailXoauth2::ImapXoauth2Authenticator)
28
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailXoauth2
4
- VERSION = '1.0.3'
4
+ VERSION = '1.0.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail_xoauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabian Jäger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-31 00:00:00.000000000 Z
11
+ date: 2024-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mocha