require-profiler 0.1.0 → 0.1.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: d5b1e34052677db0605367fd1940681029cffc965f7d1db3604e6964ee95a41a
4
- data.tar.gz: acbc21ea3bbd7e120bf328287b216fc68ca7be9beb41260925bbca3a70c712cf
3
+ metadata.gz: 4387c62f9714573c234aafbbf2254c009341a3e553677458f3ab633d898ec0a7
4
+ data.tar.gz: 7ada2f5d9e5020c0b5a6199165df40346cf5514fc68a245451539895da04b6fc
5
5
  SHA512:
6
- metadata.gz: 67480173af46da1a7dba97b15f5a252b66b20504af35a1397f66662dc65e97e64381419d0d175a71aba3d99d8646ad0be482e3423de72ca4ef4c822b49c6cb28
7
- data.tar.gz: e91be6bf3e684cfb9c969e2bfa495ba71b1a782dddfa4cdaa1f9c3d7573047c50dd3b0a308c377996b4405e1f38f32c8604eea5993e7c6b0a8369ec27044515e
6
+ metadata.gz: 978f991474241a6b408fa2f9bf8ca4370c55900ed763b34cac82a950c1b5a8ae4e740c1dc9f62a6498cc8295ebea05caf9b1c10a1ea9ee1c69c24a22a4ad0166
7
+ data.tar.gz: 75185c6c5569be0bc835c64fabfea8846b50e05e5194a8124eb6d329c5ff56516fd2761cd49563ee92ed610853fb5a494e60ffd4d3d5998fbbab1adccce6f64f
data/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.1.1 (2026-04-29)
6
+
7
+ - Fix JSON printer leaving trailing call-stack bytes in output. ([@ardecvz][])
8
+
9
+ We overwrite the buffered call-stack text with a (shorter) Speedscope JSON document but never truncate it, breaking JSON validity.
10
+
11
+ Truncate the file properly.
12
+
5
13
  ## 0.1.0 (2026-04-22)
6
14
 
7
15
  - Initial
16
+
17
+ [@palkan]: https://github.com/palkan
18
+ [@ardecvz]: https://github.com/ardecvz
@@ -59,6 +59,7 @@ module RequireProfiler
59
59
  }
60
60
 
61
61
  output.write(::JSON.pretty_generate(profile))
62
+ output.truncate(output.pos)
62
63
  super
63
64
  end
64
65
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RequireProfiler # :nodoc:
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: require-profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev