gvl_timing 0.3.0 → 0.3.1

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: 11943fd2bd229bb71b905436ff49735fa683355107e773798a0c265e91dc51c9
4
- data.tar.gz: 28e2c52c9d4aa6eb9d9346c4bf85398c41d70f7cd8dfd70699f3618340779979
3
+ metadata.gz: c074fa63b689a97efe9aace8d5771f2d028c624f321375999cfc2f65e88a90ce
4
+ data.tar.gz: b33d3f6aa788576f5f7265c9336a4f4dabf916a84608e7af3f85d087a6551b1d
5
5
  SHA512:
6
- metadata.gz: ca21dea3e3d9d8bc9b4c46a76c32d33aa7e501f4b56c28f4543e46374e8e5341d90950dc18381f841011fd65cfbc4a47df280e5cec6297655991300574d31ac4
7
- data.tar.gz: dfa75b00eac2c2c0e23d9c4acbb816a6c3f18224405bfacf40345c6d9d59e0ab22691f3697f70934ca13387520f050aa7d8fc3d706c1d6a2a1bc52cabc34b348
6
+ metadata.gz: 447646c28a9412850137bfca22152c51fe8c002fea31fda3f2b3e999c7f628d699eb09360a451edc7f03621e4dd8a3c0a13854c40cc16ee779f3d7b44ad69abb
7
+ data.tar.gz: ae1217aa724bbc0f1672ce98573af54d54a4e25dc4d413ffa9bd461ef0f0de0ab7ae638b906d130e4edacfcbbc01e57ad836187af9c8d010196f7a682395b15f
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GVLTiming
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
data/lib/gvl_timing.rb CHANGED
@@ -10,8 +10,11 @@ module GVLTiming
10
10
  def measure
11
11
  timer = Timer.new
12
12
  timer.start
13
- yield
14
- timer.stop
13
+ begin
14
+ yield
15
+ ensure
16
+ timer.stop
17
+ end
15
18
  timer
16
19
  end
17
20
  alias_method :time, :measure
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gvl_timing
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
  - John Hawthorn
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-04-18 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: Measure time spent in different GVL states
13
13
  email:
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  - !ruby/object:Gem::Version
50
50
  version: '0'
51
51
  requirements: []
52
- rubygems_version: 3.6.2
52
+ rubygems_version: 3.6.7
53
53
  specification_version: 4
54
54
  summary: Measure time spent in different GVL states
55
55
  test_files: []