nonnative 1.73.0 → 1.74.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: 317de0f3ebf4d5cf8060d2c78e79ea4d92057248482c5b3f0d6dc095d2a01a1d
4
- data.tar.gz: 703d270aa7764ab1a583debc0934b333175e17c084c5ca17104381b6ca115329
3
+ metadata.gz: acae0845e2d98d06c04910a7ead3b22ff614926878afb268e37f916c74f470e3
4
+ data.tar.gz: 04705b7c6f13f20f9dcf67cee5e9a63bf835abc927a8ccaff196fcf2748a3e4f
5
5
  SHA512:
6
- metadata.gz: b0c75981fee6bc7e2868db902065a0b97b07bcbdb85d0e3432cd582d0c6f6ec7926771a2d31881d45e6932aed8101eb68d17c2b7d9a9efc9964dbef921da5031
7
- data.tar.gz: 72c1ea110196a0dbf75562911e839065ac0367ef27eaa3345f398aa7921c83ccdd5aebd88cb5c5dc647bf3d16d602cc8735390405530734849fba9d5becf0167
6
+ metadata.gz: d539314d85773631c3880930aae5a2ffbe51bcd448511fed27fb611294410af0062af8806c0527a1bb2616ddaaff1de62f897a3793784502009ceac74ab95ecf
7
+ data.tar.gz: b1545342354a75d7010122304bebda429cb01eeb5f563130b4a79d293a66bf44ec27fd6e75a558278405ed8db74d567fddf8cdd7e1859addf61a23d99c4cac6c
data/.circleci/config.yml CHANGED
@@ -4,11 +4,23 @@ jobs:
4
4
  build:
5
5
  docker:
6
6
  - image: alexfalkowski/ruby:3.2
7
+ working_directory: ~/nonnative
7
8
  steps:
8
9
  - checkout
9
10
  - run: git submodule sync
10
11
  - run: git submodule update --init
12
+ - run: make setup
13
+ - restore_cache:
14
+ name: restore deps
15
+ keys:
16
+ - nonnative-cache-{{ checksum "Gemfile.lock" }}
17
+ - nonnative-cache-
11
18
  - run: make dep
19
+ - save_cache:
20
+ name: save deps
21
+ key: nonnative-cache-{{ checksum "Gemfile.lock" }}
22
+ paths:
23
+ - vendor
12
24
  - run: make lint
13
25
  - run: make features
14
26
  - store_test_results:
@@ -19,6 +31,7 @@ jobs:
19
31
  release:
20
32
  docker:
21
33
  - image: alexfalkowski/release:3.1
34
+ working_directory: ~/nonnative
22
35
  steps:
23
36
  - checkout
24
37
  - run: release
