timeouter 0.1.1.16497 → 0.1.2.16508
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/timeouter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cc975939b3f080f1dc37169a796d5eca5a7151a48c8a8ff97a68347761d606b
|
4
|
+
data.tar.gz: '0092cc3c3e4f8d585bce56564385168166f0df677898216a1c1f602ba4aed645'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 367ca6c831f6e0a811ae2eddfe93e576505ac98f4aec295adaaf117e8e81364619f468d240adca2d953fd1d7093cee8010ecc3d4000ab8a4c6bc4542e96a93ff
|
7
|
+
data.tar.gz: bcef7616460855ef01acc00c40a036a88ceb17ca9eafc14389cbc27c5dc0c9b954d1229bd70d982a361141d33c5c0f333922cc66b00ecbf5b7ec6e8b57a94569
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/timeouter.svg)](https://rubygems.org/gems/timeouter)
|
4
4
|
[![Gem](https://img.shields.io/gem/dt/timeouter.svg)](https://rubygems.org/gems/timeouter/versions)
|
5
|
+
[![Coverage](https://lysander.x.rnds.pro/api/v1/badges/timeouter_coverage.svg)](https://lysander.x.rnds.pro/api/v1/badges/timeouter_coverage.html)
|
5
6
|
[![Quality](https://lysander.x.rnds.pro/api/v1/badges/timeouter_quality.svg)](https://lysander.x.rnds.pro/api/v1/badges/timeouter_quality.html)
|
6
7
|
[![Outdated](https://lysander.x.rnds.pro/api/v1/badges/timeouter_outdated.svg)](https://lysander.x.rnds.pro/api/v1/badges/timeouter_outdated.html)
|
7
8
|
[![Vulnerabilities](https://lysander.x.rnds.pro/api/v1/badges/timeouter_vulnerable.svg)](https://lysander.x.rnds.pro/api/v1/badges/timeouter_vulnerable.html)
|
@@ -37,9 +38,9 @@ end
|
|
37
38
|
You can pass exception class and message on creation or on checking:
|
38
39
|
|
39
40
|
```ruby
|
40
|
-
Timeouter::run(1, eclass: RuntimeError,
|
41
|
+
Timeouter::run(1, eclass: RuntimeError, message: 'error') do |t|
|
41
42
|
sleep 2
|
42
|
-
puts t.running!(eclass: MyError,
|
43
|
+
puts t.running!(eclass: MyError, message: 'myerror')
|
43
44
|
end
|
44
45
|
```
|
45
46
|
|
data/lib/timeouter/version.rb
CHANGED