net-pop 0.1.0 → 0.1.1
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 +24 -0
- data/lib/net/pop.rb +3 -4
- data/net-pop.gemspec +18 -9
- metadata +53 -11
- data/.travis.yml +0 -7
- data/lib/net/pop/version.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f26ce8a85b2872590a4153992156faf9a7d182f2f264787ff47de5874ac824f
|
4
|
+
data.tar.gz: 7de31e4eaab4864a167b4b5bf33bb687a31b475bc104bd391211246f03d25436
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 724c8d624b88b45f2bc47b4bc4ce9de69447319b553477d2e8e37929eb226dbf2e5b7f0e394e831a61c075608acf3c5745c9b1eab7cd4c1fecea5e633e7322be
|
7
|
+
data.tar.gz: 657a90c501cca20ea80b45d5fd1ee1fa01ee97c4c7a88af4f70e92f923cf85904e0011544aa69341b02176bbe5118c7200d1e21d03d679ad54a2ac750bb03e4b
|
@@ -0,0 +1,24 @@
|
|
1
|
+
name: test
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
ruby: [ 2.7, 2.6, 2.5, 2.4, head ]
|
11
|
+
os: [ ubuntu-latest, macos-latest ]
|
12
|
+
runs-on: ${{ matrix.os }}
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@master
|
15
|
+
- name: Set up Ruby
|
16
|
+
uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
ruby-version: ${{ matrix.ruby }}
|
19
|
+
- name: Install dependencies
|
20
|
+
run: |
|
21
|
+
gem install bundler --no-document
|
22
|
+
bundle install
|
23
|
+
- name: Run test
|
24
|
+
run: rake test
|
data/lib/net/pop.rb
CHANGED
@@ -194,9 +194,8 @@ module Net
|
|
194
194
|
# String. Normally the unique-id is a hash of the message.
|
195
195
|
#
|
196
196
|
class POP3 < Protocol
|
197
|
-
|
198
|
-
|
199
|
-
Revision = %q$Revision$.split[1]
|
197
|
+
# version of this library
|
198
|
+
VERSION = "0.1.1"
|
200
199
|
|
201
200
|
#
|
202
201
|
# Class Parameters
|
@@ -970,7 +969,7 @@ module Net
|
|
970
969
|
getok('UIDL')
|
971
970
|
table = {}
|
972
971
|
@socket.each_list_item do |line|
|
973
|
-
num, uid = line.split
|
972
|
+
num, uid = line.split(' ')
|
974
973
|
table[num.to_i] = uid
|
975
974
|
end
|
976
975
|
return table
|
data/net-pop.gemspec
CHANGED
@@ -1,25 +1,34 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
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
|
8
|
+
end
|
4
9
|
|
5
10
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name =
|
7
|
-
spec.version =
|
8
|
-
spec.authors = ["
|
9
|
-
spec.email = ["
|
11
|
+
spec.name = name
|
12
|
+
spec.version = version
|
13
|
+
spec.authors = ["Yukihiro Matsumoto"]
|
14
|
+
spec.email = ["matz@ruby-lang.org"]
|
10
15
|
|
11
16
|
spec.summary = %q{Ruby client library for POP3.}
|
12
17
|
spec.description = %q{Ruby client library for POP3.}
|
13
18
|
spec.homepage = "https://github.com/ruby/net-pop"
|
14
|
-
spec.
|
19
|
+
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
15
20
|
|
16
21
|
spec.metadata["homepage_uri"] = spec.homepage
|
17
22
|
spec.metadata["source_code_uri"] = spec.homepage
|
18
23
|
|
19
24
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
20
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
+
`git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
26
|
end
|
22
27
|
spec.bindir = "exe"
|
23
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
29
|
spec.require_paths = ["lib"]
|
30
|
+
|
31
|
+
spec.add_dependency "net-protocol"
|
32
|
+
spec.add_dependency "digest"
|
33
|
+
spec.add_dependency "timeout"
|
25
34
|
end
|
metadata
CHANGED
@@ -1,24 +1,66 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-pop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- Yukihiro Matsumoto
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
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: timeout
|
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 library for POP3.
|
14
56
|
email:
|
15
|
-
-
|
57
|
+
- matz@ruby-lang.org
|
16
58
|
executables: []
|
17
59
|
extensions: []
|
18
60
|
extra_rdoc_files: []
|
19
61
|
files:
|
62
|
+
- ".github/workflows/test.yml"
|
20
63
|
- ".gitignore"
|
21
|
-
- ".travis.yml"
|
22
64
|
- Gemfile
|
23
65
|
- LICENSE.txt
|
24
66
|
- README.md
|
@@ -26,15 +68,15 @@ files:
|
|
26
68
|
- bin/console
|
27
69
|
- bin/setup
|
28
70
|
- lib/net/pop.rb
|
29
|
-
- lib/net/pop/version.rb
|
30
71
|
- net-pop.gemspec
|
31
72
|
homepage: https://github.com/ruby/net-pop
|
32
73
|
licenses:
|
74
|
+
- Ruby
|
33
75
|
- BSD-2-Clause
|
34
76
|
metadata:
|
35
77
|
homepage_uri: https://github.com/ruby/net-pop
|
36
78
|
source_code_uri: https://github.com/ruby/net-pop
|
37
|
-
post_install_message:
|
79
|
+
post_install_message:
|
38
80
|
rdoc_options: []
|
39
81
|
require_paths:
|
40
82
|
- lib
|
@@ -49,8 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
91
|
- !ruby/object:Gem::Version
|
50
92
|
version: '0'
|
51
93
|
requirements: []
|
52
|
-
rubygems_version: 3.
|
53
|
-
signing_key:
|
94
|
+
rubygems_version: 3.2.2
|
95
|
+
signing_key:
|
54
96
|
specification_version: 4
|
55
97
|
summary: Ruby client library for POP3.
|
56
98
|
test_files: []
|
data/.travis.yml
DELETED