yabeda-gc 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c337d68cc03ab7eee36fee5099064219db6813a34dc6d27a1d081f61bdcabcc3
4
- data.tar.gz: a92f805c82d86f1e9025e96cb5e59bc05df81d9a52b51d563267b6a290d23bc9
3
+ metadata.gz: 0c15161b50122262318a3fde5329b9c7ffa4ec75c4d358ae2248bd60007e7139
4
+ data.tar.gz: 9d343e04a8c27b38ada68a6b4a3b606b0defe8f4bfc603702b4959057083ea00
5
5
  SHA512:
6
- metadata.gz: b0a27895b91e36e5c276c531df511c76a885212eee6657613fb2c2e99031560c9fa5df4926156f8c1d9cb0183a9d38873c169ebfdae9c9004ba692e1093b815e
7
- data.tar.gz: 8b0f9d5ac117b8e293a155ca4627116493bc020d591c4a7c748e76086acf84d0d1c7b91348f1d0a203368811fe04697f44047ed2131e582ed405a5b6e4feef88
6
+ metadata.gz: a97ed85bbf2991ba54bf7fe6e350ca06a90f8b3bd07f0f53a85fa3d61219203f6ec12920b8d30fcea96c1993dafcdbd8a004a82f43443f13e080a3204a70f6df
7
+ data.tar.gz: 86aec667687e9b97b7b95e08486135f37593be016916ea8e0baf4bc648e392ddea7fc9de63a3bc4142c4a43d76fe63844ff0f0591d18f6be85c398df2317f0b9
@@ -0,0 +1,23 @@
1
+ name: Linters
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - '**'
8
+ tags-ignore:
9
+ - 'v*'
10
+
11
+ jobs:
12
+ build:
13
+ name: Rubocop
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+ - name: Set up Ruby
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: 3.1
21
+ bundler-cache: true
22
+ - name: Run Rubocop
23
+ run: bundle exec rake rubocop
@@ -0,0 +1,27 @@
1
+ name: Tests
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - '**'
8
+ tags-ignore:
9
+ - 'v*'
10
+
11
+ jobs:
12
+ build:
13
+ name: "Ruby ${{ matrix.ruby }}"
14
+ runs-on: ubuntu-latest
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ ruby: ['2.7', '3.0', '3.1', head]
19
+ steps:
20
+ - uses: actions/checkout@v3
21
+ - name: Set up Ruby
22
+ uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby }}
25
+ bundler-cache: true
26
+ - name: Run tests via RSpec
27
+ run: bundle exec rake spec
data/Gemfile CHANGED
@@ -4,6 +4,8 @@ source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
6
 
7
+ gem "yabeda", "~> 0.11" # Version with test adapter and RSpec matchers
8
+
7
9
  gem "pry", "~> 0.14"
8
10
  gem "rake", "~> 13.0"
9
11
  gem "rspec", "~> 3.11"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yabeda-gc (0.2.0)
4
+ yabeda-gc (0.2.1)
5
5
  yabeda (~> 0.6)
6
6
 
7
7
  GEM
@@ -66,6 +66,7 @@ DEPENDENCIES
66
66
  rake (~> 13.0)
67
67
  rspec (~> 3.11)
68
68
  rubocop (~> 1.30)
69
+ yabeda (~> 0.11)
69
70
  yabeda-gc!
70
71
 
71
72
  BUNDLED WITH
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yabeda
4
4
  module GC
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
  end
data/lib/yabeda/gc.rb CHANGED
@@ -51,6 +51,8 @@ module Yabeda
51
51
  gauge :total_moved_objects, tags: [], comment: "The total number of objects compaction has moved"
52
52
  end
53
53
 
54
+ gauge :time, tags: [], comment: "The total time spent in garbage collections" if RUBY_VERSION >= "3.1"
55
+
54
56
  collect do
55
57
  stats = ::GC.stat
56
58
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yabeda-gc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Ker-Seymer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-21 00:00:00.000000000 Z
11
+ date: 2022-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yabeda
@@ -31,7 +31,8 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - ".github/workflows/main.yml"
34
+ - ".github/workflows/lint.yml"
35
+ - ".github/workflows/test.yml"
35
36
  - ".gitignore"
36
37
  - ".rspec"
37
38
  - ".rubocop.yml"
@@ -1,18 +0,0 @@
1
- name: Ruby
2
-
3
- on: [push,pull_request]
4
-
5
- jobs:
6
- build:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - uses: actions/checkout@v2
10
- - name: Set up Ruby
11
- uses: ruby/setup-ruby@v1
12
- with:
13
- ruby-version: 2.6.6
14
- - name: Run the default task
15
- run: |
16
- gem install bundler -v 2.2.11
17
- bundle install
18
- bundle exec rake