nonnative 1.101.0 → 1.103.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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -2
- data/CHANGELOG.md +26 -0
- data/Gemfile.lock +30 -22
- data/Makefile +1 -0
- data/lib/nonnative/http_proxy_server.rb +2 -3
- data/lib/nonnative/socket_pair.rb +3 -3
- data/lib/nonnative/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: b620fc0c074cd4709b3662d7d6189ab9d129727b61edb658766ac63ef7b3a7c3
|
4
|
+
data.tar.gz: 596ab87a301257e2df795ce9aab8f2791c67f4267b0c17af91e2158ac9077845
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dba6c48cb42ce5e85762e05b859572b3dd28dbaa5548d855c4087bdf16702bc0783bb981ca3696256a2a711f646ff008bae6cd27db7f12be3159ba24789cde9
|
7
|
+
data.tar.gz: 50ed055d4e1550088cd8be0995442cf51a488aa0193dca21e49aa93da1bf88fbd082dc391fd9a1e3aeda65586a8243a545e6f83c36c696d0ce71335bea7397cd
|
data/.circleci/config.yml
CHANGED
@@ -3,7 +3,7 @@ version: 2.1
|
|
3
3
|
jobs:
|
4
4
|
build:
|
5
5
|
docker:
|
6
|
-
- image: alexfalkowski/ruby:1.
|
6
|
+
- image: alexfalkowski/ruby:1.33
|
7
7
|
working_directory: ~/nonnative
|
8
8
|
steps:
|
9
9
|
- checkout
|
@@ -31,7 +31,7 @@ jobs:
|
|
31
31
|
resource_class: large
|
32
32
|
release:
|
33
33
|
docker:
|
34
|
-
- image: alexfalkowski/release:3.
|
34
|
+
- image: alexfalkowski/release:3.22
|
35
35
|
working_directory: ~/nonnative
|
36
36
|
steps:
|
37
37
|
- checkout
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,32 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
|
7
7
|
## Unreleased
|
8
8
|
|
9
|
+
## [v1.103.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.103.0) - 2025-06-06
|
10
|
+
|
11
|
+
- [`2e2b7e4`](https://github.com/alexfalkowski/nonnative/commit/2e2b7e46a6005a265bb00baa600bdc0e954486f3) feat(socket): use predicate method (#576)
|
12
|
+
- [`8b12b0f`](https://github.com/alexfalkowski/nonnative/commit/8b12b0fe1d2b19d770ca1959d8dcf16d614b913a) test(deps): bump rspec-expectations from 3.13.4 to 3.13.5 (#575)
|
13
|
+
- [`cf1a961`](https://github.com/alexfalkowski/nonnative/commit/cf1a96109d52fb37095ae7a7727d04f565e7ebed) test(deps): bump ruby-lsp from 0.23.20 to 0.23.24 (#574)
|
14
|
+
- [`bb0c989`](https://github.com/alexfalkowski/nonnative/commit/bb0c9891a8c51dd5c9d3db3c9f15086151aef182) build(deps): bump bin from `9c21752` to `255c12c` (#572)
|
15
|
+
- [`588f26c`](https://github.com/alexfalkowski/nonnative/commit/588f26c8d62ae85f81fb79f92b3067f3e5430257) test(deps): bump rack from 3.1.15 to 3.1.16 (#571)
|
16
|
+
- [`7b35d07`](https://github.com/alexfalkowski/nonnative/commit/7b35d073f30a62e3c846cd4408849b81f3352cb8) build(ci): use alexfalkowski/ruby:1.33 (#570)
|
17
|
+
- [`19378ce`](https://github.com/alexfalkowski/nonnative/commit/19378ceb037f23c7e016394975662e3ae818b19f) build(deps): bump bin from `810b10e` to `9c21752` (#569)
|
18
|
+
- [`b83e1f9`](https://github.com/alexfalkowski/nonnative/commit/b83e1f945c8cf2ee67ef35d0d2956d4ad067fd8e) build(ci): use alexfalkowski/ruby:1.31 (#568)
|
19
|
+
- [`6e90161`](https://github.com/alexfalkowski/nonnative/commit/6e90161bbab3fa69f743ea239cdc6e2ff8e059fc) build(deps): bump bin from `eeb0425` to `810b10e` (#567)
|
20
|
+
- [`97f4bbd`](https://github.com/alexfalkowski/nonnative/commit/97f4bbda48012b906c333a08e59d75ce58f303ce) build(deps): bump bin from `104e349` to `eeb0425` (#566)
|
21
|
+
- [`860cf31`](https://github.com/alexfalkowski/nonnative/commit/860cf31e9ba24b6e720dcdb2c687ad0004d4d4f8) build(deps): bump bin from `de214a6` to `104e349` (#565)
|
22
|
+
- [`caeb640`](https://github.com/alexfalkowski/nonnative/commit/caeb64039156a18590a2dc27566c98d54422b0ea) build(deps): bump bin from `041892c` to `de214a6` (#564)
|
23
|
+
- [`a211e61`](https://github.com/alexfalkowski/nonnative/commit/a211e61a1c8acff21f5c68cbf334aec296def84c) build(ci): use alexfalkowski/ruby:1.29 (#563)
|
24
|
+
- [`b475e48`](https://github.com/alexfalkowski/nonnative/commit/b475e48b1cd515fa5bcefca9f4be8147ded2e350) build(deps): bump bin from `c59b166` to `041892c` (#562)
|
25
|
+
- [`46412eb`](https://github.com/alexfalkowski/nonnative/commit/46412eb4a4206b0ca0cb94f8e559f41e4e666cc1) build(deps): bump bin from `ac9a5b2` to `c59b166` (#561)
|
26
|
+
- [`de82d07`](https://github.com/alexfalkowski/nonnative/commit/de82d070becdafc99f082208069d5fb064f3560e) build(deps): update all (#560)
|
27
|
+
- [`b59fbc7`](https://github.com/alexfalkowski/nonnative/commit/b59fbc747f887bfc9bd7b18357d442ecf1b6d4f5) build(deps): bump bin from `652fb33` to `ac9a5b2` (#559)
|
28
|
+
- [`8ced4ae`](https://github.com/alexfalkowski/nonnative/commit/8ced4aec80609807626af29061b430b7ee62fdd3) build(deps): bump bin from `7b214f3` to `652fb33` (#558)
|
29
|
+
- [`0b749d0`](https://github.com/alexfalkowski/nonnative/commit/0b749d090d020c62ae9f968b93c18b270bc4e2a6) build(deps): bump bin from `926a71b` to `7b214f3` (#557)
|
30
|
+
|
31
|
+
## [v1.102.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.102.0) - 2025-05-01
|
32
|
+
|
33
|
+
- [`d2947f6`](https://github.com/alexfalkowski/nonnative/commit/d2947f6626ce77ade0a69007ea388cf14e5d3f67) feat(http): enable logging for proxy (#556)
|
34
|
+
|
9
35
|
## [v1.101.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.101.0) - 2025-05-01
|
10
36
|
|
11
37
|
- [`ae5969c`](https://github.com/alexfalkowski/nonnative/commit/ae5969c59f3f52bc2b88c1d84e4290f3a0d164a1) feat(proxy): add logs for start/stop (#555)
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nonnative (1.
|
4
|
+
nonnative (1.103.0)
|
5
5
|
concurrent-ruby (>= 1, < 2)
|
6
6
|
config (>= 5, < 6)
|
7
7
|
cucumber (>= 7, < 10)
|
@@ -55,32 +55,39 @@ GEM
|
|
55
55
|
cucumber-messages (22.0.0)
|
56
56
|
cucumber-tag-expressions (6.1.2)
|
57
57
|
deep_merge (1.2.2)
|
58
|
-
diff-lcs (1.6.
|
58
|
+
diff-lcs (1.6.2)
|
59
59
|
docile (1.4.1)
|
60
60
|
domain_name (0.6.20240107)
|
61
61
|
ffi (1.17.2-x86_64-darwin)
|
62
|
+
ffi (1.17.2-x86_64-linux-gnu)
|
62
63
|
get_process_mem (1.0.0)
|
63
64
|
bigdecimal (>= 2.0)
|
64
65
|
ffi (~> 1.0)
|
65
|
-
google-protobuf (4.
|
66
|
+
google-protobuf (4.31.0-x86_64-darwin)
|
67
|
+
bigdecimal
|
68
|
+
rake (>= 13)
|
69
|
+
google-protobuf (4.31.0-x86_64-linux-gnu)
|
66
70
|
bigdecimal
|
67
71
|
rake (>= 13)
|
68
72
|
googleapis-common-protos-types (1.20.0)
|
69
73
|
google-protobuf (>= 3.18, < 5.a)
|
70
|
-
grpc (1.
|
74
|
+
grpc (1.72.0-x86_64-darwin)
|
75
|
+
google-protobuf (>= 3.25, < 5.0)
|
76
|
+
googleapis-common-protos-types (~> 1.0)
|
77
|
+
grpc (1.72.0-x86_64-linux)
|
71
78
|
google-protobuf (>= 3.25, < 5.0)
|
72
79
|
googleapis-common-protos-types (~> 1.0)
|
73
80
|
http-accept (1.7.0)
|
74
81
|
http-cookie (1.0.8)
|
75
82
|
domain_name (~> 0.5)
|
76
|
-
json (2.
|
77
|
-
language_server-protocol (3.17.0.
|
83
|
+
json (2.12.2)
|
84
|
+
language_server-protocol (3.17.0.5)
|
78
85
|
lint_roller (1.1.0)
|
79
86
|
logger (1.7.0)
|
80
|
-
mime-types (3.
|
87
|
+
mime-types (3.7.0)
|
81
88
|
logger
|
82
|
-
mime-types-data (~> 3.
|
83
|
-
mime-types-data (3.2025.
|
89
|
+
mime-types-data (~> 3.2025, >= 3.2025.0507)
|
90
|
+
mime-types-data (3.2025.0514)
|
84
91
|
mini_mime (1.1.5)
|
85
92
|
multi_test (1.1.0)
|
86
93
|
mustermann (3.0.3)
|
@@ -96,17 +103,17 @@ GEM
|
|
96
103
|
puma (6.6.0)
|
97
104
|
nio4r (~> 2.0)
|
98
105
|
racc (1.8.1)
|
99
|
-
rack (3.1.
|
106
|
+
rack (3.1.16)
|
100
107
|
rack-protection (4.1.1)
|
101
108
|
base64 (>= 0.1.0)
|
102
109
|
logger (>= 1.6.0)
|
103
110
|
rack (>= 3.0.0, < 4)
|
104
|
-
rack-session (2.1.
|
111
|
+
rack-session (2.1.1)
|
105
112
|
base64 (>= 0.1.0)
|
106
113
|
rack (>= 3.0.0)
|
107
114
|
rainbow (3.1.1)
|
108
115
|
rake (13.2.1)
|
109
|
-
rbs (3.9.
|
116
|
+
rbs (3.9.4)
|
110
117
|
logger
|
111
118
|
regexp_parser (2.10.0)
|
112
119
|
rest-client (2.1.0)
|
@@ -127,16 +134,16 @@ GEM
|
|
127
134
|
rspec (>= 3.0)
|
128
135
|
rspec-core (3.13.3)
|
129
136
|
rspec-support (~> 3.13.0)
|
130
|
-
rspec-expectations (3.13.
|
137
|
+
rspec-expectations (3.13.5)
|
131
138
|
diff-lcs (>= 1.2.0, < 2.0)
|
132
139
|
rspec-support (~> 3.13.0)
|
133
|
-
rspec-mocks (3.13.
|
140
|
+
rspec-mocks (3.13.4)
|
134
141
|
diff-lcs (>= 1.2.0, < 2.0)
|
135
142
|
rspec-support (~> 3.13.0)
|
136
|
-
rspec-support (3.13.
|
143
|
+
rspec-support (3.13.4)
|
137
144
|
rspec-wait (1.0.1)
|
138
145
|
rspec (>= 3.4)
|
139
|
-
rubocop (1.
|
146
|
+
rubocop (1.76.0)
|
140
147
|
json (~> 2.3)
|
141
148
|
language_server-protocol (~> 3.17.0.2)
|
142
149
|
lint_roller (~> 1.1.0)
|
@@ -144,16 +151,16 @@ GEM
|
|
144
151
|
parser (>= 3.3.0.2)
|
145
152
|
rainbow (>= 2.2.2, < 4.0)
|
146
153
|
regexp_parser (>= 2.9.3, < 3.0)
|
147
|
-
rubocop-ast (>= 1.
|
154
|
+
rubocop-ast (>= 1.45.0, < 2.0)
|
148
155
|
ruby-progressbar (~> 1.7)
|
149
156
|
unicode-display_width (>= 2.4.0, < 4.0)
|
150
|
-
rubocop-ast (1.
|
157
|
+
rubocop-ast (1.45.0)
|
151
158
|
parser (>= 3.3.7.2)
|
152
159
|
prism (~> 1.4)
|
153
|
-
ruby-lsp (0.23.
|
160
|
+
ruby-lsp (0.23.24)
|
154
161
|
language_server-protocol (~> 3.17.0)
|
155
162
|
prism (>= 1.2, < 2.0)
|
156
|
-
rbs (>= 3, <
|
163
|
+
rbs (>= 3, < 5)
|
157
164
|
sorbet-runtime (>= 0.5.10782)
|
158
165
|
ruby-progressbar (1.13.0)
|
159
166
|
ruby2_keywords (0.0.5)
|
@@ -173,7 +180,7 @@ GEM
|
|
173
180
|
rack-protection (= 4.1.1)
|
174
181
|
rack-session (>= 2.0.0, < 3)
|
175
182
|
tilt (~> 2.0)
|
176
|
-
sorbet-runtime (0.5.
|
183
|
+
sorbet-runtime (0.5.12155)
|
177
184
|
sys-uname (1.3.1)
|
178
185
|
ffi (~> 1.1)
|
179
186
|
tilt (2.6.0)
|
@@ -184,6 +191,7 @@ GEM
|
|
184
191
|
PLATFORMS
|
185
192
|
x86_64-darwin-21
|
186
193
|
x86_64-darwin-23
|
194
|
+
x86_64-linux
|
187
195
|
|
188
196
|
DEPENDENCIES
|
189
197
|
bundler
|
@@ -194,4 +202,4 @@ DEPENDENCIES
|
|
194
202
|
simplecov-cobertura
|
195
203
|
|
196
204
|
BUNDLED WITH
|
197
|
-
2.6.
|
205
|
+
2.6.9
|
data/Makefile
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# Adapted from https://gist.github.com/RaVbaker/d9ead3c92b915f997dab25c7f0c0ab65
|
4
4
|
module Nonnative
|
5
|
-
class
|
5
|
+
class HTTPProxy < Sinatra::Application
|
6
6
|
def retrieve_headers(request)
|
7
7
|
headers = request.env.map do |header, value|
|
8
8
|
[header[5..].split('_').map(&:capitalize).join('-'), value] if header.start_with?('HTTP_')
|
@@ -38,9 +38,8 @@ module Nonnative
|
|
38
38
|
|
39
39
|
class HTTPProxyServer < Nonnative::HTTPServer
|
40
40
|
def initialize(host, service)
|
41
|
-
app = Sinatra.new(Nonnative::
|
41
|
+
app = Sinatra.new(Nonnative::HTTPProxy) do
|
42
42
|
configure do
|
43
|
-
set :logging, false
|
44
43
|
set :host, host
|
45
44
|
end
|
46
45
|
end
|
@@ -12,8 +12,8 @@ module Nonnative
|
|
12
12
|
loop do
|
13
13
|
ready = select([local_socket, remote_socket], nil, nil)
|
14
14
|
|
15
|
-
break if pipe(ready, local_socket, remote_socket)
|
16
|
-
break if pipe(ready, remote_socket, local_socket)
|
15
|
+
break if pipe?(ready, local_socket, remote_socket)
|
16
|
+
break if pipe?(ready, remote_socket, local_socket)
|
17
17
|
end
|
18
18
|
ensure
|
19
19
|
Nonnative.logger.info "finished connect for local socket '#{local_socket.inspect}' and '#{remote_socket&.inspect}' for 'socket_pair'"
|
@@ -30,7 +30,7 @@ module Nonnative
|
|
30
30
|
::TCPSocket.new(proxy.host, proxy.port)
|
31
31
|
end
|
32
32
|
|
33
|
-
def pipe(ready, socket1, socket2)
|
33
|
+
def pipe?(ready, socket1, socket2)
|
34
34
|
if ready[0].include?(socket1)
|
35
35
|
data = read(socket1)
|
36
36
|
return true if data.empty?
|
data/lib/nonnative/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nonnative
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.103.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alejandro Falkowski
|
@@ -330,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
330
330
|
- !ruby/object:Gem::Version
|
331
331
|
version: '0'
|
332
332
|
requirements: []
|
333
|
-
rubygems_version: 3.6.
|
333
|
+
rubygems_version: 3.6.9
|
334
334
|
specification_version: 4
|
335
335
|
summary: Allows you to keep using the power of ruby to test other systems
|
336
336
|
test_files: []
|