net-imap 0.3.4.1 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +8 -1
- data/lib/net/imap/authenticators/xoauth2.rb +1 -1
- data/lib/net/imap/data_encoding.rb +3 -3
- data/lib/net/imap.rb +6 -6
- data/net-imap.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '089cd0567b2a11a7de9343e693481902eca127a4274a6fc3b6cec5e44d2ee333'
|
4
|
+
data.tar.gz: fae6680c26f1279ae1bca5b5561d65eafc06c688c9102be885f49b0520f2a852
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dded5abb87e2ea4b9c82b7f50c141acb6d3affe4f93f6dfd26beb6309fdd111c1ab93adc31fefdac4a0fef3cb4e5f6eda29f179c602c2a0fc7cd389ae832861
|
7
|
+
data.tar.gz: fe3b168f4f6a5807d63499e0ae8b0e507ad950e2c22eadcb9dc55e10df79da5618889047ef6fcebf0a3fdce06b3aac78f123340832a93fe02a82326344d4316b
|
data/.github/workflows/test.yml
CHANGED
@@ -3,11 +3,18 @@ name: ubuntu
|
|
3
3
|
on: [push, pull_request]
|
4
4
|
|
5
5
|
jobs:
|
6
|
+
ruby-versions:
|
7
|
+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
|
8
|
+
with:
|
9
|
+
engine: cruby
|
10
|
+
min_version: 2.6
|
11
|
+
|
6
12
|
build:
|
13
|
+
needs: ruby-versions
|
7
14
|
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
|
8
15
|
strategy:
|
9
16
|
matrix:
|
10
|
-
ruby:
|
17
|
+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
|
11
18
|
os: [ ubuntu-latest, macos-latest ]
|
12
19
|
experimental: [false]
|
13
20
|
include:
|
@@ -54,9 +54,9 @@ module Net
|
|
54
54
|
# Net::IMAP does _not_ automatically encode and decode
|
55
55
|
# mailbox names to and from UTF-7.
|
56
56
|
def self.decode_utf7(s)
|
57
|
-
return s.gsub(/&([
|
58
|
-
if $1
|
59
|
-
(
|
57
|
+
return s.gsub(/&([A-Za-z0-9+,]+)?-/n) {
|
58
|
+
if base64 = $1
|
59
|
+
(base64.tr(",", "/") + "===").unpack1("m").encode(Encoding::UTF_8, Encoding::UTF_16BE)
|
60
60
|
else
|
61
61
|
"&"
|
62
62
|
end
|
data/lib/net/imap.rb
CHANGED
@@ -511,10 +511,8 @@ module Net
|
|
511
511
|
#
|
512
512
|
# - #greeting: The server's initial untagged response, which can indicate a
|
513
513
|
# pre-authenticated connection.
|
514
|
-
# - #responses:
|
515
|
-
#
|
516
|
-
# "ALERT", "UIDVALIDITY", "UIDNEXT", "TRYCREATE", etc). Values are arrays
|
517
|
-
# of UntaggedResponse or ResponseCode.
|
514
|
+
# - #responses: A hash with arrays of unhandled <em>non-+nil+</em>
|
515
|
+
# UntaggedResponse and ResponseCode +#data+, keyed by +#name+.
|
518
516
|
# - #add_response_handler: Add a block to be called inside the receiver thread
|
519
517
|
# with every server response.
|
520
518
|
# - #remove_response_handler: Remove a previously added response handler.
|
@@ -701,7 +699,7 @@ module Net
|
|
701
699
|
# * {Character sets}[https://www.iana.org/assignments/character-sets/character-sets.xhtml]
|
702
700
|
#
|
703
701
|
class IMAP < Protocol
|
704
|
-
VERSION = "0.3.
|
702
|
+
VERSION = "0.3.5"
|
705
703
|
|
706
704
|
include MonitorMixin
|
707
705
|
if defined?(OpenSSL::SSL)
|
@@ -712,7 +710,9 @@ module Net
|
|
712
710
|
# Returns the initial greeting the server, an UntaggedResponse.
|
713
711
|
attr_reader :greeting
|
714
712
|
|
715
|
-
# Returns
|
713
|
+
# Returns a hash with arrays of unhandled <em>non-+nil+</em>
|
714
|
+
# UntaggedResponse#data keyed by UntaggedResponse#name, and
|
715
|
+
# ResponseCode#data keyed by ResponseCode#name.
|
716
716
|
#
|
717
717
|
# For example:
|
718
718
|
#
|
data/net-imap.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
# Specify which files should be added to the gem when it is released.
|
26
26
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
27
27
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
28
|
-
`git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(bin|test|spec|features)/}) }
|
28
|
+
`git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(bin|test|spec|features|rfcs)/}) }
|
29
29
|
end
|
30
30
|
spec.bindir = "exe"
|
31
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-imap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shugo Maeda
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: net-protocol
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
|
-
rubygems_version: 3.4.
|
133
|
+
rubygems_version: 3.4.10
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: Ruby client api for Internet Message Access Protocol
|