toxiproxy 2.0.1 → 2.0.2

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: d135ce7e35507ad08017ae28db7f7543f9c0d0a29cd32042c9c61d072bee5eee
4
- data.tar.gz: 8db56acdadcac8ac84b5b1be31a235cd7715422ff4cee1a36e3832eb983355f8
3
+ metadata.gz: 98c1cbde340b90f1da3d81bf0119ec97a161ffa3815eb06982dd88d807fcce18
4
+ data.tar.gz: 3a8e7e33d8add55ba5ab6fd77d1914faae65cefd4df3789c8dd3e2d5cf529b62
5
5
  SHA512:
6
- metadata.gz: adee5993b439b3227b67ec4ca28fecdb8c7194d9b640e369df77f60a754d42bf20d758eaa8ca2a11a553451d7bd63654d14b0a03781fcc07751a5f5e947d524b
7
- data.tar.gz: 1d69a13027507acc7791ac0904e70b1a02bd6f5bd4bad55e2724b6cc6e0d9f19e0e949c05d49f5ef7313e80193cfe898c3b2950c5124c41277412254b5895144
6
+ metadata.gz: 72d9c8ace67f5371eba624490da0933d9b6e6eeb5162f2963a8fb9ad581e45a8efc4ce243a28a042343abeede16897e37ba0e25674c10cd92a94d52facddf931
7
+ data.tar.gz: 717ac41a5767aecd2a77df7e355180f30622e0628dbed7c7662a931ef0a3a0280119e1f098f8b1ceb4f30995ea702136588b02b5b4ab82408b2bee0abf0bdbe0
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # toxiproxy-ruby
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/toxiproxy.svg)](https://badge.fury.io/rb/toxiproxy)
4
+ [![Test](https://github.com/Shopify/toxiproxy-ruby/actions/workflows/test.yml/badge.svg)](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.
@@ -1,3 +1,3 @@
1
1
  class Toxiproxy
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
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 defined? @http
230
- @http.finish() if @http && @http.started?
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.1
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-03-15 00:00:00.000000000 Z
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.2.20
53
+ rubygems_version: 3.3.3
52
54
  signing_key:
53
55
  specification_version: 4
54
56
  summary: Ruby library for Toxiproxy