mtracker 0.2.0 → 0.2.1

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: 719a7c2ac8ef1b8bff7280641ebf41e352bca994
4
- data.tar.gz: 84b35da68056dcbe038f30c16828cfdc8a6d0d5e
3
+ metadata.gz: 90e8063b53163220acd819735d1194e7d8d7e030
4
+ data.tar.gz: c530dd1ba1a8bce385c0d83efd298b85a7fc6895
5
5
  SHA512:
6
- metadata.gz: 6ea3776a090a21d0176949b159585823096743cbcca21c396202b0080d3306561c416fd5d1321bda33345c841e0bdebe202418b2ba53dacd6497183c86f62f0f
7
- data.tar.gz: f777cae8efc83d815e7ba4654a9c2c96b884da543ef22fc5853e01c80301c065d293dd985b2a22ef201e8256747d7ff99908829c51a21444760c05910ef86006
6
+ metadata.gz: 96df25185481cb05ac6ac402ed41cb29b4e20e7b855971573f57f1c047ba516278be40391e45ad2324679f4a183e8bbe0e5fd17529062843492e2784b1dfce14
7
+ data.tar.gz: 1e416e2f5fcce9d551764c35709fc317fe91d39ca9cf7d0b2efb6d92f229aec0005976bee0e8dcf3c27edad178dfe746e0ddaf034cc915feac8cbcc548f2333a
@@ -1,3 +1,6 @@
1
+ = 0.2.1
2
+ - return result of block
3
+
1
4
  = 0.2.0
2
5
  - support Rails.logger
3
6
 
@@ -5,8 +5,9 @@ module Mtracker
5
5
  def track(label)
6
6
  start_time = Time.now
7
7
  put_track_info "[start] #{label}"
8
- yield
8
+ result = yield
9
9
  put_track_info "[end] #{label} (#{sprintf('%.3f', Time.now - start_time)} sec)"
10
+ result
10
11
  end
11
12
 
12
13
  def put_track_info(msg)
@@ -1,3 +1,3 @@
1
1
  module Mtracker
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mtracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke Murata