nonnative 1.73.0 → 1.74.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +13 -0
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +13 -25
- data/lib/nonnative/http_client.rb +12 -12
- data/lib/nonnative/observability.rb +8 -8
- data/lib/nonnative/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72da73985160aeefcf6b52e7ada5b68949ddcd2d176d1c120dfefc0c7733e337
|
4
|
+
data.tar.gz: cfca34b716ab4e4ead800074523567d01fcc323db83265ba0b1daba90afca718
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32eb9dcd95e99e133e0bdec549a5848561a47eef7c002523e05e862fa43360dad8f3307e1c7f22062ea2fd9c285759522ed4a6fa1fac1ce053c74af3dd74fb7e
|
7
|
+
data.tar.gz: c1c5c0a2f7f0fe1ac9299e7759191b154b53db4b2bd17abf8ef6e248147cae5e16d599171ac2aeb24183b80bb36040d15bc7557b56504a9922088e3efbd9db0a
|
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,18 @@ 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.1](https://github.com/alexfalkowski/nonnative/releases/tag/v1.74.1) - 2023-11-16
|
10
|
+
|
11
|
+
- [`57a67b4`](https://github.com/alexfalkowski/nonnative/commit/57a67b4fde47cf1ab1a8299d759cffcc6cd821f6) fix(http): do not override opts (#277)
|
12
|
+
|
13
|
+
## [v1.74.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.74.0) - 2023-11-16
|
14
|
+
|
15
|
+
- [`82fa7dc`](https://github.com/alexfalkowski/nonnative/commit/82fa7dccda6acd5bccc2bc146decf8d1bad850db) feat(http): use resource so we can use opts (#276)
|
16
|
+
- [`4955fe9`](https://github.com/alexfalkowski/nonnative/commit/4955fe9d7b1e92c1438b43d88aeba12516df75ae) ci: cache deps (#275)
|
17
|
+
- [`2b372b8`](https://github.com/alexfalkowski/nonnative/commit/2b372b86ebbb2c0e45b4dc7503990a65aa75d906) build(deps): update bin (#274)
|
18
|
+
- [`02a15e5`](https://github.com/alexfalkowski/nonnative/commit/02a15e54035b7d1f68995733a8b0c0fd37e07a94) build(deps): update bin (#273)
|
19
|
+
- [`27755f0`](https://github.com/alexfalkowski/nonnative/commit/27755f0902ffccb254aa103d69bf38b453be5bc6) build(deps): update bin (#272)
|
20
|
+
|
9
21
|
## [v1.73.0](https://github.com/alexfalkowski/nonnative/releases/tag/v1.73.0) - 2023-11-13
|
10
22
|
|
11
23
|
- [`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.
|
4
|
+
nonnative (1.74.1)
|
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
|
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 (~>
|
35
|
-
cucumber-cucumber-expressions (~>
|
36
|
-
cucumber-gherkin (>= 24, <
|
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 (
|
45
|
-
cucumber-gherkin (>=
|
46
|
-
cucumber-messages (>=
|
47
|
-
cucumber-tag-expressions (~>
|
48
|
-
cucumber-cucumber-expressions (
|
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 (
|
54
|
-
cucumber-tag-expressions (
|
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.
|
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,
|
11
|
+
def get(pathname, opts = {})
|
12
12
|
with_exception do
|
13
|
-
|
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,
|
17
|
+
def post(pathname, payload, opts = {})
|
19
18
|
with_exception do
|
20
|
-
|
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,
|
23
|
+
def delete(pathname, opts = {})
|
26
24
|
with_exception do
|
27
|
-
|
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,
|
29
|
+
def put(pathname, payload, opts = {})
|
33
30
|
with_exception do
|
34
|
-
|
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,20 @@
|
|
2
2
|
|
3
3
|
module Nonnative
|
4
4
|
class Observability < Nonnative::HTTPClient
|
5
|
-
def health
|
6
|
-
get('healthz',
|
5
|
+
def health(opts = {})
|
6
|
+
get('healthz', opts)
|
7
7
|
end
|
8
8
|
|
9
|
-
def liveness
|
10
|
-
get('livez',
|
9
|
+
def liveness(opts = {})
|
10
|
+
get('livez', opts)
|
11
11
|
end
|
12
12
|
|
13
|
-
def readiness
|
14
|
-
get('readyz',
|
13
|
+
def readiness(opts = {})
|
14
|
+
get('readyz', opts)
|
15
15
|
end
|
16
16
|
|
17
|
-
def metrics
|
18
|
-
get('metrics')
|
17
|
+
def metrics(opts = {})
|
18
|
+
get('metrics', opts)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
data/lib/nonnative/version.rb
CHANGED
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.
|
4
|
+
version: 1.74.1
|
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-
|
11
|
+
date: 2023-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|