funnel_http 0.5.14 → 0.5.15
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 +4 -4
- data/CHANGELOG.md +8 -1
- data/ext/funnel_http/funnel_http.go +28 -16
- data/ext/funnel_http/go.mod +1 -1
- data/ext/funnel_http/go.sum +2 -2
- data/lib/funnel_http/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df00f14e6751da1f0fe37842b544e49176a90af2f006cdd64e84c3bd9d1cfed4
|
|
4
|
+
data.tar.gz: 359f884cd8adebad4951d9637df6224ffbc568d19185a60a316ecdc3303c20a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa86b0f85dc8f8299833e38de624a2f75a3c356e1ad952f4adc8d7d5f6d6c4a2c70ba9a33fd3b3b290bff6d4aec243ad5bf67a6dc92e26b76be0ddc0b6e71edd
|
|
7
|
+
data.tar.gz: 546d32453819bf0d834cf12d7d2c4b1bd46279fac0daedd6965861f85e9c83466f60fad39f96e5c0587cb65afb753972221ef8bff5fc464767e557d9f79a9d03
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
|
-
[full changelog](http://github.com/sue445/funnel_http/compare/v0.5.
|
|
2
|
+
[full changelog](http://github.com/sue445/funnel_http/compare/v0.5.15...main)
|
|
3
|
+
|
|
4
|
+
## [0.5.15](https://github.com/sue445/funnel_http/releases/tag/v0.5.15) - 2026-09-12
|
|
5
|
+
[full changelog](http://github.com/sue445/funnel_http/compare/v0.5.14...v0.5.15)
|
|
6
|
+
|
|
7
|
+
* Fix SEGV
|
|
8
|
+
* https://github.com/sue445/funnel_http/pull/214
|
|
9
|
+
* Update Go dependencies
|
|
3
10
|
|
|
4
11
|
## [0.5.14](https://github.com/sue445/funnel_http/releases/tag/v0.5.14) - 2026-09-12
|
|
5
12
|
[full changelog](http://github.com/sue445/funnel_http/compare/v0.5.13...v0.5.14)
|
|
@@ -38,9 +38,10 @@ func rb_funnel_http_run_requests(self C.VALUE, rbAry C.VALUE) C.VALUE {
|
|
|
38
38
|
ruby.RbRaise(rb_cFunnelHttpError, "%s", err.Error())
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
for
|
|
41
|
+
rbHashSlice := make([]ruby.VALUE, len(responses))
|
|
42
|
+
for i, response := range responses {
|
|
43
43
|
rbHash := ruby.RbHashNew()
|
|
44
|
+
ruby.RbGcRegisterAddress(&rbHash)
|
|
44
45
|
|
|
45
46
|
ruby.RbHashAset(rbHash, ruby.RbId2Sym(ruby.RbIntern("status_code")), ruby.INT2NUM(response.StatusCode))
|
|
46
47
|
ruby.RbHashAset(rbHash, ruby.RbId2Sym(ruby.RbIntern("body")), ruby.String2Value(string(response.Body)))
|
|
@@ -48,33 +49,45 @@ func rb_funnel_http_run_requests(self C.VALUE, rbAry C.VALUE) C.VALUE {
|
|
|
48
49
|
|
|
49
50
|
rbHashHeader := ruby.RbHashNew()
|
|
50
51
|
ruby.RbGcRegisterAddress(&rbHashHeader)
|
|
51
|
-
defer ruby.RbGcUnregisterAddress(&rbHashHeader)
|
|
52
52
|
|
|
53
53
|
for key, values := range response.Header {
|
|
54
|
-
|
|
55
|
-
for
|
|
56
|
-
|
|
57
|
-
ruby.RbGcRegisterAddress(&
|
|
58
|
-
defer ruby.RbGcUnregisterAddress(&v)
|
|
59
|
-
|
|
60
|
-
headerValues = append(headerValues, v)
|
|
54
|
+
headerValues := make([]ruby.VALUE, len(values))
|
|
55
|
+
for j, value := range values {
|
|
56
|
+
headerValues[j] = ruby.String2Value(value)
|
|
57
|
+
ruby.RbGcRegisterAddress(&headerValues[j])
|
|
61
58
|
}
|
|
59
|
+
|
|
62
60
|
k := ruby.String2Value(key)
|
|
63
61
|
ruby.RbGcRegisterAddress(&k)
|
|
64
|
-
defer ruby.RbGcUnregisterAddress(&k)
|
|
65
62
|
|
|
66
63
|
v := ruby.Slice2rbAry(headerValues)
|
|
67
64
|
ruby.RbGcRegisterAddress(&v)
|
|
68
|
-
defer ruby.RbGcUnregisterAddress(&v)
|
|
69
65
|
|
|
70
66
|
ruby.RbHashAset(rbHashHeader, k, v)
|
|
67
|
+
|
|
68
|
+
ruby.RbGcUnregisterAddress(&v)
|
|
69
|
+
ruby.RbGcUnregisterAddress(&k)
|
|
70
|
+
|
|
71
|
+
for j := range headerValues {
|
|
72
|
+
ruby.RbGcUnregisterAddress(&headerValues[j])
|
|
73
|
+
}
|
|
71
74
|
}
|
|
75
|
+
|
|
72
76
|
ruby.RbHashAset(rbHash, ruby.RbId2Sym(ruby.RbIntern("header")), rbHashHeader)
|
|
77
|
+
ruby.RbGcUnregisterAddress(&rbHashHeader)
|
|
78
|
+
|
|
79
|
+
rbHashSlice[i] = rbHash
|
|
80
|
+
ruby.RbGcRegisterAddress(&rbHashSlice[i])
|
|
81
|
+
ruby.RbGcUnregisterAddress(&rbHash)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
rbResponseAry := ruby.Slice2rbAry(rbHashSlice)
|
|
73
85
|
|
|
74
|
-
|
|
86
|
+
for i := range rbHashSlice {
|
|
87
|
+
ruby.RbGcUnregisterAddress(&rbHashSlice[i])
|
|
75
88
|
}
|
|
76
89
|
|
|
77
|
-
return C.VALUE(
|
|
90
|
+
return C.VALUE(rbResponseAry)
|
|
78
91
|
}
|
|
79
92
|
|
|
80
93
|
func getHttpClientFromInstanceVariable(self ruby.VALUE) http.Client {
|
|
@@ -92,8 +105,7 @@ func getHttpClientFromInstanceVariable(self ruby.VALUE) http.Client {
|
|
|
92
105
|
data := ruby.GetGoStruct(obj)
|
|
93
106
|
|
|
94
107
|
// Save FunnelHttp::Ext::GoData to instance variable of FunnelHttp::Ext::Client
|
|
95
|
-
|
|
96
|
-
ruby.RbIvarSet(self, id, *dataValue)
|
|
108
|
+
ruby.RbIvarSet(self, id, obj)
|
|
97
109
|
|
|
98
110
|
return ((*goData)(data)).httpClient
|
|
99
111
|
}
|
data/ext/funnel_http/go.mod
CHANGED
data/ext/funnel_http/go.sum
CHANGED
|
@@ -54,8 +54,8 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY
|
|
|
54
54
|
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
55
55
|
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
56
56
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
|
57
|
-
golang.org/x/sync v0.
|
|
58
|
-
golang.org/x/sync v0.
|
|
57
|
+
golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk=
|
|
58
|
+
golang.org/x/sync v0.23.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
|
|
59
59
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
|
60
60
|
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
|
61
61
|
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
data/lib/funnel_http/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: funnel_http
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: go_gem
|