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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fae243aef6748b7e9d17ead5c21d8e2ab9900d9b19be7eb1409758ca8cc9128c
4
- data.tar.gz: b4acb5c6b75ddfffde6ed1bda607366311b5c2a736e0619c7701472c4b049fa7
3
+ metadata.gz: '089cd0567b2a11a7de9343e693481902eca127a4274a6fc3b6cec5e44d2ee333'
4
+ data.tar.gz: fae6680c26f1279ae1bca5b5561d65eafc06c688c9102be885f49b0520f2a852
5
5
  SHA512:
6
- metadata.gz: 263f8043ecbff4aff536974bcc3b6f0b4e58b58ea6340d87c821b28261890bd918ae68002845281a99084241b73dd0a9bb4058fc8873417c406a94c392ebf919
7
- data.tar.gz: 5c6cf63c4e68f948df0ad9413a766a63671d4a90f3d9a9bfc8e92c2d5b002476178ed30ddf9a53614c38870d65f32c45690fd123c39a2911fd63f7a7a1ca19bf
6
+ metadata.gz: 9dded5abb87e2ea4b9c82b7f50c141acb6d3affe4f93f6dfd26beb6309fdd111c1ab93adc31fefdac4a0fef3cb4e5f6eda29f179c602c2a0fc7cd389ae832861
7
+ data.tar.gz: fe3b168f4f6a5807d63499e0ae8b0e507ad950e2c22eadcb9dc55e10df79da5618889047ef6fcebf0a3fdce06b3aac78f123340832a93fe02a82326344d4316b
@@ -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: [ head, '3.1', '3.0', '2.7' ]
17
+ ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
11
18
  os: [ ubuntu-latest, macos-latest ]
12
19
  experimental: [false]
13
20
  include:
@@ -7,7 +7,7 @@ class Net::IMAP::XOauth2Authenticator
7
7
 
8
8
  private
9
9
 
10
- def initialize(user, oauth2_token)
10
+ def initialize(user, oauth2_token, **_)
11
11
  @user = user
12
12
  @oauth2_token = oauth2_token
13
13
  end
@@ -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(/&([^-]+)?-/n) {
58
- if $1
59
- ($1.tr(",", "/") + "===").unpack1("m").encode(Encoding::UTF_8, Encoding::UTF_16BE)
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: The untagged responses, as a hash. Keys are the untagged
515
- # response type (e.g. "OK", "FETCH", "FLAGS") and response code (e.g.
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.4.1"
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 recorded untagged responses.
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.1
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: 2024-01-05 00:00:00.000000000 Z
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.19
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