nonnative 1.58.2 → 1.59.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f15ed666a8ba11f08e78eaebfc60593652a23d39c4139848ff36ed94694de292
4
- data.tar.gz: 35d9d9a38c1a38d41c0b1d7ada5976f02d560a0bf7f33944848be7ca1067e6d6
3
+ metadata.gz: 4b9753ee7672c1f7c2b0568af40a3d1953edffcc6e897d380e646d13dfd74b3b
4
+ data.tar.gz: c679b34d22b5cb385405f389408cc3b0d2c4efd4ff163fbe6627366c61d082b8
5
5
  SHA512:
6
- metadata.gz: 7842a29761b438bf355ed9cdbd55344d64009bc71b9bccfdeeb01452e4a8f377cd5da24029eafb2f7a64922007457b93eb162a45426965fd11408a1085e004c8
7
- data.tar.gz: 1fa589968d4a4ba3cc6f27eea3f5a4dba3fe32468622c6749dd57b37af2b52c6549d17ffbf31c432f79470e0c2b9ece99aa8023d22fab241542f08efe4c8284f
6
+ metadata.gz: 4a9bd84919b5e1129e0a0511c53aad69abd9ce907189e1f23079fb7affa551470da302a1a69305a0aa3b0e23cc5c31845baf7be9ead94bc3da8fb97381a25816
7
+ data.tar.gz: f235c01883c19d56a5c327919988ed1710f0e6c5761c48fc1da9cc56d26200a5bc1a91a68bb2d8b08d28ee903a4f5df72da2ad6ba772cafce85c0695c0304ee7
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.59.0](https://github.com/alexfalkowski/nonnative/compare/v1.58.2...v1.59.0) (2022-04-25)
6
+
7
+
8
+ ### Features
9
+
10
+ * **cucumber:** verify system start errors ([#117](https://github.com/alexfalkowski/nonnative/issues/117)) ([f8c7f7f](https://github.com/alexfalkowski/nonnative/commit/f8c7f7f4cb4d1506e1b8ae038bd6c46f7ce529a2))
11
+
5
12
  ### [1.58.2](https://github.com/alexfalkowski/nonnative/compare/v1.58.1...v1.58.2) (2022-04-13)
6
13
 
7
14
  ### [1.58.1](https://github.com/alexfalkowski/nonnative/compare/v1.58.0...v1.58.1) (2022-04-06)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nonnative (1.58.2)
4
+ nonnative (1.59.0)
5
5
  concurrent-ruby (~> 1.0, >= 1.0.5)
6
6
  cucumber (>= 7, < 8)
7
7
  get_process_mem (~> 0.2.1)
@@ -72,7 +72,6 @@ GEM
72
72
  grpc (1.45.0-universal-darwin)
73
73
  google-protobuf (~> 3.19)
74
74
  googleapis-common-protos-types (~> 1.0)
75
- grpc-tools (1.45.0)
76
75
  http-accept (1.7.0)
77
76
  http-cookie (1.0.4)
78
77
  domain_name (~> 0.5)
@@ -190,7 +189,6 @@ PLATFORMS
190
189
  DEPENDENCIES
191
190
  bundler (~> 2.3)
192
191
  coveralls_reborn (~> 0.24.0)
193
- grpc-tools (>= 1, < 2)
194
192
  nonnative!
195
193
  rubocop (~> 1.26)
196
194
  solargraph (~> 0.44.3)
data/README.md CHANGED
@@ -530,7 +530,7 @@ With cucumber:
530
530
 
531
531
  ```cucumber
532
532
  Given I set the proxy for process 'process_1' to 'close_all'
533
- Then And I should reset the proxy for process 'process_1'
533
+ Then I should reset the proxy for process 'process_1'
534
534
  ```
535
535
 
536
536
  ###### Servers
@@ -549,7 +549,7 @@ With cucumber:
549
549
 
550
550
  ```cucumber
551
551
  Given I set the proxy for server 'server_1' to 'close_all'
552
- Then And I should reset the proxy for server 'server_1'
552
+ Then I should reset the proxy for server 'server_1'
553
553
  ```
554
554
 
555
555
  ###### Services
@@ -568,7 +568,7 @@ With cucumber:
568
568
 
569
569
  ```cucumber
570
570
  Given I set the proxy for service 'service_1' to 'close_all'
571
- Then And I should reset the proxy for service 'service_1'
571
+ Then I should reset the proxy for service 'service_1'
572
572
  ```
573
573
 
574
574
  ### Go
@@ -1,5 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ World(RSpec::Benchmark::Matchers)
4
+
5
+ After('@manual') do
6
+ Nonnative.stop
7
+ end
8
+
3
9
  Given('I set the proxy for process {string} to {string}') do |name, operation|
4
10
  process = Nonnative.pool.process_by_name(name)
5
11
  process.proxy.send(operation)
@@ -15,6 +21,10 @@ Given('I set the proxy for service {string} to {string}') do |name, operation|
15
21
  service.proxy.send(operation)
16
22
  end
17
23
 
24
+ Given('I start the system') do
25
+ Nonnative.start
26
+ end
27
+
18
28
  Then('I should reset the proxy for process {string}') do |name|
19
29
  process = Nonnative.pool.process_by_name(name)
20
30
  process.proxy.reset
@@ -38,3 +48,11 @@ Then('the process {string} should consume less than {string} of memory') do |nam
38
48
 
39
49
  expect(actual).to be < size
40
50
  end
51
+
52
+ Then('starting the system should raise an error') do
53
+ expect { Nonnative.start }.to raise_error(Nonnative::StartError)
54
+ end
55
+
56
+ Then('stopping the system should raise an error') do
57
+ expect { Nonnative.stop }.to raise_error(Nonnative::StopError)
58
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nonnative
4
- VERSION = '1.58.2'
4
+ VERSION = '1.59.0'
5
5
  end
data/lib/nonnative.rb CHANGED
@@ -14,6 +14,7 @@ require 'puma/server'
14
14
  require 'concurrent'
15
15
  require 'cucumber'
16
16
  require 'get_process_mem'
17
+ require 'rspec-benchmark'
17
18
 
18
19
  require 'nonnative/version'
19
20
  require 'nonnative/error'
data/nonnative.gemspec CHANGED
@@ -36,7 +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 'grpc-tools', ['>= 1', '< 2']
40
39
  spec.add_development_dependency 'rubocop', '~> 1.26'
41
40
  spec.add_development_dependency 'solargraph', '~> 0.44.3'
42
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.58.2
4
+ version: 1.59.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-13 00:00:00.000000000 Z
11
+ date: 2022-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -194,26 +194,6 @@ dependencies:
194
194
  - - "~>"
195
195
  - !ruby/object:Gem::Version
196
196
  version: 0.24.0
197
- - !ruby/object:Gem::Dependency
198
- name: grpc-tools
199
- requirement: !ruby/object:Gem::Requirement
200
- requirements:
201
- - - ">="
202
- - !ruby/object:Gem::Version
203
- version: '1'
204
- - - "<"
205
- - !ruby/object:Gem::Version
206
- version: '2'
207
- type: :development
208
- prerelease: false
209
- version_requirements: !ruby/object:Gem::Requirement
210
- requirements:
211
- - - ">="
212
- - !ruby/object:Gem::Version
213
- version: '1'
214
- - - "<"
215
- - !ruby/object:Gem::Version
216
- version: '2'
217
197
  - !ruby/object:Gem::Dependency
218
198
  name: rubocop
219
199
  requirement: !ruby/object:Gem::Requirement