perforator 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/perforator/version.rb +1 -1
- data/lib/perforator.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36e87bfccb3f05943f74240cde7af547592871db
|
4
|
+
data.tar.gz: a31a0f260075c7138836092f4bef8c514cc4ef40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4759a91ba5ce3b21965f4ce7081b91da841c4b71d6a07de8a0c54a92f29d562fe439b1beaafe2c94a9488194abd854be14af43c746880b8c165825ce45c57eb
|
7
|
+
data.tar.gz: 3b30c9c4a33c173bcf02e4b39666335a4414afeeed3bd898fbb346221c835d81545cc32c23b5cdc9dac487d17d872fc557a90a02618763270259ebe4103b991b
|
data/lib/perforator/version.rb
CHANGED
data/lib/perforator.rb
CHANGED
@@ -57,10 +57,10 @@ module Perforator
|
|
57
57
|
def execute_callbacks!
|
58
58
|
return unless expected_time
|
59
59
|
|
60
|
-
if spent_time < expected_time
|
60
|
+
if spent_time < expected_time && positive_callback
|
61
61
|
log! "Spent time less than exepcted. Executing: #{positive_callback.inspect}"
|
62
62
|
positive_callback.call
|
63
|
-
|
63
|
+
elsif spent_time > expected_time && negative_callback
|
64
64
|
log! "Spent time more than exepcted. Executing: #{positive_callback.inspect}"
|
65
65
|
negative_callback.call
|
66
66
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: perforator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Volodya Sveredyuk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|