Skip to content

Commit

Permalink
0.4.0: Automatic metric registration for all available GC stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Envek committed Nov 1, 2024
1 parent b7f5fd7 commit 877d122
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 31 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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"
56 changes: 27 additions & 29 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
yabeda-gc (0.3.0)
yabeda-gc (0.4.0)
yabeda (~> 0.6)

GEM
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/yabeda/gc/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Yabeda
module GC
VERSION = "0.3.0"
VERSION = "0.4.0"
end
end
2 changes: 1 addition & 1 deletion spec/yabeda/gc_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 877d122

Please sign in to comment.