nonnative 1.61.0 → 1.64.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09d70b9c1d1892ed5d19d59e6130115721e8982d6ec5be4499cdbfae2ffa01b4'
4
- data.tar.gz: 4fed0557560e55343d681176ffe449de0fe789a6332ff3c6f90e520b2b87924c
3
+ metadata.gz: 1eddcb84e088459dffd4685869f2f6a02961ba55882f04ba0f1ec6d444ed9660
4
+ data.tar.gz: 4055310b41240d5eb144f683ecd27125b523d4bcafb7bed105ba003ef26e1347
5
5
  SHA512:
6
- metadata.gz: 3e037a8f8a4645455f9a2e18c030d582785d5d2d000635480ba776c994c1957b257dfe8330a899469707366c7942897778155e2a75b8f40ef202fcd018cb0a0b
7
- data.tar.gz: '02228f975130c4a076ab9f3001277466db84b6bc8ae6f9a19ac185157f7adda303f720ea93c4b4e4825892620d95332572ca1fca17d02ef400de039d21120cd8'
6
+ metadata.gz: 8a9a6fa974ebb2b2fb9ee37c25ecdbaf2153e07a75f87fed4c5cfadf56c75f43aea79b2e4e4bce12eb189ec8c682b1f32d79c13d4dcf5ec3ab93e335fbb891bd
7
+ data.tar.gz: 139d54e0ab08f892896305e74f8252fcbda81bdabf523ade77c4f841ab58ec225641240c9dda3f274954110d5365180f21ae4257c07c061ea83a111830411db6
data/.circleci/config.yml CHANGED
@@ -15,14 +15,15 @@ jobs:
15
15
  key: nonnative-gem-cache-{{ checksum "Gemfile.lock" }}
16
16
  paths:
17
17
  - vendor/bundle
18
+ - run: make lint
18
19
  - run: make features
19
20
  - store_test_results:
20
21
  path: reports
21
- - run: make lint
22
22
  - store_artifacts:
23
23
  path: coverage
24
24
  - store_artifacts:
25
25
  path: features/logs
26
+ resource_class: large
26
27
  release:
27
28
  docker:
