net-http2 0.18.4 → 0.18.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 627981bb62f56403dfeb74a01539f93e9d78c6a7549688abc6fe53fbfa284ad8
4
- data.tar.gz: b850cd6575fdb514d55fd7ca96dc540a51eadb01849712183cd07de0f454414f
3
+ metadata.gz: cb2b84c0f69dcb612ca9d0451cba9849c7f51960832cfeb0e9c7a46f3875b2a7
4
+ data.tar.gz: b3ba2895d6e29247b0c25024997deefc24f15a6a86230ee6cf24f3f49d3fc2ff
5
5
  SHA512:
6
- metadata.gz: 03d0a0b04405e07f665e48ff7a2421caecbb1ec394fdedf3ae504b111074766bb993a970f873a87742fd48d79c53ee2de9ae3c9da2123f0c03cf1e8e05bf4fdf
7
- data.tar.gz: 3ab3f36984edb76bd2106ef2f0ee515ac3b853659fb92dc9039462755af146a9626ad37d6dd09b44e2404f5544e11a2622ab208d928b25338846177f5312e8b1
6
+ metadata.gz: 889756f4f42707b02dd008341b5725deb1ec1e8051eb775b926691785d1ec09e0ca76eb6dcc6c6414863f9e036d5864d5f08aadc9c234171ab997f1686fd5ac5
7
+ data.tar.gz: 54bc6ad252e68f9ba939fd6a7ff63f5053093db385358cec4eae04a0edb34aa37ab6139fb87c97097d6fe3e6c102794259678c4e19fb3fdcabc548266b306204
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 2.7.1
1
+ ruby 3.2.1
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Roberto Ostinelli.
3
+ Copyright (c) 2016-2023 Roberto Ostinelli.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,4 +1,3 @@
1
- [![Build Status](https://travis-ci.org/ostinelli/net-http2.svg?branch=master)](https://travis-ci.org/ostinelli/net-http2)
2
1
  [![Code Climate](https://codeclimate.com/github/ostinelli/net-http2/badges/gpa.svg)](https://codeclimate.com/github/ostinelli/net-http2)
3
2
  [![Gem Version](https://badge.fury.io/rb/net-http2.svg)](https://badge.fury.io/rb/net-http2)
4
3
 
@@ -26,8 +26,9 @@ module NetHttp2
26
26
  end
27
27
 
28
28
  def self.tcp_socket(uri, options)
29
- family = ::Socket::AF_INET
30
- address = ::Socket.getaddrinfo(uri.host, nil, family).first[3]
29
+ addrinfo = ::Socket.getaddrinfo(uri.host, nil, nil)
30
+ address = addrinfo.first[3]
31
+ family = addrinfo.first[4]
31
32
  sockaddr = ::Socket.pack_sockaddr_in(uri.port, address)
32
33
 
33
34
  socket = ::Socket.new(family, ::Socket::SOCK_STREAM, 0)
@@ -1,3 +1,3 @@
1
1
  module NetHttp2
2
- VERSION = '0.18.4'.freeze
2
+ VERSION = '0.18.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-http2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.4
4
+ version: 0.18.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Ostinelli
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-07 00:00:00.000000000 Z
11
+ date: 2023-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-2
@@ -76,7 +76,6 @@ files:
76
76
  - ".gitignore"
77
77
  - ".rspec"
78
78
  - ".tool-versions"
79
- - ".travis.yml"
80
79
  - Gemfile
81
80
  - LICENSE.md
82
81
  - README.md
@@ -111,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
110
  - !ruby/object:Gem::Version
112
111
  version: '0'
113
112
  requirements: []
114
- rubygems_version: 3.1.2
113
+ rubygems_version: 3.4.6
115
114
  signing_key:
116
115
  specification_version: 4
117
116
  summary: NetHttp2 is an HTTP2 client for Ruby.
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.4
4
- - 2.5
5
- - 2.6
6
- - 2.7
7
-
8
- branches:
9
- only:
10
- - master
11
-
12
- before_install:
13
- - gem install bundler