net-http 0.3.2 → 0.6.0

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.
data/lib/net/https.rb CHANGED
@@ -1,4 +1,4 @@
1
- # frozen_string_literal: false
1
+ # frozen_string_literal: true
2
2
  =begin
3
3
 
4
4
  = net/https -- SSL/TLS enhancement for Net::HTTP.
data/net-http.gemspec CHANGED
@@ -2,9 +2,14 @@
2
2
 
3
3
  name = File.basename(__FILE__, ".gemspec")
4
4
  version = ["lib", Array.new(name.count("-")+1, "..").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
+ file = File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")
6
+ begin
7
+ break File.foreach(file, mode: "rb") do |line|
8
+ /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
9
+ end
10
+ rescue SystemCallError
11
+ next
12
+ end
8
13
  end
9
14
 
10
15
  Gem::Specification.new do |spec|
@@ -25,7 +30,7 @@ Gem::Specification.new do |spec|
25
30
  # Specify which files should be added to the gem when it is released.
26
31
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
32
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
28
- `git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
33
+ `git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{\A(?:(?:test|spec|features)/|\.git)}) }
29
34
  end
30
35
  spec.bindir = "exe"
31
36
  spec.require_paths = ["lib"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - NARUSE, Yui
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-19 00:00:00.000000000 Z
11
+ date: 2024-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uri
@@ -31,18 +31,16 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - ".github/dependabot.yml"
35
- - ".github/workflows/test.yml"
36
- - ".gitignore"
34
+ - BSDL
35
+ - COPYING
37
36
  - Gemfile
38
- - LICENSE.txt
39
37
  - README.md
40
38
  - Rakefile
41
39
  - bin/console
42
40
  - bin/setup
43
41
  - doc/net-http/examples.rdoc
42
+ - doc/net-http/included_getters.rdoc
44
43
  - lib/net/http.rb
45
- - lib/net/http/backward.rb
46
44
  - lib/net/http/exceptions.rb
47
45
  - lib/net/http/generic_request.rb
48
46
  - lib/net/http/header.rb
@@ -61,7 +59,7 @@ licenses:
61
59
  metadata:
62
60
  homepage_uri: https://github.com/ruby/net-http
63
61
  source_code_uri: https://github.com/ruby/net-http
64
- post_install_message:
62
+ post_install_message:
65
63
  rdoc_options: []
66
64
  require_paths:
67
65
  - lib
@@ -76,8 +74,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
74
  - !ruby/object:Gem::Version
77
75
  version: '0'
78
76
  requirements: []
79
- rubygems_version: 3.4.0.dev
80
- signing_key:
77
+ rubygems_version: 3.5.11
78
+ signing_key:
81
79
  specification_version: 4
82
80
  summary: HTTP client api for Ruby.
83
81
  test_files: []
@@ -1,6 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: 'github-actions'
4
- directory: '/'
5
- schedule:
6
- interval: 'weekly'
@@ -1,22 +0,0 @@
1
- name: ubuntu
2
-
3
- on: [push, pull_request]
4
-
5
- jobs:
6
- build:
7
- name: build (${{ matrix.ruby }} / ${{ matrix.os }})
8
- strategy:
9
- matrix:
10
- ruby: [ 3.1, '3.0', 2.7, 2.6, head ]
11
- os: [ ubuntu-latest, macos-latest ]
12
- runs-on: ${{ matrix.os }}
13
- steps:
14
- - uses: actions/checkout@v3
15
- - name: Set up Ruby
16
- uses: ruby/setup-ruby@v1
17
- with:
18
- ruby-version: ${{ matrix.ruby }}
19
- - name: Install dependencies
20
- run: bundle install
21
- - name: Run test
22
- run: rake test
data/.gitignore DELETED
@@ -1,7 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /pkg/
6
- /spec/reports/
7
- /tmp/
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: false
2
- # for backward compatibility
3
-
4
- # :enddoc:
5
-
6
- class Net::HTTP
7
- ProxyMod = ProxyDelta
8
- deprecate_constant :ProxyMod
9
- end
10
-
11
- module Net::NetPrivate
12
- HTTPRequest = ::Net::HTTPRequest
13
- deprecate_constant :HTTPRequest
14
- end
15
-
16
- module Net
17
- HTTPSession = HTTP
18
-
19
- HTTPInformationCode = HTTPInformation
20
- HTTPSuccessCode = HTTPSuccess
21
- HTTPRedirectionCode = HTTPRedirection
22
- HTTPRetriableCode = HTTPRedirection
23
- HTTPClientErrorCode = HTTPClientError
24
- HTTPFatalErrorCode = HTTPClientError
25
- HTTPServerErrorCode = HTTPServerError
26
- HTTPResponseReceiver = HTTPResponse
27
-
28
- HTTPResponceReceiver = HTTPResponse # Typo since 2001
29
-
30
- deprecate_constant :HTTPSession,
31
- :HTTPInformationCode,
32
- :HTTPSuccessCode,
33
- :HTTPRedirectionCode,
34
- :HTTPRetriableCode,
35
- :HTTPClientErrorCode,
36
- :HTTPFatalErrorCode,
37
- :HTTPServerErrorCode,
38
- :HTTPResponseReceiver,
39
- :HTTPResponceReceiver
40
- end