kantox-chronoscope 0.3.0 → 0.3.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: dff7a5c13087692f056fa3a698fdad64e0fdef46
4
- data.tar.gz: 40805caadefc8ba3a6efc38757e57d5b26c1217c
3
+ metadata.gz: cc40deadd4e5c6c0331f2a0cec0377451c90521c
4
+ data.tar.gz: f50279d201ea4b3e557540208fff7184fe7f57b1
5
5
  SHA512:
6
- metadata.gz: 58fc0f60e486c203d7a4d36b17353e3273488d1be0e662f263fc13bada67b42941d21bf8e817c19bfb1a571812635f151f9249ae0cf7437ffaedf510445695ac
7
- data.tar.gz: 27f91cdf5ffae2b81f6699b0f5c560c85f414f98b11f4fed1c23938d2a74bec5db242106d7cba6ad56433631f2ec0a4658b07147a62e2a3c34b0e3d4c3de5f02
6
+ metadata.gz: 7aedb9089e33bfc2f44685980561d9c28e32104c52bf9f5162fec51ad0720c77f2dbe4f76cb9fb33984e69df5d6b5f6c1a5cbb1834677469e7c2ab35ed233b9e
7
+ data.tar.gz: be4f4d6b28574a2d524a791a0ad6485f9a7922a61f53de3fa3a2ae025600ccb2ac6454b8fd4cf8f102f0476439d2770e83926c8019588c53cdf84b3988c87acf
@@ -47,6 +47,7 @@ module Kantox
47
47
  @@★.shift
48
48
  end
49
49
  end
50
+ alias_method :watch, :⌚
50
51
 
51
52
  # FIXME: total currently adds up all calls, including nested
52
53
  # I am not sure if it is correct ot not, so leaving it for now
@@ -55,10 +56,11 @@ module Kantox
55
56
 
56
57
  log_report(count).tap do |log_hash|
57
58
  LOGGER.debug(log_hash[:string]) if log
58
- log_hash[:data] = @@chronoscope_data.dup
59
+ log_hash[:data] = @@chronoscope_data.map { |k, v| [k, v.dup] }.to_h
59
60
  @@chronoscope_data.clear if cleanup
60
61
  end
61
62
  end
63
+ alias_method :harvest, :⌛
62
64
 
63
65
  def log_bm(arg, bm)
64
66
  [
@@ -1,5 +1,5 @@
1
1
  module Kantox
2
2
  module Chronoscope
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kantox-chronoscope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kantox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-22 00:00:00.000000000 Z
11
+ date: 2016-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler