net-imap 0.1.0 → 0.1.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.

Potentially problematic release.


This version of net-imap might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3784632306c42023af1f1a84943663b706e7c77f4dab4fdfca3834d2baafe5ba
4
- data.tar.gz: dc819ede4c44751748d6bae1c555e83727d4eea16a8d78a8e9902d3e16a02605
3
+ metadata.gz: d3963dc001573cfafeb31305d2ba569c89bf14ec1fd1b75afa5b27d3d8f94ee8
4
+ data.tar.gz: 0feb88b9ed0be0c63684f291060321f493e43343e5b761ef0019977b1c7cc3b7
5
5
  SHA512:
6
- metadata.gz: ee02ea21fdb00057ba18fe6fb11735288ae508b36ba19d2d074ec50a0301177a1f6e2be97b4e87e95f13426d4e60f3598c2ea4c9d391344d8548c163da767909
7
- data.tar.gz: 9fa3c929a93599f6dc26ebde519a3093d5ba2eea74a08365b61fa8583e3fb46d848ecad9605e948e266f024645a8324babe4b24ba3bbc39567d52d9512637779
6
+ metadata.gz: 2a0a7efa65c793e3022b7768669a69b821894bee3610f92c27a95626407ac6ce194ddb1e32f395dc9bad3e68b91f94d54f47a823fedffd13c7b5cea2cd4ba50d
7
+ data.tar.gz: 1b1b1ae36f4be343cddf551e4c86cda1848406a04edf70238fd8efd3aa793fad7b180b782b9044b44235d202866b50de4efb26fdac2da01bd3d27f3ef3ae278f
@@ -0,0 +1,22 @@
1
+ Copyright (C) 1993-2013 Yukihiro Matsumoto. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions
5
+ are met:
6
+ 1. Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ 2. Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22
+ SUCH DAMAGE.
@@ -201,6 +201,8 @@ module Net
201
201
  # Unicode", RFC 2152, May 1997.
202
202
  #
203
203
  class IMAP < Protocol
204
+ VERSION = "0.1.1"
205
+
204
206
  include MonitorMixin
205
207
  if defined?(OpenSSL::SSL)
206
208
  include OpenSSL
@@ -1540,7 +1542,7 @@ module Net
1540
1542
 
1541
1543
  class RawData # :nodoc:
1542
1544
  def send_data(imap, tag)
1543
- imap.send(:put_string, @data)
1545
+ imap.__send__(:put_string, @data)
1544
1546
  end
1545
1547
 
1546
1548
  def validate
@@ -1555,7 +1557,7 @@ module Net
1555
1557
 
1556
1558
  class Atom # :nodoc:
1557
1559
  def send_data(imap, tag)
1558
- imap.send(:put_string, @data)
1560
+ imap.__send__(:put_string, @data)
1559
1561
  end
1560
1562
 
1561
1563
  def validate
@@ -1570,7 +1572,7 @@ module Net
1570
1572
 
1571
1573
  class QuotedString # :nodoc:
1572
1574
  def send_data(imap, tag)
1573
- imap.send(:send_quoted_string, @data)
1575
+ imap.__send__(:send_quoted_string, @data)
1574
1576
  end
1575
1577
 
1576
1578
  def validate
@@ -1585,7 +1587,7 @@ module Net
1585
1587
 
1586
1588
  class Literal # :nodoc:
1587
1589
  def send_data(imap, tag)
1588
- imap.send(:send_literal, @data, tag)
1590
+ imap.__send__(:send_literal, @data, tag)
1589
1591
  end
1590
1592
 
1591
1593
  def validate
@@ -1600,7 +1602,7 @@ module Net
1600
1602
 
1601
1603
  class MessageSet # :nodoc:
1602
1604
  def send_data(imap, tag)
1603
- imap.send(:put_string, format_internal(@data))
1605
+ imap.__send__(:put_string, format_internal(@data))
1604
1606
  end
1605
1607
 
1606
1608
  def validate
@@ -1,12 +1,15 @@
1
- begin
2
- require_relative 'lib/net/imap/version'
3
- rescue LoadError # Fallback to load version file in ruby core repository
4
- require_relative "version"
1
+ # frozen_string_literal: true
2
+
3
+ name = File.basename(__FILE__, ".gemspec")
4
+ version = ["lib", Array.new(name.count("-"), "..").join("/")].find do |dir|
5
+ break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
6
+ /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
7
+ end rescue nil
5
8
  end
6
9
 
7
10
  Gem::Specification.new do |spec|
8
- spec.name = "net-imap"
9
- spec.version = Net::Imap::VERSION
11
+ spec.name = name
12
+ spec.version = version
10
13
  spec.authors = ["Shugo Maeda"]
11
14
  spec.email = ["shugo@ruby-lang.org"]
12
15
 
@@ -14,6 +17,7 @@ Gem::Specification.new do |spec|
14
17
  spec.description = %q{Ruby client api for Internet Message Access Protocol}
15
18
  spec.homepage = "https://github.com/ruby/net-imap"
16
19
  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
20
+ spec.licenses = ["Ruby", "BSD-2-Clause"]
17
21
 
18
22
  spec.metadata["homepage_uri"] = spec.homepage
19
23
  spec.metadata["source_code_uri"] = spec.homepage
@@ -21,9 +25,13 @@ Gem::Specification.new do |spec|
21
25
  # Specify which files should be added to the gem when it is released.
22
26
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
27
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
+ `git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
29
  end
26
30
  spec.bindir = "exe"
27
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
32
  spec.require_paths = ["lib"]
33
+
34
+ spec.add_dependency "net-protocol"
35
+ spec.add_dependency "digest"
36
+ spec.add_dependency "strscan"
29
37
  end
metadata CHANGED
@@ -1,15 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-imap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shugo Maeda
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-08 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2020-12-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: net-protocol
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: digest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: strscan
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
13
55
  description: Ruby client api for Internet Message Access Protocol
14
56
  email:
15
57
  - shugo@ruby-lang.org
@@ -21,19 +63,21 @@ files:
21
63
  - ".gitignore"
22
64
  - Gemfile
23
65
  - Gemfile.lock
66
+ - LICENSE.txt
24
67
  - README.md
25
68
  - Rakefile
26
69
  - bin/console
27
70
  - bin/setup
28
71
  - lib/net/imap.rb
29
- - lib/net/imap/version.rb
30
72
  - net-imap.gemspec
31
73
  homepage: https://github.com/ruby/net-imap
32
- licenses: []
74
+ licenses:
75
+ - Ruby
76
+ - BSD-2-Clause
33
77
  metadata:
34
78
  homepage_uri: https://github.com/ruby/net-imap
35
79
  source_code_uri: https://github.com/ruby/net-imap
36
- post_install_message:
80
+ post_install_message:
37
81
  rdoc_options: []
38
82
  require_paths:
39
83
  - lib
@@ -48,8 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
92
  - !ruby/object:Gem::Version
49
93
  version: '0'
50
94
  requirements: []
51
- rubygems_version: 3.2.0.pre1
52
- signing_key:
95
+ rubygems_version: 3.2.2
96
+ signing_key:
53
97
  specification_version: 4
54
98
  summary: Ruby client api for Internet Message Access Protocol
55
99
  test_files: []
@@ -1,5 +0,0 @@
1
- module Net
2
- module Imap
3
- VERSION = "0.1.0"
4
- end
5
- end