nonnative 1.66.0 → 1.67.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: a8195824d3fa09877d13c3e925568b41cd3d40a15cbabee19465940957afaeb2
4
- data.tar.gz: 75adcfc730dba5601cc16751ac3b3e16955a5f4740e8e3b9557d85ce584e164a
3
+ metadata.gz: 7a9d3763dafa80fa9a02b9eab21386b138277c6f9e5a748ee886719bd6be604e
4
+ data.tar.gz: 719be528e41d4fbea4d455b605adcb666f59da8af32ac6c9a26bbc27b4f02bbf
5
5
  SHA512:
6
- metadata.gz: 547982fdba4410eadf23545f298a02bafa29c599b1dd15ef9e681b0796bc3f08cf639bbdd7ba77ad1fa0d22f213e19db1633b431215b0a3638e8ddd21c72f131
7
- data.tar.gz: 0771f7e8c231ba5a153952ab5f5210223e2abe1902f759ecf0ba2bce30234d341a9e700b801ba1b6de7b0db99b5d99cefd915e4f86b4a48bc344253d440d0e50
6
+ metadata.gz: f75c7ba4f2c51ffa4f564cd953c1e3be2a53701d02952ec3020bd31509bd9ce81ad96be5133010bdff2d02840369970ce143c680bd51c5de7fc696db4d9e2ea3
7
+ data.tar.gz: 19cc85d2799153d8e26c88bddc1a6b34ca56c0431359efc737833d79f04d461dd85f5b3beee94730de17b2e67ae29721ef8eeb74b939348322cb12f3e448eb05
data/.circleci/config.yml CHANGED
@@ -6,15 +6,7 @@ jobs:
6
6
  - image: alexfalkowski/ruby:3.1
7
7
  steps:
8
8
  - checkout
9
- - restore_cache:
10
- keys:
11
- - nonnative-gem-cache-{{ checksum "Gemfile.lock" }}
12
- - nonnative-gem-cache-
13
9
  - run: make dep
14
- - save_cache:
15
- key: nonnative-gem-cache-{{ checksum "Gemfile.lock" }}
16
- paths:
17
- - vendor/bundle
18
10
  - run: make lint
19
11
  - run: make features
20
12
  - store_test_results:
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 3.0
2
+ TargetRubyVersion: 3.1
3
3
  DisplayCopNames: true
4
4
  NewCops: enable
5
5
 
