mail_xoauth2 1.0.1 → 1.0.3

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: 5f1211f5de7810d50677db70818fd068f7566038fcc457baaef79c072b7baad8
4
- data.tar.gz: 45ce5f184da4bd4c37b9b4daaa9fa99f665521ea180ad569479dce1951efade1
3
+ metadata.gz: 777d390b187520dc1cec1f13cf201111a908c9392dc941c61a1a3e5edd2a3f4a
4
+ data.tar.gz: '097fb2f68a7fbd1c802d15451c50e8e34dd34677004fb82aeff455aa3032015f'
5
5
  SHA512:
6
- metadata.gz: 33e5af056400a8b5f7a593ce3a3443765b98f27f88c5b43e144500e3f2860887f892b3ea215e9d74b3b0675745f1531369aa0eee830696e095eeaec2f15ceaac
7
- data.tar.gz: da4fdbb67654d225af19909c38811b40b37cc4b9846f3b6585af477ddf5e5c50844c4b1745026bdd474091e258cf5e19e291694e64810015fae399454b9e44f6
6
+ metadata.gz: 0bece243b03fdd49c852bdf12a17a98bcb7c89605e14e9143832b00e1280ee677c58cc09e408f8d231e8556e99bc428720e3be3b9f2403602068942a2256527c
7
+ data.tar.gz: 868d90d474be0e193345a94707d3f2192e876ff7927431b8a1b7770167b379f566e8516051b9ab651dd753c6541e5ef8b352f45aadc0b6c887d7e99a05bd4152
@@ -21,4 +21,4 @@ module MailXoauth2
21
21
  end
22
22
  end
23
23
 
24
- Net::IMAP.add_authenticator('XOAUTH2', MailXoauth2::ImapXoauth2Authenticator)
24
+ Net::IMAP::SASL.add_authenticator('XOAUTH2', MailXoauth2::ImapXoauth2Authenticator)
@@ -23,8 +23,7 @@ module MailXoauth2
23
23
  check_auth_args user, oauth2_token
24
24
 
25
25
  auth_string = build_oauth2_string(user, oauth2_token)
26
- b64_auth_string = Base64.strict_encode64(auth_string)
27
- res = send_xoauth2(b64_auth_string)
26
+ res = send_xoauth2(base64_encode(auth_string))
28
27
 
29
28
  # See note about SMTP protocol exchange in https://developers.google.com/gmail/xoauth2_protocol
30
29
  res = get_final_status if res.continue?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailXoauth2
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.3'
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.1
4
+ version: 1.0.3
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: 2018-06-13 00:00:00.000000000 Z
11
+ date: 2024-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mocha
@@ -76,8 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: 1.3.6
78
78
  requirements: []
79
- rubyforge_project:
80
- rubygems_version: 2.7.6
79
+ rubygems_version: 3.1.6
81
80
  signing_key:
82
81
  specification_version: 4
83
82
  summary: Get access to IMAP and STMP via OAuth2, using the standard Ruby Net libraries