toxiproxy 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: 07ea894e2ec459737f6d98f2673e3049e683c4a6
4
- data.tar.gz: 5310b2f902eef3c7b468fb1d88df000b287bc943
3
+ metadata.gz: c4abc83dd0b261de59236fbfe5a2e3a0660ca2b0
4
+ data.tar.gz: 67d9083dd5672fd70cf53365b5d550d86edfca82
5
5
  SHA512:
6
- metadata.gz: 27251df5e59a5144ed162a220f401b431e5e68ece5376f3b67e1ae4aa0594609d6b8dcb0b8d1724a7a4f736cc73564d37cc9bd0880e05ba638da2b47e308c01f
7
- data.tar.gz: cd8ad0b67da109706aba5ca9c6a4e70313217379f0db35e5899edd45a3c4cd286d6385f03812efe3f2371b2abdc4a7987601e0e381d235228743838447c1df74
6
+ metadata.gz: f0cd49f6f4b93c88a532ca43087a8c54a46907210ccf5693d970b3f8edbdf73a6a5efc550623a8e9ac9fe02be8a59c5790403fc59a52f662907c1a11aa8aa752
7
+ data.tar.gz: d6dd0670c4505efdf609e41e8938053a6318595ea8176a89724d5e768156ec9f03d5e8043442dd952af83f3f42a54ec110dd6cd3754a7035b9c161719578a1f2
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  vendor/
2
2
  .bundle
3
3
  Gemfile.lock
4
+ *.gem
@@ -98,6 +98,13 @@ class Toxiproxy
98
98
  }.compact
99
99
  end
100
100
 
101
+ def self.running?
102
+ TCPSocket.new(URI.host, URI.port).close
103
+ true
104
+ rescue Errno::ECONNREFUSED, Errno::ECONNRESET
105
+ false
106
+ end
107
+
101
108
  # Set an upstream toxic.
102
109
  def upstream(toxic = nil, attrs = {})
103
110
  return @upstream unless toxic
@@ -1,3 +1,3 @@
1
1
  class Toxiproxy
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -350,6 +350,10 @@ class ToxiproxyTest < MiniTest::Unit::TestCase
350
350
  assert_proxy_available(proxies2.first)
351
351
  end
352
352
 
353
+ def test_running_helper
354
+ assert_equal true, Toxiproxy.running?
355
+ end
356
+
353
357
  private
354
358
 
355
359
  def assert_proxy_available(proxy)
metadata CHANGED
@@ -1,37 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toxiproxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Eskildsen
8
8
  - Jacob Wirth
9
9
  autorequire:
10
10
  bindir: bin
11
- cert_chain:
12
- - |
13
- -----BEGIN CERTIFICATE-----
14
- MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MQ8wDQYDVQQDDAZhZG1p
15
- bnMxFzAVBgoJkiaJk/IsZAEZFgdzaG9waWZ5MRMwEQYKCZImiZPyLGQBGRYDY29t
16
- MB4XDTE0MDUxNTIwMzM0OFoXDTE1MDUxNTIwMzM0OFowPzEPMA0GA1UEAwwGYWRt
17
- aW5zMRcwFQYKCZImiZPyLGQBGRYHc2hvcGlmeTETMBEGCgmSJomT8ixkARkWA2Nv
18
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0/81O3e1vh5smcwp2G
19
- MpLQ6q0kejQLa65bPYPxdzWA1SYOKyGfw+yR9LdFzsuKpwWzKq6zX35lj1IckWS4
20
- bNBEQzxmufUxU0XPM02haFB8fOfDJzdXsWte9Ge4IFwahwn68gpMqN+BvxL+KMYz
21
- Iut9YmN44d4LZdsENEIO5vmybuG2vYDz7R56qB0PA+Q2P2CdhymsBad2DQs69FBo
22
- uico9V6VMYYctL9lCYdzu9IXrOYNTt88suKIVzzAlHOKeN0Ng5qdztFoTR8sfxDr
23
- Ydg3KHl5n47wlpgd8R0f/4b5gGxW+v9pyJCgQnLlRu7DedVSvv7+GMtj3g9r3nhJ
24
- KqECAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFI/o
25
- maf34HXbUOQsdoLHacEKQgunMB0GA1UdEQQWMBSBEmFkbWluc0BzaG9waWZ5LmNv
26
- bTAdBgNVHRIEFjAUgRJhZG1pbnNAc2hvcGlmeS5jb20wDQYJKoZIhvcNAQEFBQAD
27
- ggEBADkK9aj5T0HPExsov4EoMWFnO+G7RQ28C30VAfKxnL2UxG6i4XMHVs6Xi94h
28
- qXFw1ec9Y2eDUqaolT3bviOk9BB197+A8Vz/k7MC6ci2NE+yDDB7HAC8zU6LAx8Y
29
- Iqvw7B/PSZ/pz4bUVFlTATif4mi1vO3lidRkdHRtM7UePSn2rUpOi0gtXBP3bLu5
30
- YjHJN7wx5cugMEyroKITG5gL0Nxtu21qtOlHX4Hc4KdE2JqzCPOsS4zsZGhgwhPs
31
- fl3hbtVFTqbOlwL9vy1fudXcolIE/ZTcxQ+er07ZFZdKCXayR9PPs64heamfn0fp
32
- TConQSX2BnZdhIEYW+cKzEC/bLc=
33
- -----END CERTIFICATE-----
34
- date: 2015-05-11 00:00:00.000000000 Z
11
+ cert_chain: []
12
+ date: 2015-07-02 00:00:00.000000000 Z
35
13
  dependencies:
36
14
  - !ruby/object:Gem::Dependency
37
15
  name: bundler
@@ -117,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
95
  version: '0'
118
96
  requirements: []
119
97
  rubyforge_project:
120
- rubygems_version: 2.2.2
98
+ rubygems_version: 2.2.3
121
99
  signing_key:
122
100
  specification_version: 4
123
101
  summary: Ruby library for Toxiproxy
@@ -1,2 +0,0 @@
1
- �Ya���5�'$$�,y?�ܴ�R1�OA�r2;/ƻƲ|��2�ѹ^���j����\t(�H��BM@�|�ٍ���-�CO��f �0���#�NZޛ�
2
- S;��ٺ���@����8<?�et\u7���G҅9e�b���4p2a
data.tar.gz.sig DELETED
@@ -1,3 +0,0 @@
1
- 5�޿9<B���xp���VL��{N#�������k�wrv]v�����5�������M���u�P\%���3�mQR���ۧu�Ą�"�����*��?c=F�7�V3�].�^���4�.7��^�f˘4�� �N}�;Թ�*S���o��*�ڪ �F^�:"},C����N���)����@���h�s��K�E��#�{��
2
- ���N=��d�E�� �5��Zz�t!�
3
- w�B�ϒ�&�I`ˢ���$�
metadata.gz.sig DELETED
Binary file