nonnative 1.57.1 → 1.58.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/CHANGELOG.md +7 -0
- data/Gemfile.lock +18 -19
- data/lib/nonnative/configuration.rb +6 -1
- data/lib/nonnative/configuration_proxy.rb +2 -1
- data/lib/nonnative/configuration_runner.rb +5 -1
- data/lib/nonnative/fault_injection_proxy.rb +1 -1
- data/lib/nonnative/socket_pair.rb +1 -1
- data/lib/nonnative/version.rb +1 -1
- data/nonnative.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 69182fbc9168ccfd1ca3518278932214060f8d394cc462804c85f4080f0ecbb7
|
|
4
|
+
data.tar.gz: 2482137fe8952a37601fa21d82b526c2b6341a32a18c34ce6f8ac928eee01a0b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f7abce509b8a1b7401b5bbc10e3b38925c129d6d85b7e756fa816793378623eb81da044728a1ab162159f5a6a070fd5f6a003204abb8a1cf34c9f0d68027744
|
|
7
|
+
data.tar.gz: 1d12e60528f00e3708015150164b3b64d9b5ffb23955507ce6a2670ab11413ccc349b9d21f30652949209cb4cc8526d652e81415fadf3818b57b8afcf2c7f8cf
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.58.0](https://github.com/alexfalkowski/nonnative/compare/v1.57.1...v1.58.0) (2022-04-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* allow services and proxy to use a host ([#114](https://github.com/alexfalkowski/nonnative/issues/114)) ([0e3fbd8](https://github.com/alexfalkowski/nonnative/commit/0e3fbd8bc7ba76b5c5219615b66e80da4b9545ee))
|
|
11
|
+
|
|
5
12
|
### [1.57.1](https://github.com/alexfalkowski/nonnative/compare/v1.57.0...v1.57.1) (2022-03-28)
|
|
6
13
|
|
|
7
14
|
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
nonnative (1.
|
|
4
|
+
nonnative (1.58.0)
|
|
5
5
|
concurrent-ruby (~> 1.0, >= 1.0.5)
|
|
6
6
|
cucumber (>= 7, < 8)
|
|
7
7
|
get_process_mem (~> 0.2.1)
|
|
@@ -24,12 +24,11 @@ GEM
|
|
|
24
24
|
benchmark-trend (0.4.0)
|
|
25
25
|
builder (3.2.4)
|
|
26
26
|
concurrent-ruby (1.1.10)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
tins (~> 1.6)
|
|
27
|
+
coveralls_reborn (0.24.0)
|
|
28
|
+
simplecov (>= 0.18.1, < 0.22.0)
|
|
29
|
+
term-ansicolor (~> 1.6)
|
|
30
|
+
thor (>= 0.20.3, < 2.0)
|
|
31
|
+
tins (~> 1.16)
|
|
33
32
|
cucumber (7.1.0)
|
|
34
33
|
builder (~> 3.2, >= 3.2.4)
|
|
35
34
|
cucumber-core (~> 10.1, >= 10.1.0)
|
|
@@ -68,8 +67,8 @@ GEM
|
|
|
68
67
|
ffi (1.15.5)
|
|
69
68
|
get_process_mem (0.2.7)
|
|
70
69
|
ffi (~> 1.0)
|
|
71
|
-
google-protobuf (3.
|
|
72
|
-
googleapis-common-protos-types (1.3.
|
|
70
|
+
google-protobuf (3.20.0-x86_64-darwin)
|
|
71
|
+
googleapis-common-protos-types (1.3.1)
|
|
73
72
|
google-protobuf (~> 3.14)
|
|
74
73
|
grpc (1.45.0-universal-darwin)
|
|
75
74
|
google-protobuf (~> 3.19)
|
|
@@ -79,8 +78,7 @@ GEM
|
|
|
79
78
|
http-cookie (1.0.4)
|
|
80
79
|
domain_name (~> 0.5)
|
|
81
80
|
jaro_winkler (1.5.4)
|
|
82
|
-
|
|
83
|
-
kramdown (2.3.1)
|
|
81
|
+
kramdown (2.3.2)
|
|
84
82
|
rexml
|
|
85
83
|
kramdown-parser-gfm (1.1.0)
|
|
86
84
|
kramdown (~> 2.0)
|
|
@@ -94,10 +92,10 @@ GEM
|
|
|
94
92
|
nio4r (2.5.8)
|
|
95
93
|
nokogiri (1.13.3-x86_64-darwin)
|
|
96
94
|
racc (~> 1.4)
|
|
97
|
-
parallel (1.22.
|
|
95
|
+
parallel (1.22.1)
|
|
98
96
|
parser (3.1.1.0)
|
|
99
97
|
ast (~> 2.4.1)
|
|
100
|
-
puma (5.6.
|
|
98
|
+
puma (5.6.4)
|
|
101
99
|
nio4r (~> 2.0)
|
|
102
100
|
racc (1.6.0)
|
|
103
101
|
rack (2.2.3)
|
|
@@ -127,7 +125,7 @@ GEM
|
|
|
127
125
|
rspec-expectations (3.11.0)
|
|
128
126
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
129
127
|
rspec-support (~> 3.11.0)
|
|
130
|
-
rspec-mocks (3.11.
|
|
128
|
+
rspec-mocks (3.11.1)
|
|
131
129
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
132
130
|
rspec-support (~> 3.11.0)
|
|
133
131
|
rspec-support (3.11.0)
|
|
@@ -144,11 +142,12 @@ GEM
|
|
|
144
142
|
parser (>= 3.1.1.0)
|
|
145
143
|
ruby-progressbar (1.11.0)
|
|
146
144
|
ruby2_keywords (0.0.5)
|
|
147
|
-
simplecov (0.
|
|
145
|
+
simplecov (0.21.2)
|
|
148
146
|
docile (~> 1.1)
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
simplecov-html (0.
|
|
147
|
+
simplecov-html (~> 0.11)
|
|
148
|
+
simplecov_json_formatter (~> 0.1)
|
|
149
|
+
simplecov-html (0.12.3)
|
|
150
|
+
simplecov_json_formatter (0.1.4)
|
|
152
151
|
sinatra (2.2.0)
|
|
153
152
|
mustermann (~> 1.0)
|
|
154
153
|
rack (~> 2.2)
|
|
@@ -191,7 +190,7 @@ PLATFORMS
|
|
|
191
190
|
|
|
192
191
|
DEPENDENCIES
|
|
193
192
|
bundler (~> 2.3)
|
|
194
|
-
|
|
193
|
+
coveralls_reborn (~> 0.24.0)
|
|
195
194
|
nonnative!
|
|
196
195
|
rubocop (~> 1.26)
|
|
197
196
|
solargraph (~> 0.44.3)
|
|
@@ -96,6 +96,7 @@ module Nonnative
|
|
|
96
96
|
services.each do |fd|
|
|
97
97
|
service do |s|
|
|
98
98
|
s.name = fd['name']
|
|
99
|
+
s.host = fd['host'] if fd['host']
|
|
99
100
|
s.port = fd['port']
|
|
100
101
|
|
|
101
102
|
proxy s, fd['proxy']
|
|
@@ -106,12 +107,16 @@ module Nonnative
|
|
|
106
107
|
def proxy(runner, proxy)
|
|
107
108
|
return unless proxy
|
|
108
109
|
|
|
109
|
-
|
|
110
|
+
p = {
|
|
110
111
|
type: proxy['type'],
|
|
111
112
|
port: proxy['port'],
|
|
112
113
|
log: proxy['log'],
|
|
113
114
|
options: proxy['options']
|
|
114
115
|
}
|
|
116
|
+
|
|
117
|
+
p[:host] = proxy['host'] if proxy['host']
|
|
118
|
+
|
|
119
|
+
runner.proxy = p
|
|
115
120
|
end
|
|
116
121
|
end
|
|
117
122
|
end
|
|
@@ -2,15 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
module Nonnative
|
|
4
4
|
class ConfigurationRunner
|
|
5
|
-
attr_accessor :name, :port
|
|
5
|
+
attr_accessor :name, :host, :port
|
|
6
6
|
attr_reader :proxy
|
|
7
7
|
|
|
8
8
|
def initialize
|
|
9
|
+
self.host = '0.0.0.0'
|
|
10
|
+
self.port = 0
|
|
11
|
+
|
|
9
12
|
@proxy = Nonnative::ConfigurationProxy.new
|
|
10
13
|
end
|
|
11
14
|
|
|
12
15
|
def proxy=(value)
|
|
13
16
|
proxy.type = value[:type]
|
|
17
|
+
proxy.host = value[:host] if value[:host]
|
|
14
18
|
proxy.port = value[:port]
|
|
15
19
|
proxy.log = value[:log]
|
|
16
20
|
proxy.options = value[:options]
|
data/lib/nonnative/version.rb
CHANGED
data/nonnative.gemspec
CHANGED
|
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
|
36
36
|
spec.add_dependency 'sinatra', '~> 2.0', '>= 2.0.8.1'
|
|
37
37
|
|
|
38
38
|
spec.add_development_dependency 'bundler', '~> 2.3'
|
|
39
|
-
spec.add_development_dependency '
|
|
39
|
+
spec.add_development_dependency 'coveralls_reborn', '~> 0.24.0'
|
|
40
40
|
spec.add_development_dependency 'rubocop', '~> 1.26'
|
|
41
41
|
spec.add_development_dependency 'solargraph', '~> 0.44.3'
|
|
42
42
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nonnative
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.58.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alejandro Falkowski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-04-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|
|
@@ -201,19 +201,19 @@ dependencies:
|
|
|
201
201
|
- !ruby/object:Gem::Version
|
|
202
202
|
version: '2.3'
|
|
203
203
|
- !ruby/object:Gem::Dependency
|
|
204
|
-
name:
|
|
204
|
+
name: coveralls_reborn
|
|
205
205
|
requirement: !ruby/object:Gem::Requirement
|
|
206
206
|
requirements:
|
|
207
207
|
- - "~>"
|
|
208
208
|
- !ruby/object:Gem::Version
|
|
209
|
-
version: 0.
|
|
209
|
+
version: 0.24.0
|
|
210
210
|
type: :development
|
|
211
211
|
prerelease: false
|
|
212
212
|
version_requirements: !ruby/object:Gem::Requirement
|
|
213
213
|
requirements:
|
|
214
214
|
- - "~>"
|
|
215
215
|
- !ruby/object:Gem::Version
|
|
216
|
-
version: 0.
|
|
216
|
+
version: 0.24.0
|
|
217
217
|
- !ruby/object:Gem::Dependency
|
|
218
218
|
name: rubocop
|
|
219
219
|
requirement: !ruby/object:Gem::Requirement
|