data/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
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.67.0](https://github.com/alexfalkowski/nonnative/compare/v1.66.12...v1.67.0) (2022-12-19)
6
+
7
+
8
+ ### Features
9
+
10
+ * use ruby 3.1 syntax ([#176](https://github.com/alexfalkowski/nonnative/issues/176)) ([1aee396](https://github.com/alexfalkowski/nonnative/commit/1aee39617c7b585797c62d18ac7a375f588769b8))
11
+
12
+ ### [1.66.12](https://github.com/alexfalkowski/nonnative/compare/v1.66.11...v1.66.12) (2022-12-19)
13
+
14
+ ### [1.66.11](https://github.com/alexfalkowski/nonnative/compare/v1.66.10...v1.66.11) (2022-12-19)
15
+
16
+ ### [1.66.10](https://github.com/alexfalkowski/nonnative/compare/v1.66.9...v1.66.10) (2022-12-08)
17
+
18
+ ### [1.66.9](https://github.com/alexfalkowski/nonnative/compare/v1.66.8...v1.66.9) (2022-11-28)
19
+
20
+ ### [1.66.8](https://github.com/alexfalkowski/nonnative/compare/v1.66.7...v1.66.8) (2022-11-15)
21
+
22
+ ### [1.66.7](https://github.com/alexfalkowski/nonnative/compare/v1.66.6...v1.66.7) (2022-11-14)
23
+
24
+ ### [1.66.6](https://github.com/alexfalkowski/nonnative/compare/v1.66.5...v1.66.6) (2022-11-02)
25
+
26
+ ### [1.66.5](https://github.com/alexfalkowski/nonnative/compare/v1.66.4...v1.66.5) (2022-10-27)
27
+
28
+ ### [1.66.4](https://github.com/alexfalkowski/nonnative/compare/v1.66.3...v1.66.4) (2022-10-27)
29
+
30
+ ### [1.66.3](https://github.com/alexfalkowski/nonnative/compare/v1.66.2...v1.66.3) (2022-10-21)
31
+
32
+ ### [1.66.2](https://github.com/alexfalkowski/nonnative/compare/v1.66.1...v1.66.2) (2022-10-19)
33
+
34
+ ### [1.66.1](https://github.com/alexfalkowski/nonnative/compare/v1.66.0...v1.66.1) (2022-10-19)
35
+
5
36
  ## [1.66.0](https://github.com/alexfalkowski/nonnative/compare/v1.65.15...v1.66.0) (2022-10-14)
6
37
 
7
38
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nonnative (1.66.0)
4
+ nonnative (1.67.0)
5
5
  concurrent-ruby (~> 1.0, >= 1.0.5)
6
6
  cucumber (>= 7, < 9)
7
7
  get_process_mem (~> 0.2.1)
@@ -17,7 +17,7 @@ GEM
17
17
  specs:
18
18
  ast (2.4.2)
19
19
  backport (1.2.0)
20
- benchmark (0.2.0)
20
+ benchmark (0.2.1)
21
21
  benchmark-malloc (0.2.0)
22
22
  benchmark-perf (0.6.0)
23
23
  benchmark-trend (0.4.0)
@@ -60,17 +60,21 @@ GEM
60
60
  ffi (1.15.5)
61
61
  get_process_mem (0.2.7)
62
62
  ffi (~> 1.0)
63
- google-protobuf (3.21.7-x86_64-darwin)
63
+ google-protobuf (3.21.12-x86_64-darwin)
64
+ google-protobuf (3.21.12-x86_64-linux)
64
65
  googleapis-common-protos-types (1.4.0)
65
66
  google-protobuf (~> 3.14)
66
- grpc (1.49.1-x86_64-darwin)
67
+ grpc (1.50.0-x86_64-darwin)
68
+ google-protobuf (~> 3.21)
69
+ googleapis-common-protos-types (~> 1.0)
70
+ grpc (1.50.0-x86_64-linux)
67
71
  google-protobuf (~> 3.21)
68
72
  googleapis-common-protos-types (~> 1.0)
69
73
  http-accept (1.7.0)
70
74
  http-cookie (1.0.5)
71
75
  domain_name (~> 0.5)
72
76
  jaro_winkler (1.5.4)
73
- json (2.6.2)
77
+ json (2.6.3)
74
78
  kramdown (2.4.0)
75
79
  rexml
76
80
  kramdown-parser-gfm (1.1.0)
@@ -83,21 +87,21 @@ GEM
83
87
  ruby2_keywords (~> 0.0.1)
84
88
  netrc (0.11.0)
85
89
  nio4r (2.5.8)
86
- nokogiri (1.13.8-x86_64-darwin)
90
+ nokogiri (1.13.10-x86_64-darwin)
87
91
  racc (~> 1.4)
88
- nokogiri (1.13.8-x86_64-linux)
92
+ nokogiri (1.13.10-x86_64-linux)
89
93
  racc (~> 1.4)
90
94
  parallel (1.22.1)
91
- parser (3.1.2.1)
95
+ parser (3.1.3.0)
92
96
  ast (~> 2.4.1)
93
97
  puma (6.0.0)
94
98
  nio4r (~> 2.0)
95
- racc (1.6.0)
99
+ racc (1.6.1)
96
100
  rack (2.2.4)
97
- rack-protection (3.0.2)
101
+ rack-protection (3.0.5)
98
102
  rack
99
103
  rainbow (3.1.1)
100
- regexp_parser (2.6.0)
104
+ regexp_parser (2.6.1)
101
105
  rest-client (2.1.0)
102
106
  http-accept (>= 1.7.0, < 2.0)
103
107
  http-cookie (>= 1.0.2, < 2.0)
@@ -106,35 +110,35 @@ GEM
106
110
  reverse_markdown (2.1.1)
107
111
  nokogiri
108
112
  rexml (3.2.5)
109
- rspec (3.11.0)
110
- rspec-core (~> 3.11.0)
111
- rspec-expectations (~> 3.11.0)
112
- rspec-mocks (~> 3.11.0)
113
+ rspec (3.12.0)
114
+ rspec-core (~> 3.12.0)
115
+ rspec-expectations (~> 3.12.0)
116
+ rspec-mocks (~> 3.12.0)
113
117
  rspec-benchmark (0.6.0)
114
118
  benchmark-malloc (~> 0.2)
115
119
  benchmark-perf (~> 0.6)
116
120
  benchmark-trend (~> 0.4)
117
121
  rspec (>= 3.0)
118
- rspec-core (3.11.0)
119
- rspec-support (~> 3.11.0)
120
- rspec-expectations (3.11.1)
122
+ rspec-core (3.12.0)
123
+ rspec-support (~> 3.12.0)
124
+ rspec-expectations (3.12.1)
121
125
  diff-lcs (>= 1.2.0, < 2.0)
122
- rspec-support (~> 3.11.0)
123
- rspec-mocks (3.11.1)
126
+ rspec-support (~> 3.12.0)
127
+ rspec-mocks (3.12.1)
124
128
  diff-lcs (>= 1.2.0, < 2.0)
125
- rspec-support (~> 3.11.0)
126
- rspec-support (3.11.1)
127
- rubocop (1.36.0)
129
+ rspec-support (~> 3.12.0)
130
+ rspec-support (3.12.0)
131
+ rubocop (1.40.0)
128
132
  json (~> 2.3)
129
133
  parallel (~> 1.10)
130
134
  parser (>= 3.1.2.1)
131
135
  rainbow (>= 2.2.2, < 4.0)
132
136
  regexp_parser (>= 1.8, < 3.0)
133
137
  rexml (>= 3.2.5, < 4.0)
134
- rubocop-ast (>= 1.20.1, < 2.0)
138
+ rubocop-ast (>= 1.23.0, < 2.0)
135
139
  ruby-progressbar (~> 1.7)
136
140
  unicode-display_width (>= 1.4.0, < 3.0)
137
- rubocop-ast (1.21.0)
141
+ rubocop-ast (1.24.0)
138
142
  parser (>= 3.1.1.0)
139
143
  ruby-progressbar (1.11.0)
140
144
  ruby2_keywords (0.0.5)
@@ -144,10 +148,10 @@ GEM
144
148
  simplecov_json_formatter (~> 0.1)
145
149
  simplecov-html (0.12.3)
146
150
  simplecov_json_formatter (0.1.4)
147
- sinatra (3.0.2)
151
+ sinatra (3.0.5)
148
152
  mustermann (~> 3.0)
149
153
  rack (~> 2.2, >= 2.2.4)
150
- rack-protection (= 3.0.2)
154
+ rack-protection (= 3.0.5)
151
155
  tilt (~> 2.0)
152
156
  solargraph (0.47.2)
153
157
  backport (~> 1.2)
@@ -171,7 +175,7 @@ GEM
171
175
  tins (~> 1.0)
172
176
  thor (1.2.1)
173
177
  tilt (2.0.11)
174
- tins (1.31.1)
178
+ tins (1.32.1)
175
179
  sync
176
180
  unf (0.1.4)
177
181
  unf_ext
@@ -11,30 +11,28 @@ module Nonnative
11
11
  def get(pathname, headers = {}, timeout = 60)
12
12
  with_exception do
13
13
  uri = URI.join(host, pathname)
14
- RestClient::Request.execute(method: :get, url: uri.to_s, headers: headers, timeout: timeout)
14
+ RestClient::Request.execute(method: :get, url: uri.to_s, headers:, timeout:)
15
15
  end
16
16
  end
17
17
 
18
18
  def post(pathname, payload, headers = {}, timeout = 60)
19
19
  with_exception do
20
20
  uri = URI.join(host, pathname)
21
- RestClient::Request.execute(method: :post, url: uri.to_s, payload: payload.to_json, headers: headers,
22
- timeout: timeout)
21
+ RestClient::Request.execute(method: :post, url: uri.to_s, payload: payload.to_json, headers:, timeout:)
23
22
  end
24
23
  end
25
24
 
26
25
  def delete(pathname, headers = {}, timeout = 60)
27
26
  with_exception do
28
27
  uri = URI.join(host, pathname)
29
- RestClient::Request.execute(method: :delete, url: uri.to_s, headers: headers, timeout: timeout)
28
+ RestClient::Request.execute(method: :delete, url: uri.to_s, headers:, timeout:)
30
29
  end
31
30
  end
32
31
 
33
32
  def put(pathname, payload, headers = {}, timeout = 60)
34
33
  with_exception do
35
34
  uri = URI.join(host, pathname)
36
- RestClient::Request.execute(method: :put, url: uri.to_s, payload: payload.to_json, headers: headers,
37
- timeout: timeout)
35
+ RestClient::Request.execute(method: :put, url: uri.to_s, payload: payload.to_json, headers:, timeout:)
38
36
  end
39
37
  end
40
38
 
@@ -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
 
@@ -55,7 +55,7 @@ module Nonnative
55
55
  @services ||= configuration.services.map { |s| Nonnative::Service.new(s) }
56
56
  end
57
57
 
58
- def process(all, type_method, port_method, &block)
58
+ def process(all, type_method, port_method, &)
59
59
  types = []
60
60
  pids = []
61
61
  threads = []
@@ -68,7 +68,7 @@ module Nonnative
68
68
 
69
69
  ports = threads.map(&:value)
70
70
 
71
- yield_results(types, pids, ports, &block)
71
+ yield_results(types, pids, ports, &)
72
72
  end
73
73
 
74
74
  def yield_results(all, pids, ports)
@@ -6,8 +6,8 @@ module Nonnative
6
6
  @time = time
7
7
  end
8
8
 
9
- def perform(&block)
10
- ::Timeout.timeout(time, &block)
9
+ def perform(&)
10
+ ::Timeout.timeout(time, &)
11
11
  rescue ::Timeout::Error
12
12
  false
13
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nonnative
4
- VERSION = '1.66.0'
4
+ VERSION = '1.67.0'
5
5
  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.0.0', '< 4.0.0']
24
+ spec.required_ruby_version = ['>= 3.1.0', '< 4.0.0']
25
25
  spec.metadata['rubygems_mfa_required'] = 'true'
26
26
 
27
27
  spec.add_dependency 'concurrent-ruby', '~> 1.0', '>= 1.0.5'
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.66.0
4
+ version: 1.67.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-10-14 00:00:00.000000000 Z
11
+ date: 2022-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -294,7 +294,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
294
294
  requirements:
295
295
  - - ">="
296
296
  - !ruby/object:Gem::Version
297
- version: 3.0.0
297
+ version: 3.1.0
298
298
  - - "<"
299
299
  - !ruby/object:Gem::Version
300
300
  version: 4.0.0