28
29
  - image: alexfalkowski/release:2.0
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "daily"
data/CHANGELOG.md CHANGED
@@ -2,6 +2,52 @@
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.64.0](https://github.com/alexfalkowski/nonnative/compare/v1.63.4...v1.64.0) (2022-06-13)
6
+
7
+
8
+ ### Features
9
+
10
+ * rename to kind ([#133](https://github.com/alexfalkowski/nonnative/issues/133)) ([c0adc32](https://github.com/alexfalkowski/nonnative/commit/c0adc32320f8ccb32602c68b5b449baf13cd0d34))
11
+
12
+ ### [1.63.4](https://github.com/alexfalkowski/nonnative/compare/v1.63.3...v1.63.4) (2022-06-07)
13
+
14
+ ### [1.63.3](https://github.com/alexfalkowski/nonnative/compare/v1.63.2...v1.63.3) (2022-06-03)
15
+
16
+ ### [1.63.2](https://github.com/alexfalkowski/nonnative/compare/v1.63.1...v1.63.2) (2022-05-30)
17
+
18
+ ### [1.63.1](https://github.com/alexfalkowski/nonnative/compare/v1.63.0...v1.63.1) (2022-05-30)
19
+
20
+ ## [1.63.0](https://github.com/alexfalkowski/nonnative/compare/v1.62.5...v1.63.0) (2022-05-24)
21
+
22
+
23
+ ### Features
24
+
25
+ * **cucumber:** update to v8 ([#128](https://github.com/alexfalkowski/nonnative/issues/128)) ([337d12c](https://github.com/alexfalkowski/nonnative/commit/337d12c498798fe1a6d62a928bdeb3f1fc7a8e07))
26
+
27
+ ### [1.62.5](https://github.com/alexfalkowski/nonnative/compare/v1.62.4...v1.62.5) (2022-05-23)
28
+
29
+ ### [1.62.4](https://github.com/alexfalkowski/nonnative/compare/v1.62.3...v1.62.4) (2022-05-23)
30
+
31
+ ### [1.62.3](https://github.com/alexfalkowski/nonnative/compare/v1.62.2...v1.62.3) (2022-05-23)
32
+
33
+ ### [1.62.2](https://github.com/alexfalkowski/nonnative/compare/v1.62.1...v1.62.2) (2022-05-23)
34
+
35
+ ### [1.62.1](https://github.com/alexfalkowski/nonnative/compare/v1.62.0...v1.62.1) (2022-05-17)
36
+
37
+ ## [1.62.0](https://github.com/alexfalkowski/nonnative/compare/v1.61.0...v1.62.0) (2022-04-25)
38
+
39
+
40
+ ### Features
41
+
42
+ * add ability to read from log file ([#121](https://github.com/alexfalkowski/nonnative/issues/121)) ([eb4638f](https://github.com/alexfalkowski/nonnative/commit/eb4638f3ca8636ca68f989209a6e73831e61a678))
43
+
44
+ ## [1.61.0](https://github.com/alexfalkowski/nonnative/compare/v1.60.0...v1.61.0) (2022-04-25)
45
+
46
+
47
+ ### Features
48
+
49
+ * allow checking logs ([#120](https://github.com/alexfalkowski/nonnative/issues/120)) ([dc95fd2](https://github.com/alexfalkowski/nonnative/commit/dc95fd2977c3900d2ae6447d517f410e1128837f))
50
+
5
51
  ## [1.60.0](https://github.com/alexfalkowski/nonnative/compare/v1.59.1...v1.60.0) (2022-04-25)
6
52
 
7
53
 
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nonnative (1.61.0)
4
+ nonnative (1.64.0)
5
5
  concurrent-ruby (~> 1.0, >= 1.0.5)
6
- cucumber (>= 7, < 8)
6
+ cucumber (>= 7, < 9)
7
7
  get_process_mem (~> 0.2.1)
8
8
  grpc (>= 1, < 2)
9
9
  puma (~> 5.0)
@@ -28,36 +28,30 @@ GEM
28
28
  term-ansicolor (~> 1.6)
29
29
  thor (>= 0.20.3, < 2.0)
30
30
  tins (~> 1.16)
31
- cucumber (7.1.0)
31
+ cucumber (8.0.0)
32
32
  builder (~> 3.2, >= 3.2.4)
33
- cucumber-core (~> 10.1, >= 10.1.0)
34
- cucumber-create-meta (~> 6.0, >= 6.0.1)
35
- cucumber-cucumber-expressions (~> 14.0, >= 14.0.0)
36
- cucumber-gherkin (~> 22.0, >= 22.0.0)
37
- cucumber-html-formatter (~> 17.0, >= 17.0.0)
38
- cucumber-messages (~> 17.1, >= 17.1.1)
39
- cucumber-wire (~> 6.2, >= 6.2.0)
40
- diff-lcs (~> 1.4, >= 1.4.4)
41
- mime-types (~> 3.3, >= 3.3.1)
42
- multi_test (~> 0.1, >= 0.1.2)
33
+ cucumber-ci-environment (~> 9.0, >= 9.0.4)
34
+ cucumber-core (~> 11.0, >= 11.0.0)
35
+ cucumber-cucumber-expressions (~> 15.1, >= 15.1.1)
36
+ cucumber-gherkin (~> 23.0, >= 23.0.1)
37
+ cucumber-html-formatter (~> 19.1, >= 19.1.0)
38
+ cucumber-messages (~> 18.0, >= 18.0.0)
39
+ diff-lcs (~> 1.5, >= 1.5.0)
40
+ mime-types (~> 3.4, >= 3.4.1)
41
+ multi_test (~> 1.1, >= 1.1.0)
43
42
  sys-uname (~> 1.2, >= 1.2.2)
44
- cucumber-core (10.1.1)
45
- cucumber-gherkin (~> 22.0, >= 22.0.0)
46
- cucumber-messages (~> 17.1, >= 17.1.1)
43
+ cucumber-ci-environment (9.0.4)
44
+ cucumber-core (11.0.0)
45
+ cucumber-gherkin (~> 23.0, >= 23.0.1)
46
+ cucumber-messages (~> 18.0, >= 18.0.0)
47
47
  cucumber-tag-expressions (~> 4.1, >= 4.1.0)
48
- cucumber-create-meta (6.0.4)
49
- cucumber-messages (~> 17.1, >= 17.1.1)
50
- sys-uname (~> 1.2, >= 1.2.2)
51
- cucumber-cucumber-expressions (14.0.0)
52
- cucumber-gherkin (22.0.0)
53
- cucumber-messages (~> 17.1, >= 17.1.1)
54
- cucumber-html-formatter (17.0.0)
55
- cucumber-messages (~> 17.1, >= 17.1.0)
56
- cucumber-messages (17.1.1)
48
+ cucumber-cucumber-expressions (15.2.0)
49
+ cucumber-gherkin (23.0.1)
50
+ cucumber-messages (~> 18.0, >= 18.0.0)
51
+ cucumber-html-formatter (19.2.0)
52
+ cucumber-messages (~> 18.0, >= 18.0.0)
53
+ cucumber-messages (18.0.0)
57
54
  cucumber-tag-expressions (4.1.0)
58
- cucumber-wire (6.2.1)
59
- cucumber-core (~> 10.1, >= 10.1.0)
60
- cucumber-cucumber-expressions (~> 14.0, >= 14.0.0)
61
55
  diff-lcs (1.5.0)
62
56
  docile (1.4.0)
63
57
  domain_name (0.5.20190701)
@@ -66,14 +60,18 @@ GEM
66
60
  ffi (1.15.5)
67
61
  get_process_mem (0.2.7)
68
62
  ffi (~> 1.0)
69
- google-protobuf (3.20.1-x86_64-darwin)
63
+ google-protobuf (3.21.1-x86_64-darwin)
64
+ google-protobuf (3.21.1-x86_64-linux)
70
65
  googleapis-common-protos-types (1.3.1)
71
66
  google-protobuf (~> 3.14)
72
- grpc (1.45.0-universal-darwin)
67
+ grpc (1.46.3-x86_64-darwin)
68
+ google-protobuf (~> 3.19)
69
+ googleapis-common-protos-types (~> 1.0)
70
+ grpc (1.46.3-x86_64-linux)
73
71
  google-protobuf (~> 3.19)
74
72
  googleapis-common-protos-types (~> 1.0)
75
73
  http-accept (1.7.0)
76
- http-cookie (1.0.4)
74
+ http-cookie (1.0.5)
77
75
  domain_name (~> 0.5)
78
76
  jaro_winkler (1.5.4)
79
77
  kramdown (2.4.0)
@@ -83,12 +81,14 @@ GEM
83
81
  mime-types (3.4.1)
84
82
  mime-types-data (~> 3.2015)
85
83
  mime-types-data (3.2022.0105)
86
- multi_test (0.1.2)
84
+ multi_test (1.1.0)
87
85
  mustermann (1.1.1)
88
86
  ruby2_keywords (~> 0.0.1)
89
87
  netrc (0.11.0)
90
88
  nio4r (2.5.8)
91
- nokogiri (1.13.4-x86_64-darwin)
89
+ nokogiri (1.13.6-x86_64-darwin)
90
+ racc (~> 1.4)
91
+ nokogiri (1.13.6-x86_64-linux)
92
92
  racc (~> 1.4)
93
93
  parallel (1.22.1)
94
94
  parser (3.1.2.0)
@@ -96,11 +96,11 @@ GEM
96
96
  puma (5.6.4)
97
97
  nio4r (~> 2.0)
98
98
  racc (1.6.0)
99
- rack (2.2.3)
99
+ rack (2.2.3.1)
100
100
  rack-protection (2.2.0)
101
101
  rack
102
102
  rainbow (3.1.1)
103
- regexp_parser (2.3.1)
103
+ regexp_parser (2.5.0)
104
104
  rest-client (2.1.0)
105
105
  http-accept (>= 1.7.0, < 2.0)
106
106
  http-cookie (>= 1.0.2, < 2.0)
@@ -127,16 +127,16 @@ GEM
127
127
  diff-lcs (>= 1.2.0, < 2.0)
128
128
  rspec-support (~> 3.11.0)
129
129
  rspec-support (3.11.0)
130
- rubocop (1.28.2)
130
+ rubocop (1.30.1)
131
131
  parallel (~> 1.10)
132
132
  parser (>= 3.1.0.0)
133
133
  rainbow (>= 2.2.2, < 4.0)
134
134
  regexp_parser (>= 1.8, < 3.0)
135
- rexml
136
- rubocop-ast (>= 1.17.0, < 2.0)
135
+ rexml (>= 3.2.5, < 4.0)
136
+ rubocop-ast (>= 1.18.0, < 2.0)
137
137
  ruby-progressbar (~> 1.7)
138
138
  unicode-display_width (>= 1.4.0, < 3.0)
139
- rubocop-ast (1.17.0)
139
+ rubocop-ast (1.18.0)
140
140
  parser (>= 3.1.1.0)
141
141
  ruby-progressbar (1.11.0)
142
142
  ruby2_keywords (0.0.5)
@@ -151,7 +151,7 @@ GEM
151
151
  rack (~> 2.2)
152
152
  rack-protection (= 2.2.0)
153
153
  tilt (~> 2.0)
154
- solargraph (0.44.3)
154
+ solargraph (0.45.0)
155
155
  backport (~> 1.2)
156
156
  benchmark
157
157
  bundler (>= 1.17.2)
@@ -173,25 +173,26 @@ GEM
173
173
  tins (~> 1.0)
174
174
  thor (1.2.1)
175
175
  tilt (2.0.10)
176
- tins (1.31.0)
176
+ tins (1.31.1)
177
177
  sync
178
178
  unf (0.1.4)
179
179
  unf_ext
180
- unf_ext (0.0.8.1)
180
+ unf_ext (0.0.8.2)
181
181
  unicode-display_width (2.1.0)
182
182
  webrick (1.7.0)
183
- yard (0.9.27)
183
+ yard (0.9.28)
184
184
  webrick (~> 1.7.0)
185
185
 
186
186
  PLATFORMS
187
187
  x86_64-darwin-21
188
+ x86_64-linux
188
189
 
189
190
  DEPENDENCIES
190
191
  bundler (~> 2.3)
191
192
  coveralls_reborn (~> 0.24.0)
192
193
  nonnative!
193
- rubocop (~> 1.26)
194
- solargraph (~> 0.44.3)
194
+ rubocop (~> 1.30)
195
+ solargraph (~> 0.45.0)
195
196
 
196
197
  BUNDLED WITH
197
198
  2.3.9
data/README.md CHANGED
@@ -384,7 +384,7 @@ require 'nonnative'
384
384
  Nonnative.configure do |config|
385
385
  config.process do |p|
386
386
  p.proxy = {
387
- type: 'fault_injection',
387
+ kind: 'fault_injection',
388
388
  port: 20_000,
389
389
  log: 'features/logs/proxy_server.log',
390
390
  options: {
@@ -402,7 +402,7 @@ version: 1.0
402
402
  processes:
403
403
  -
404
404
  proxy:
405
- type: fault_injection
405
+ kind: fault_injection
406
406
  port: 20000
407
407
  log: features/logs/proxy_server.log
408
408
  options:
@@ -419,7 +419,7 @@ require 'nonnative'
419
419
  Nonnative.configure do |config|
420
420
  config.server do |s|
421
421
  s.proxy = {
422
- type: 'fault_injection',
422
+ kind: 'fault_injection',
423
423
  port: 20_000,
424
424
  log: 'features/logs/proxy_server.log',
425
425
  options: {
@@ -437,7 +437,7 @@ version: 1.0
437
437
  servers:
438
438
  -
439
439
  proxy:
440
- type: fault_injection
440
+ kind: fault_injection
441
441
  port: 20000
442
442
  log: features/logs/proxy_server.log
443
443
  options:
@@ -454,7 +454,7 @@ require 'nonnative'
454
454
  Nonnative.configure do |config|
455
455
  config.service do |s|
456
456
  s.proxy = {
457
- type: 'fault_injection',
457
+ kind: 'fault_injection',
458
458
  port: 20_000,
459
459
  log: 'features/logs/proxy_server.log',
460
460
  options: {
@@ -472,7 +472,7 @@ version: 1.0
472
472
  services:
473
473
  -
474
474
  proxy:
475
- type: fault_injection
475
+ kind: fault_injection
476
476
  port: 20000
477
477
  log: features/logs/proxy_server.log
478
478
  options:
@@ -107,7 +107,7 @@ module Nonnative
107
107
  return unless proxy
108
108
 
109
109
  p = {
110
- type: proxy['type'],
110
+ kind: proxy['kind'],
111
111
  port: proxy['port'],
112
112
  log: proxy['log'],
113
113
  options: proxy['options']
@@ -2,10 +2,10 @@
2
2
 
3
3
  module Nonnative
4
4
  class ConfigurationProxy
5
- attr_accessor :type, :host, :port, :log, :options
5
+ attr_accessor :kind, :host, :port, :log, :options
6
6
 
7
7
  def initialize
8
- self.type = 'none'
8
+ self.kind = 'none'
9
9
  self.host = '0.0.0.0'
10
10
  self.port = 0
11
11
  self.options = {}
@@ -13,7 +13,7 @@ module Nonnative
13
13
  end
14
14
 
15
15
  def proxy=(value)
16
- proxy.type = value[:type]
16
+ proxy.kind = value[:kind]
17
17
  proxy.host = value[:host] if value[:host]
18
18
  proxy.port = value[:port]
19
19
  proxy.log = value[:log]
@@ -73,3 +73,7 @@ Then('I should see a log entry of {string} for process {string}') do |message, p
73
73
  process = Nonnative.configuration.process_by_name(process)
74
74
  expect(Nonnative.log_lines(process.log, ->(l) { l.include?(message) }).first).to include(message)
75
75
  end
76
+
77
+ Then('I should see a log entry of {string} in the file {string}') do |message, path|
78
+ expect(Nonnative.log_lines(path, ->(l) { l.include?(message) }).first).to include(message)
79
+ end
@@ -4,7 +4,7 @@ module Nonnative
4
4
  class ProxyFactory
5
5
  class << self
6
6
  def create(service)
7
- proxy = case service.proxy.type
7
+ proxy = case service.proxy.kind
8
8
  when 'fault_injection'
9
9
  FaultInjectionProxy
10
10
  else
@@ -3,8 +3,8 @@
3
3
  module Nonnative
4
4
  class SocketPairFactory
5
5
  class << self
6
- def create(type, proxy)
7
- pair = case type
6
+ def create(kind, proxy)
7
+ pair = case kind
8
8
  when :close_all
9
9
  CloseAllSocketPair
10
10
  when :delay
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nonnative
4
- VERSION = '1.61.0'
4
+ VERSION = '1.64.0'
5
5
  end
data/nonnative.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.metadata['rubygems_mfa_required'] = 'true'
26
26
 
27
27
  spec.add_dependency 'concurrent-ruby', '~> 1.0', '>= 1.0.5'
28
- spec.add_dependency 'cucumber', ['>= 7', '< 8']
28
+ spec.add_dependency 'cucumber', '>= 7', '< 9'
29
29
  spec.add_dependency 'get_process_mem', '~> 0.2.1'
30
30
  spec.add_dependency 'grpc', ['>= 1', '< 2']
31
31
  spec.add_dependency 'puma', '~> 5.0'
@@ -36,6 +36,6 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.add_development_dependency 'bundler', '~> 2.3'
38
38
  spec.add_development_dependency 'coveralls_reborn', '~> 0.24.0'
39
- spec.add_development_dependency 'rubocop', '~> 1.26'
40
- spec.add_development_dependency 'solargraph', '~> 0.44.3'
39
+ spec.add_development_dependency 'rubocop', '~> 1.30'
40
+ spec.add_development_dependency 'solargraph', '~> 0.45.0'
41
41
  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.61.0
4
+ version: 1.64.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-04-25 00:00:00.000000000 Z
11
+ date: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '7'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '8'
42
+ version: '9'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '7'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '8'
52
+ version: '9'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: get_process_mem
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -200,28 +200,28 @@ dependencies:
200
200
  requirements:
201
201
  - - "~>"
202
202
  - !ruby/object:Gem::Version
203
- version: '1.26'
203
+ version: '1.30'
204
204
  type: :development
205
205
  prerelease: false
206
206
  version_requirements: !ruby/object:Gem::Requirement
207
207
  requirements:
208
208
  - - "~>"
209
209
  - !ruby/object:Gem::Version
210
- version: '1.26'
210
+ version: '1.30'
211
211
  - !ruby/object:Gem::Dependency
212
212
  name: solargraph
213
213
  requirement: !ruby/object:Gem::Requirement
214
214
  requirements:
215
215
  - - "~>"
216
216
  - !ruby/object:Gem::Version
217
- version: 0.44.3
217
+ version: 0.45.0
218
218
  type: :development
219
219
  prerelease: false
220
220
  version_requirements: !ruby/object:Gem::Requirement
221
221
  requirements:
222
222
  - - "~>"
223
223
  - !ruby/object:Gem::Version
224
- version: 0.44.3
224
+ version: 0.45.0
225
225
  description: Allows you to keep using the power of ruby to test other systems
226
226
  email:
227
227
  - alexrfalkowski@gmail.com
@@ -233,6 +233,7 @@ files:
233
233
  - ".config/cucumber.yml"
234
234
  - ".coveralls.yml"
235
235
  - ".editorconfig"
236
+ - ".github/dependabot.yml"
236
237
  - ".gitignore"
237
238
  - ".rubocop.yml"
238
239
  - ".ruby-version"