nonnative 1.91.0 → 1.93.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: 3ec4503f26000c63b14e787c9cf334208ba43f9ae8c0b5645b9f849b0a57c4df
4
- data.tar.gz: aa00e66c6a0092b86e69fbd4a269a0b5f0c02a9911d927cfcae3b03c90d4c6e7
3
+ metadata.gz: 239e2be5d445a7f58bf457821ffd543980f07bcbdf2d0b742bd1a0575a78f977
4
+ data.tar.gz: 39fb0a5d578605bf1d3ac83879d2a4e5a294b195f1d0594217b6457ba67ca88e
5
5
  SHA512:
6
- metadata.gz: 4ae8e395a327024d2babf9c1d352681421111f45e4c4ea53fff2776cac668437abb06bbdfe70d891e7b9b6d05ad27f768e7a57e2d3e1f04917a4026e2cf76ee3
7
- data.tar.gz: 95c829ca6acf83b5934ac28c18013344f6f539c169fe045475140ade4ea870af95cf6643fb39b973dab1b3ea5bc48507a028f6484c0ccc0ebe9553a0009b38ab
6
+ metadata.gz: 2336392e5d73671c3f3da07f0f2faf6f094d851d1c6bc3bb055d2957b21a10fcac5c2e5ee61c7ae936171d4a9846d2730274d63b5da6df2bc7fe34f82e0c6bdf
7
+ data.tar.gz: e719469fbad66e593780bc6497d7faf3b28e5c82b845d66962ea9c11e0c946118824551f9a636df59775dd0528b65b9305dab981b0204ce9b16f42e28aa70353
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.5
6
+ - image: alexfalkowski/ruby:1.7
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.5
34
+ - image: alexfalkowski/release:3.6
35
35
  working_directory: ~/nonnative
36
36
  steps:
37
37
  - checkout
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 3.3
2
+ TargetRubyVersion: 3.4
3
3
  DisplayCopNames: true
4
4
  NewCops: enable
5
5
  Exclude:
