net-pop 0.1.1 → 0.1.2

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: 1f26ce8a85b2872590a4153992156faf9a7d182f2f264787ff47de5874ac824f
4
- data.tar.gz: 7de31e4eaab4864a167b4b5bf33bb687a31b475bc104bd391211246f03d25436
3
+ metadata.gz: d6fe6f536c778c7a453b3f80815e2db78ced095970ab7b8c981b0308730409fb
4
+ data.tar.gz: 4e4b40acd408c676d8e396c3d5a9dbcb93ed584a35d9a131624373323442720c
5
5
  SHA512:
6
- metadata.gz: 724c8d624b88b45f2bc47b4bc4ce9de69447319b553477d2e8e37929eb226dbf2e5b7f0e394e831a61c075608acf3c5745c9b1eab7cd4c1fecea5e633e7322be
7
- data.tar.gz: 657a90c501cca20ea80b45d5fd1ee1fa01ee97c4c7a88af4f70e92f923cf85904e0011544aa69341b02176bbe5118c7200d1e21d03d679ad54a2ac750bb03e4b
6
+ metadata.gz: 7d9373f69c262b994a708e973929a15e48f7f2d2d39e817778b0f96f5a4475c3e1e00e7893150ec5ecca45e92d6940362622486d1780ee86e600e01d2efa1e75
7
+ data.tar.gz: 8b8eedbca036612e40d344ddebea8d32926edf4429925bee269146026b6d5f64f82ee2c56aec51e174676e5598a9f52f3963551e04b03aba79baf5dc92dd2915
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: 'github-actions'
4
+ directory: '/'
5
+ schedule:
6
+ interval: 'weekly'
@@ -3,22 +3,30 @@ name: test
3
3
  on: [push, pull_request]
4
4
 
5
5
  jobs:
6
- build:
6
+ ruby-versions:
7
+ runs-on: ubuntu-latest
8
+ outputs:
9
+ versions: ${{ steps.versions.outputs.value }}
10
+ steps:
11
+ - id: versions
12
+ run: |
13
+ versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/all.json' | jq -c '. + ["2.4"]')
14
+ echo "::set-output name=value::${versions}"
15
+ test:
16
+ needs: ruby-versions
7
17
  name: build (${{ matrix.ruby }} / ${{ matrix.os }})
8
18
  strategy:
9
19
  matrix:
10
- ruby: [ 2.7, 2.6, 2.5, 2.4, head ]
20
+ ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
11
21
  os: [ ubuntu-latest, macos-latest ]
12
22
  runs-on: ${{ matrix.os }}
13
23
  steps:
14
- - uses: actions/checkout@master
24
+ - uses: actions/checkout@v3
15
25
  - name: Set up Ruby
16
26
  uses: ruby/setup-ruby@v1
17
27
  with:
18
28
  ruby-version: ${{ matrix.ruby }}
19
29
  - name: Install dependencies
20
- run: |
21
- gem install bundler --no-document
22
- bundle install
30
+ run: bundle install
23
31
  - name: Run test
24
32
  run: rake test
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  This library provides functionality for retrieving
4
4
  email via POP3, the Post Office Protocol version 3. For details
5
- of POP3, see [RFC1939] (http://www.ietf.org/rfc/rfc1939.txt).
5
+ of POP3, see [RFC1939](http://www.ietf.org/rfc/rfc1939.txt).
6
6
 
7
7
  ## Installation
8
8
 
data/Rakefile CHANGED
@@ -7,4 +7,11 @@ Rake::TestTask.new(:test) do |t|
7
7
  t.test_files = FileList['test/**/test_*.rb']
8
8
  end
9
9
 
10
+ task :sync_tool do
11
+ require 'fileutils'
12
+ FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
13
+ FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
14
+ FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
15
+ end
16
+
10
17
  task :default => :test
data/lib/net/pop.rb CHANGED
@@ -195,7 +195,7 @@ module Net
195
195
  #
196
196
  class POP3 < Protocol
197
197
  # version of this library
198
- VERSION = "0.1.1"
198
+ VERSION = "0.1.2"
199
199
 
200
200
  #
201
201
  # Class Parameters
@@ -540,8 +540,11 @@ module Net
540
540
 
541
541
  # internal method for Net::POP3.start
542
542
  def do_start(account, password) # :nodoc:
543
- s = Timeout.timeout(@open_timeout, Net::OpenTimeout) do
544
- TCPSocket.open(@address, port)
543
+ begin
544
+ s = Socket.tcp @address, port, nil, nil, connect_timeout: @open_timeout
545
+ rescue Errno::ETIMEDOUT #raise Net:OpenTimeout instead for compatibility with previous versions
546
+ raise Net::OpenTimeout, "Timeout to open TCP connection to "\
547
+ "#{@address}:#{port} (exceeds #{@open_timeout} seconds)"
545
548
  end
546
549
  if use_ssl?
547
550
  raise 'openssl library not installed' unless defined?(OpenSSL)
data/net-pop.gemspec CHANGED
@@ -22,13 +22,11 @@ Gem::Specification.new do |spec|
22
22
  spec.metadata["source_code_uri"] = spec.homepage
23
23
 
24
24
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
25
- `git ls-files -z 2>/dev/null`.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{^(bin|test|spec|features)/}) }
26
26
  end
27
27
  spec.bindir = "exe"
28
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
29
  spec.require_paths = ["lib"]
30
30
 
31
31
  spec.add_dependency "net-protocol"
32
- spec.add_dependency "digest"
33
- spec.add_dependency "timeout"
34
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-pop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yukihiro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-22 00:00:00.000000000 Z
11
+ date: 2022-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-protocol
@@ -24,34 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
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'
55
27
  description: Ruby client library for POP3.
56
28
  email:
57
29
  - matz@ruby-lang.org
@@ -59,14 +31,13 @@ executables: []
59
31
  extensions: []
60
32
  extra_rdoc_files: []
61
33
  files:
34
+ - ".github/dependabot.yml"
62
35
  - ".github/workflows/test.yml"
63
36
  - ".gitignore"
64
37
  - Gemfile
65
38
  - LICENSE.txt
66
39
  - README.md
67
40
  - Rakefile
68
- - bin/console
69
- - bin/setup
70
41
  - lib/net/pop.rb
71
42
  - net-pop.gemspec
72
43
  homepage: https://github.com/ruby/net-pop
@@ -91,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
62
  - !ruby/object:Gem::Version
92
63
  version: '0'
93
64
  requirements: []
94
- rubygems_version: 3.2.2
65
+ rubygems_version: 3.4.0.dev
95
66
  signing_key:
96
67
  specification_version: 4
97
68
  summary: Ruby client library for POP3.
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "net/pop"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here