furia 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77c268a50f635ec664d2069dd7c8a11a65fd34c347d54e0e392a276ea23af5e4
4
- data.tar.gz: 175133d228496068459a2a86dc5ea6cb57a7e74f720890e26c2e8677d43f318d
3
+ metadata.gz: b918eefd85e857f9a867d493589a36a3515ae3ce99e8e853ebfc9aeec0762ea2
4
+ data.tar.gz: dfb82bf985fb4d8a2c2a30ad3c3adb2ce183b644f337f094191c7756effcff03
5
5
  SHA512:
6
- metadata.gz: 841107e3526539ceb318555c5b4e18fc514d6b240c4c1a41c245d625c263bdfff96033adccdd28f3204cc8ea323618caad944b2b43ba68c716b83afa1abd5a73
7
- data.tar.gz: e3846bfa72009a969dee18301b681a55d73d54a7a578bf3c0aae2d6d0d77acebda6d4b0f105ce17d708f517e7964f192d7b99d32d1ecbd2f56bfdc1fd8b9d519
6
+ metadata.gz: 855368d7e83ebc3b7daad06c0622670294ff3af5bdc69436a0a7868dfcc795bad0ebe3676b23d1b38edc1981a97c982b332a14ac38089a034948074dbc8d161a
7
+ data.tar.gz: 796e6d32869c0ac251e55e91d9b3d4cc83e4fcc383316e8243c33fd4f67c07fef88afca2eb100fc07649dc5b432a6f18efa9889a9728346412a5f4ed5b50f5d7
@@ -33,13 +33,13 @@ module Furia
33
33
  @root_scope[:total_queries_num] += 1
34
34
  end
35
35
 
36
- yield
37
-
38
- if parent_scope
39
- parent_scope[:total_duration_ms] += @current_scope[:total_duration_ms]
40
- @current_scope = parent_scope
41
- else
42
- Furia::Sample.create!(data: @root_scope)
36
+ yield.tap do
37
+ if parent_scope
38
+ parent_scope[:total_duration_ms] += @current_scope[:total_duration_ms]
39
+ @current_scope = parent_scope
40
+ else
41
+ Furia::Sample.create!(data: @root_scope)
42
+ end
43
43
  end
44
44
  ensure
45
45
  ActiveSupport::Notifications.unsubscribe(subscriber)
data/lib/furia/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Furia
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: furia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Viacheslav Alekseev