data/CHANGELOG.md CHANGED
@@ -6,6 +6,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## [v1.93.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.93.0) - 2025-02-03
10
+
11
+ - [`520eed9`](https://github.com/alexfalkowski/nonnative/commit/520eed9b7181064a8bfcf7824165f3ccf8087cab) feat(ruby): update to v3.4.0 (#508)
12
+ - [`d3ba2a4`](https://github.com/alexfalkowski/nonnative/commit/d3ba2a42b3a6d90639f7e29a0282ec6e757297b3) build(deps): bump bin from `cb313fe` to `5b56b0c` (#504)
13
+
14
+ ## [v1.92.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.92.0) - 2025-01-29
15
+
16
+ - [`1bd4cc2`](https://github.com/alexfalkowski/nonnative/commit/1bd4cc2b8837f9fd76680a30780ec9d5e4bfa13f) feat(proxy): add ability to reset proxies (#503)
17
+
18
+ ## [v1.91.1](https://github.com/alexfalkowski/nonnative/releases/tag/v1.91.1) - 2025-01-29
19
+
20
+ - [`4fc3075`](https://github.com/alexfalkowski/nonnative/commit/4fc30751a274e3f60a87e02ddb8a16e58eabf33e) fix(deps): bump ruby-lsp from 0.23.6 to 0.23.7 (#502)
21
+ - [`7da406c`](https://github.com/alexfalkowski/nonnative/commit/7da406cd07ea8a6a532865f2f3d542b37a9102ab) build(ci): update alexfalkowski/ruby:1.6 (#501)
22
+
9
23
  ## [v1.91.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.91.0) - 2025-01-28
10
24
 
11
25
  - [`f927b97`](https://github.com/alexfalkowski/nonnative/commit/f927b97e2b978ff08a937450c225aadbc1588230) feat(proxy): move to nonnative.rb (#500)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nonnative (1.91.0)
4
+ nonnative (1.93.0)
5
5
  concurrent-ruby (>= 1, < 2)
6
6
  config (>= 5, < 6)
7
7
  cucumber (>= 7, < 10)
@@ -51,10 +51,10 @@ GEM
51
51
  bigdecimal
52
52
  cucumber-gherkin (27.0.0)
53
53
  cucumber-messages (>= 19.1.4, < 23)
54
- cucumber-html-formatter (21.8.0)
55
- cucumber-messages (> 19, < 27)
54
+ cucumber-html-formatter (21.9.0)
55
+ cucumber-messages (> 19, < 28)
56
56
  cucumber-messages (22.0.0)
57
- cucumber-tag-expressions (6.1.1)
57
+ cucumber-tag-expressions (6.1.2)
58
58
  deep_merge (1.2.2)
59
59
  diff-lcs (1.5.1)
60
60
  docile (1.4.1)
@@ -76,20 +76,20 @@ GEM
76
76
  rake (>= 13)
77
77
  googleapis-common-protos-types (1.18.0)
78
78
  google-protobuf (>= 3.18, < 5.a)
79
- grpc (1.69.0-arm64-darwin)
79
+ grpc (1.70.1-arm64-darwin)
80
80
  google-protobuf (>= 3.25, < 5.0)
81
81
  googleapis-common-protos-types (~> 1.0)
82
- grpc (1.69.0-x86_64-darwin)
82
+ grpc (1.70.1-x86_64-darwin)
83
83
  google-protobuf (>= 3.25, < 5.0)
84
84
  googleapis-common-protos-types (~> 1.0)
85
- grpc (1.69.0-x86_64-linux)
85
+ grpc (1.70.1-x86_64-linux)
86
86
  google-protobuf (>= 3.25, < 5.0)
87
87
  googleapis-common-protos-types (~> 1.0)
88
88
  http-accept (1.7.0)
89
89
  http-cookie (1.0.8)
90
90
  domain_name (~> 0.5)
91
91
  json (2.9.1)
92
- language_server-protocol (3.17.0.3)
92
+ language_server-protocol (3.17.0.4)
93
93
  logger (1.6.5)
94
94
  mime-types (3.6.0)
95
95
  logger
@@ -107,7 +107,7 @@ GEM
107
107
  racc
108
108
  prism (1.3.0)
109
109
  racc (1.8.1)
110
- rack (3.1.8)
110
+ rack (3.1.9)
111
111
  rack-protection (4.1.1)
112
112
  base64 (>= 0.1.0)
113
113
  logger (>= 1.6.0)
@@ -149,19 +149,19 @@ GEM
149
149
  rspec-support (3.13.2)
150
150
  rspec-wait (1.0.1)
151
151
  rspec (>= 3.4)
152
- rubocop (1.71.0)
152
+ rubocop (1.71.1)
153
153
  json (~> 2.3)
154
154
  language_server-protocol (>= 3.17.0)
155
155
  parallel (~> 1.10)
156
156
  parser (>= 3.3.0.2)
157
157
  rainbow (>= 2.2.2, < 4.0)
158
158
  regexp_parser (>= 2.9.3, < 3.0)
159
- rubocop-ast (>= 1.36.2, < 2.0)
159
+ rubocop-ast (>= 1.38.0, < 2.0)
160
160
  ruby-progressbar (~> 1.7)
161
161
  unicode-display_width (>= 2.4.0, < 4.0)
162
- rubocop-ast (1.37.0)
162
+ rubocop-ast (1.38.0)
163
163
  parser (>= 3.3.1.0)
164
- ruby-lsp (0.23.6)
164
+ ruby-lsp (0.23.8)
165
165
  language_server-protocol (~> 3.17.0)
166
166
  prism (>= 1.2, < 2.0)
167
167
  rbs (>= 3, < 4)
@@ -184,7 +184,7 @@ GEM
184
184
  rack-protection (= 4.1.1)
185
185
  rack-session (>= 2.0.0, < 3)
186
186
  tilt (~> 2.0)
187
- sorbet-runtime (0.5.11781)
187
+ sorbet-runtime (0.5.11798)
188
188
  sys-uname (1.3.1)
189
189
  ffi (~> 1.1)
190
190
  tilt (2.6.0)
@@ -20,6 +20,10 @@ Before('@clear') do
20
20
  Nonnative.clear
21
21
  end
22
22
 
23
+ After('@reset') do
24
+ Nonnative.reset
25
+ end
26
+
23
27
  Given('I set the proxy for process {string} to {string}') do |name, operation|
24
28
  process = Nonnative.pool.process_by_name(name)
25
29
  process.proxy.send(operation)
@@ -89,6 +89,8 @@ module Nonnative
89
89
 
90
90
  def apply_state(state)
91
91
  mutex.synchronize do
92
+ return if @state == state
93
+
92
94
  @state = state
93
95
  close_connections
94
96
 
@@ -10,6 +10,10 @@ module Nonnative
10
10
  # Do nothing.
11
11
  end
12
12
 
13
+ def reset
14
+ # Do nothing.
15
+ end
16
+
13
17
  def host
14
18
  service.host
15
19
  end
@@ -6,13 +6,13 @@ module Nonnative
6
6
  @configuration = configuration
7
7
  end
8
8
 
9
- def start(&block)
9
+ def start(&)
10
10
  services.each(&:start)
11
- [servers, processes].each { |t| process(t, :start, :open?, &block) }
11
+ [servers, processes].each { |t| process(t, :start, :open?, &) }
12
12
  end
13
13
 
14
- def stop(&block)
15
- [processes, servers].each { |t| process(t, :stop, :closed?, &block) }
14
+ def stop(&)
15
+ [processes, servers].each { |t| process(t, :stop, :closed?, &) }
16
16
  services.each(&:stop)
17
17
  end
18
18
 
@@ -28,6 +28,12 @@ module Nonnative
28
28
  services[runner_index(configuration.services, name)]
29
29
  end
30
30
 
31
+ def reset
32
+ services.each { |s| s.proxy.reset }
33
+ servers.each { |s| s.first.proxy.reset }
34
+ processes.each { |p| p.first.proxy.reset }
35
+ end
36
+
31
37
  private
32
38
 
33
39
  attr_reader :configuration
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nonnative
4
- VERSION = '1.91.0'
4
+ VERSION = '1.93.0'
5
5
  end
data/lib/nonnative.rb CHANGED
@@ -120,5 +120,9 @@ module Nonnative
120
120
  @configuration = nil
121
121
  @pool = nil
122
122
  end
123
+
124
+ def reset
125
+ Nonnative.pool.reset
126
+ end
123
127
  end
124
128
  end
data/nonnative.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.bindir = 'exe'
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
- spec.required_ruby_version = ['>= 3.3.0', '< 4.0.0']
24
+ spec.required_ruby_version = ['>= 3.4.0', '< 4.0.0']
25
25
  spec.metadata['rubygems_mfa_required'] = 'true'
26
26
 
27
27
  spec.add_dependency 'concurrent-ruby', '>= 1', '< 2'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nonnative
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.91.0
4
+ version: 1.93.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Falkowski
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-01-28 00:00:00.000000000 Z
10
+ date: 2025-02-03 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: concurrent-ruby
@@ -339,7 +339,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
339
339
  requirements:
340
340
  - - ">="
341
341
  - !ruby/object:Gem::Version
342
- version: 3.3.0
342
+ version: 3.4.0
343
343
  - - "<"
344
344
  - !ruby/object:Gem::Version
345
345
  version: 4.0.0
@@ -349,7 +349,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
349
349
  - !ruby/object:Gem::Version
350
350
  version: '0'
351
351
  requirements: []
352
- rubygems_version: 3.6.2
352
+ rubygems_version: 3.6.3
353
353
  specification_version: 4
354
354
  summary: Allows you to keep using the power of ruby to test other systems
355
355
  test_files: []