stub_server 0.5.0 → 0.6.0

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: 9bfaeb55228fa829f8e96705257e9fc5876ad4d1457e34f059e7e667414a637a
4
- data.tar.gz: 98dc6aa936d0c0dd38bd0ef684c2cd54fd80deca9bc11842f0fb85ea09273892
3
+ metadata.gz: 05ae6e405bf5a0cba95079404c91d8d6d2c9ce3db5c7b8945152317784ac557e
4
+ data.tar.gz: 63ffb7d7b3ecfd68efb46afc7bc3b057c44330cd7d90efe314c3ba1abd43b1d1
5
5
  SHA512:
6
- metadata.gz: ff17fa306dae8ae5004031578c566648e6dff274cdca5508878c258577810d3e4ab8d9cd419c35726f7093fb049fc8e9fed88099ad795f748b6becc23cc8ffdd
7
- data.tar.gz: c130620e847ed59521a4bd83ff789ed6a1f1eb099c9ec22db6cb5cd47fac6e1083e96851d27c4174afa0deb773bfe1d1d8f58de2c3cb9aa3f3cef61b4f24b0be
6
+ metadata.gz: 740f2b4d866208cb25d9327bd1641709383212532fd826de9821f5c136b5a7f103447780337c51bc93974308c856db9f5e76e3840c05c3d243144510af2679a1
7
+ data.tar.gz: b14b9380693882907c8c56dc5aeb5ad5bbb179c464d6d4fc6315a1d083c4e3ce372b9495d0e69e9f967440f2f73424d40bc4a79f217d1cb28e05b8f0b031aa61
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  class StubServer
3
- VERSION = "0.5.0"
3
+ VERSION = "0.6.0"
4
4
  end
data/lib/stub_server.rb CHANGED
@@ -75,7 +75,6 @@ class StubServer
75
75
  # ideally we'd use WEBrick::Utils::TimeoutHandler::TimeoutMutex.synchronize to avoid race conditions,
76
76
  # but that is also used in .terminate and would lead to deadlocks ...
77
77
  # TODO: open ruby issue for race-condition free terminate_if_empty
78
- return if RUBY_VERSION < "2.4.0"
79
78
  if WEBrick::Utils::TimeoutHandler.instance.instance_variable_get(:@timeout_info).empty?
80
79
  WEBrick::Utils::TimeoutHandler.terminate
81
80
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stub_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-13 00:00:00.000000000 Z
11
+ date: 2021-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: webrick
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  description:
28
42
  email: michael@grosser.it
29
43
  executables: []
@@ -52,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
66
  - !ruby/object:Gem::Version
53
67
  version: '0'
54
68
  requirements: []
55
- rubygems_version: 3.1.2
69
+ rubygems_version: 3.2.16
56
70
  signing_key:
57
71
  specification_version: 4
58
72
  summary: Boot up a real server to serve testing replies