net-http 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Rakefile +0 -7
- data/doc/net-http/examples.rdoc +2 -1
- data/doc/net-http/included_getters.rdoc +3 -0
- data/lib/net/http/backward.rb +1 -1
- data/lib/net/http/exceptions.rb +1 -1
- data/lib/net/http/generic_request.rb +91 -15
- data/lib/net/http/header.rb +164 -67
- data/lib/net/http/proxy_delta.rb +1 -1
- data/lib/net/http/request.rb +50 -5
- data/lib/net/http/requests.rb +31 -1
- data/lib/net/http/response.rb +42 -22
- data/lib/net/http/responses.rb +507 -55
- data/lib/net/http/status.rb +7 -6
- data/lib/net/http.rb +944 -464
- data/lib/net/https.rb +1 -1
- data/net-http.gemspec +9 -4
- metadata +4 -6
- data/.github/dependabot.yml +0 -6
- data/.github/workflows/test.yml +0 -22
- data/.gitignore +0 -7
data/lib/net/https.rb
CHANGED
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
|
-
|
6
|
-
|
7
|
-
|
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
|
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.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NARUSE, Yui
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: uri
|
@@ -31,9 +31,6 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
-
- ".github/dependabot.yml"
|
35
|
-
- ".github/workflows/test.yml"
|
36
|
-
- ".gitignore"
|
37
34
|
- Gemfile
|
38
35
|
- LICENSE.txt
|
39
36
|
- README.md
|
@@ -41,6 +38,7 @@ files:
|
|
41
38
|
- bin/console
|
42
39
|
- bin/setup
|
43
40
|
- doc/net-http/examples.rdoc
|
41
|
+
- doc/net-http/included_getters.rdoc
|
44
42
|
- lib/net/http.rb
|
45
43
|
- lib/net/http/backward.rb
|
46
44
|
- lib/net/http/exceptions.rb
|
@@ -76,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
74
|
- !ruby/object:Gem::Version
|
77
75
|
version: '0'
|
78
76
|
requirements: []
|
79
|
-
rubygems_version: 3.
|
77
|
+
rubygems_version: 3.5.0.dev
|
80
78
|
signing_key:
|
81
79
|
specification_version: 4
|
82
80
|
summary: HTTP client api for Ruby.
|
data/.github/dependabot.yml
DELETED
data/.github/workflows/test.yml
DELETED
@@ -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
|