data/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## [v1.74.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.74.0) - 2023-11-16
10
+
11
+ - [`82fa7dc`](https://github.com/alexfalkowski/nonnative/commit/82fa7dccda6acd5bccc2bc146decf8d1bad850db) feat(http): use resource so we can use opts (#276)
12
+ - [`4955fe9`](https://github.com/alexfalkowski/nonnative/commit/4955fe9d7b1e92c1438b43d88aeba12516df75ae) ci: cache deps (#275)
13
+ - [`2b372b8`](https://github.com/alexfalkowski/nonnative/commit/2b372b86ebbb2c0e45b4dc7503990a65aa75d906) build(deps): update bin (#274)
14
+ - [`02a15e5`](https://github.com/alexfalkowski/nonnative/commit/02a15e54035b7d1f68995733a8b0c0fd37e07a94) build(deps): update bin (#273)
15
+ - [`27755f0`](https://github.com/alexfalkowski/nonnative/commit/27755f0902ffccb254aa103d69bf38b453be5bc6) build(deps): update bin (#272)
16
+
9
17
  ## [v1.73.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.73.0) - 2023-11-13
10
18
 
11
19
  - [`37c5dd2`](https://github.com/alexfalkowski/nonnative/commit/37c5dd26b44b51b5f7b56ab36a0da226f9dd4222) feat(command): add tools to go command (#271)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nonnative (1.73.0)
4
+ nonnative (1.74.0)
5
5
  concurrent-ruby (~> 1.0, >= 1.0.5)
6
6
  cucumber (>= 7, < 10)
7
7
  get_process_mem (~> 0.2.1)
@@ -28,12 +28,12 @@ GEM
28
28
  term-ansicolor (~> 1.7)
29
29
  thor (~> 1.2)
30
30
  tins (~> 1.32)
31
- cucumber (9.0.2)
31
+ cucumber (9.1.0)
32
32
  builder (~> 3.2, >= 3.2.4)
33
33
  cucumber-ci-environment (~> 9.2, >= 9.2.0)
34
- cucumber-core (~> 11.1, >= 11.1.0)
35
- cucumber-cucumber-expressions (~> 16.1, >= 16.1.2)
36
- cucumber-gherkin (>= 24, < 26.2.1)
34
+ cucumber-core (~> 12.0)
35
+ cucumber-cucumber-expressions (~> 17.0)
36
+ cucumber-gherkin (>= 24, < 27)
37
37
  cucumber-html-formatter (~> 20.4, >= 20.4.0)
38
38
  cucumber-messages (>= 19, < 23)
39
39
  diff-lcs (~> 1.5, >= 1.5.0)
@@ -41,39 +41,30 @@ GEM
41
41
  multi_test (~> 1.1, >= 1.1.0)
42
42
  sys-uname (~> 1.2, >= 1.2.3)
43
43
  cucumber-ci-environment (9.2.0)
44
- cucumber-core (11.1.0)
45
- cucumber-gherkin (>= 24, < 27)
46
- cucumber-messages (>= 19, < 22)
47
- cucumber-tag-expressions (~> 4.1, >= 4.1.0)
48
- cucumber-cucumber-expressions (16.1.2)
44
+ cucumber-core (12.0.0)
45
+ cucumber-gherkin (>= 25, < 27)
46
+ cucumber-messages (>= 20, < 23)
47
+ cucumber-tag-expressions (~> 5.0, >= 5.0.4)
48
+ cucumber-cucumber-expressions (17.0.0)
49
49
  cucumber-gherkin (26.2.0)
50
50
  cucumber-messages (>= 19.1.4, < 22.1)
51
51
  cucumber-html-formatter (20.4.0)
52
52
  cucumber-messages (>= 18.0, < 22.1)
53
- cucumber-messages (21.0.1)
54
- cucumber-tag-expressions (4.1.0)
53
+ cucumber-messages (22.0.0)
54
+ cucumber-tag-expressions (5.0.6)
55
55
  diff-lcs (1.5.0)
56
56
  docile (1.4.0)
57
- domain_name (0.5.20190701)
58
- unf (>= 0.0.5, < 1.0.0)
57
+ domain_name (0.6.20231109)
59
58
  e2mmap (0.1.0)
60
59
  ffi (1.16.3)
61
60
  get_process_mem (0.2.7)
62
61
  ffi (~> 1.0)
63
- google-protobuf (3.25.0-arm64-darwin)
64
62
  google-protobuf (3.25.0-x86_64-darwin)
65
- google-protobuf (3.25.0-x86_64-linux)
66
63
  googleapis-common-protos-types (1.10.0)
67
64
  google-protobuf (~> 3.18)
68
- grpc (1.59.2)
69
- google-protobuf (~> 3.24)
70
- googleapis-common-protos-types (~> 1.0)
71
65
  grpc (1.59.2-x86_64-darwin)
72
66
  google-protobuf (~> 3.24)
73
67
  googleapis-common-protos-types (~> 1.0)
74
- grpc (1.59.2-x86_64-linux)
75
- google-protobuf (~> 3.24)
76
- googleapis-common-protos-types (~> 1.0)
77
68
  http-accept (1.7.0)
78
69
  http-cookie (1.0.5)
79
70
  domain_name (~> 0.5)
@@ -189,9 +180,6 @@ GEM
189
180
  tilt (2.3.0)
190
181
  tins (1.32.1)
191
182
  sync
192
- unf (0.1.4)
193
- unf_ext
194
- unf_ext (0.0.9)
195
183
  unicode-display_width (2.5.0)
196
184
  yard (0.9.34)
197
185
 
@@ -8,34 +8,34 @@ module Nonnative
8
8
 
9
9
  protected
10
10
 
11
- def get(pathname, headers = {}, timeout = 60)
11
+ def get(pathname, opts = {})
12
12
  with_exception do
13
- uri = URI.join(host, pathname)
14
- RestClient::Request.execute(method: :get, url: uri.to_s, headers:, timeout:)
13
+ resource(pathname, opts).get
15
14
  end
16
15
  end
17
16
 
18
- def post(pathname, payload, headers = {}, timeout = 60)
17
+ def post(pathname, payload, opts = {})
19
18
  with_exception do
20
- uri = URI.join(host, pathname)
21
- RestClient::Request.execute(method: :post, url: uri.to_s, payload: payload.to_json, headers:, timeout:)
19
+ resource(pathname, opts).post(payload)
22
20
  end
23
21
  end
24
22
 
25
- def delete(pathname, headers = {}, timeout = 60)
23
+ def delete(pathname, opts = {})
26
24
  with_exception do
27
- uri = URI.join(host, pathname)
28
- RestClient::Request.execute(method: :delete, url: uri.to_s, headers:, timeout:)
25
+ resource(pathname, opts).delete
29
26
  end
30
27
  end
31
28
 
32
- def put(pathname, payload, headers = {}, timeout = 60)
29
+ def put(pathname, payload, opts = {})
33
30
  with_exception do
34
- uri = URI.join(host, pathname)
35
- RestClient::Request.execute(method: :put, url: uri.to_s, payload: payload.to_json, headers:, timeout:)
31
+ resource(pathname, opts).put(payload)
36
32
  end
37
33
  end
38
34
 
35
+ def resource(pathname, opts)
36
+ RestClient::Resource.new(URI.join(host, pathname).to_s, opts)
37
+ end
38
+
39
39
  private
40
40
 
41
41
  attr_reader :host
@@ -2,20 +2,26 @@
2
2
 
3
3
  module Nonnative
4
4
  class Observability < Nonnative::HTTPClient
5
- def health
6
- get('healthz', { content_type: :json, accept: :json })
5
+ def health(opts = {})
6
+ opts[:headers] ||= { content_type: :json, accept: :json }
7
+
8
+ get('healthz', opts)
7
9
  end
8
10
 
9
- def liveness
10
- get('livez', { content_type: :json, accept: :json })
11
+ def liveness(opts = {})
12
+ opts[:headers] ||= { content_type: :json, accept: :json }
13
+
14
+ get('livez', opts)
11
15
  end
12
16
 
13
- def readiness
14
- get('readyz', { content_type: :json, accept: :json })
17
+ def readiness(opts = {})
18
+ opts[:headers] ||= { content_type: :json, accept: :json }
19
+
20
+ get('readyz', opts)
15
21
  end
16
22
 
17
- def metrics
18
- get('metrics')
23
+ def metrics(opts = {})
24
+ get('metrics', opts)
19
25
  end
20
26
  end
21
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nonnative
4
- VERSION = '1.73.0'
4
+ VERSION = '1.74.0'
5
5
  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.73.0
4
+ version: 1.74.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: 2023-11-13 00:00:00.000000000 Z
11
+ date: 2023-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby