From 877d12227666eee60bdb80c7cf77d5cff884fffc Mon Sep 17 00:00:00 2001 From: Andrey Novikov Date: Fri, 1 Nov 2024 11:08:12 +0900 Subject: [PATCH] 0.4.0: Automatic metric registration for all available GC stats --- CHANGELOG.md | 7 +++++ Gemfile.lock | 56 +++++++++++++++++++--------------------- lib/yabeda/gc/version.rb | 2 +- spec/yabeda/gc_spec.rb | 2 +- 4 files changed, 36 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d0cc4d..d68674c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ## [Unreleased] +## [0.4.0] - 2024-11-01 + +### Added + +- Automatic GC metric registration for future Ruby versions. [@jeremy] in [#6](https://github.com/ianks/yabeda-gc/pull/6) + ## [0.3.0] - 2024-01-04 ### Added @@ -32,3 +38,4 @@ [@tarapon]: https://github.com/tarapon "Ivan Tarapon" [@Envek]: https://github.com/Envek "Andrey Novikov" [@aroop]: https://github.com/aroop "Ajay Guthikonda" +[@jeremy]: https://github.com/jeremy "Jeremy Daer" diff --git a/Gemfile.lock b/Gemfile.lock index e15e575..e37a447 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - yabeda-gc (0.3.0) + yabeda-gc (0.4.0) yabeda (~> 0.6) GEM @@ -12,52 +12,50 @@ GEM ast (2.4.2) coderay (1.1.3) concurrent-ruby (1.3.4) - diff-lcs (1.5.0) + diff-lcs (1.5.1) dry-initializer (3.1.1) - json (2.7.1) + json (2.7.5) language_server-protocol (3.17.0.3) - method_source (1.0.0) - parallel (1.24.0) - parser (3.2.2.4) + method_source (1.1.0) + parallel (1.26.3) + parser (3.3.5.1) ast (~> 2.4.1) racc pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) - racc (1.7.3) + racc (1.8.1) rainbow (3.1.1) - rake (13.1.0) - regexp_parser (2.8.3) - rexml (3.2.6) - rspec (3.12.0) - rspec-core (~> 3.12.0) - rspec-expectations (~> 3.12.0) - rspec-mocks (~> 3.12.0) - rspec-core (3.12.2) - rspec-support (~> 3.12.0) - rspec-expectations (3.12.3) + rake (13.2.1) + regexp_parser (2.9.2) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.2) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.3) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-mocks (3.12.6) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.2) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-support (3.12.1) - rubocop (1.59.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.1) + rubocop (1.68.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.2.4) + parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) - rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.30.0, < 2.0) + regexp_parser (>= 2.4, < 3.0) + rubocop-ast (>= 1.32.2, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.30.0) - parser (>= 3.2.1.0) + rubocop-ast (1.33.0) + parser (>= 3.3.1.0) ruby-next-core (1.0.3) ruby-progressbar (1.13.0) - unicode-display_width (2.5.0) + unicode-display_width (2.6.0) yabeda (0.13.1) anyway_config (>= 1.0, < 3) concurrent-ruby diff --git a/lib/yabeda/gc/version.rb b/lib/yabeda/gc/version.rb index 5fb7c0a..2b2f359 100644 --- a/lib/yabeda/gc/version.rb +++ b/lib/yabeda/gc/version.rb @@ -2,6 +2,6 @@ module Yabeda module GC - VERSION = "0.3.0" + VERSION = "0.4.0" end end diff --git a/spec/yabeda/gc_spec.rb b/spec/yabeda/gc_spec.rb index b40a04d..4cc1cfd 100644 --- a/spec/yabeda/gc_spec.rb +++ b/spec/yabeda/gc_spec.rb @@ -7,7 +7,7 @@ subject { Yabeda.collect! } - ::GC.stat.each_key do |stat_name| + GC.stat.each_key do |stat_name| it "tracks #{stat_name}" do expect { subject }.to(update_yabeda_gauge(Yabeda.gc.__send__(stat_name)).with(be_a(Integer))) end