toxiproxy 2.0.1 → 2.0.2
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 +4 -4
- data/README.md +5 -2
- data/lib/toxiproxy/version.rb +1 -1
- data/lib/toxiproxy.rb +3 -6
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 98c1cbde340b90f1da3d81bf0119ec97a161ffa3815eb06982dd88d807fcce18
|
|
4
|
+
data.tar.gz: 3a8e7e33d8add55ba5ab6fd77d1914faae65cefd4df3789c8dd3e2d5cf529b62
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 72d9c8ace67f5371eba624490da0933d9b6e6eeb5162f2963a8fb9ad581e45a8efc4ce243a28a042343abeede16897e37ba0e25674c10cd92a94d52facddf931
|
|
7
|
+
data.tar.gz: 717ac41a5767aecd2a77df7e355180f30622e0628dbed7c7662a931ef0a3a0280119e1f098f8b1ceb4f30995ea702136588b02b5b4ab82408b2bee0abf0bdbe0
|
data/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# toxiproxy-ruby
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/rb/toxiproxy)
|
|
4
|
+
[](https://github.com/Shopify/toxiproxy-ruby/actions/workflows/test.yml)
|
|
5
|
+
|
|
3
6
|
`toxiproxy-ruby` `>= 1.x` is compatible with the Toxiproxy `2.x` series.
|
|
4
7
|
`toxiproxy-ruby` `0.x` is compatible with the Toxiproxy `1.x` series.
|
|
5
8
|
|
|
@@ -9,8 +12,8 @@ ensure your application behaves appropriately under harsh conditions. Before you
|
|
|
9
12
|
can use the Ruby library, you need to read the [Usage section of the Toxiproxy
|
|
10
13
|
README](https://github.com/shopify/toxiproxy#usage).
|
|
11
14
|
|
|
12
|
-
```
|
|
13
|
-
gem install toxiproxy
|
|
15
|
+
```shell
|
|
16
|
+
$ gem install toxiproxy
|
|
14
17
|
```
|
|
15
18
|
|
|
16
19
|
Make sure the Toxiproxy server is already running.
|
data/lib/toxiproxy/version.rb
CHANGED
data/lib/toxiproxy.rb
CHANGED
|
@@ -225,13 +225,10 @@ class Toxiproxy
|
|
|
225
225
|
}
|
|
226
226
|
end
|
|
227
227
|
|
|
228
|
+
@http = nil
|
|
228
229
|
def self.reset_http_client!
|
|
229
|
-
if
|
|
230
|
-
|
|
231
|
-
@http = nil
|
|
232
|
-
end
|
|
233
|
-
|
|
234
|
-
@http
|
|
230
|
+
@http.finish if @http&.started?
|
|
231
|
+
@http = nil
|
|
235
232
|
end
|
|
236
233
|
|
|
237
234
|
private
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: toxiproxy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Simon Eskildsen
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2022-
|
|
12
|
+
date: 2022-09-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: A Ruby library for controlling Toxiproxy. Can be used in resiliency testing.
|
|
15
15
|
email: opensource@shopify.com
|
|
@@ -31,6 +31,8 @@ licenses:
|
|
|
31
31
|
- MIT
|
|
32
32
|
metadata:
|
|
33
33
|
homepage_uri: https://github.com/Shopify/toxiproxy
|
|
34
|
+
source_code_uri: https://github.com/Shopify/toxiproxy-ruby
|
|
35
|
+
changelog_uri: https://github.com/Shopify/toxiproxy-ruby/blob/master/CHANGELOG.md
|
|
34
36
|
documentation_uri: https://github.com/Shopify/toxiproxy-ruby
|
|
35
37
|
allowed_push_host: https://rubygems.org
|
|
36
38
|
post_install_message:
|
|
@@ -48,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
48
50
|
- !ruby/object:Gem::Version
|
|
49
51
|
version: '0'
|
|
50
52
|
requirements: []
|
|
51
|
-
rubygems_version: 3.
|
|
53
|
+
rubygems_version: 3.3.3
|
|
52
54
|
signing_key:
|
|
53
55
|
specification_version: 4
|
|
54
56
|
summary: Ruby library for Toxiproxy
|