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.
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.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: 2022-12-19 00:00:00.000000000 Z
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.4.0.dev
77
+ rubygems_version: 3.5.0.dev
80
78
  signing_key:
81
79
  specification_version: 4
82
80
  summary: HTTP client api for Ruby.
@@ -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/