presto-metrics 0.6.0 → 0.6.2
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 +4 -4
- data/.github/dependabot.yaml +9 -0
- data/.github/release-drafter.yml +3 -4
- data/.github/workflows/publisher.yml +2 -8
- data/.github/workflows/release-drafter.yml +1 -1
- data/.github/workflows/ruby.yml +1 -1
- data/.gitignore +1 -0
- data/README.md +9 -5
- data/Rakefile +15 -0
- data/lib/presto/metrics/version.rb +1 -1
- data/presto-metrics.gemspec +0 -1
- metadata +3 -17
- data/Gemfile.lock +0 -92
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ed7caf06b33dc66c0a471ad821ce1424b29e443710b6845d38c65aa9dcb690bf
|
|
4
|
+
data.tar.gz: ae4b548f513909d15db4e2bc55f069192c3d2d0fd8e8a5e4ebb8a6058a9e3fd8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 157cebf9b3cd905afdbe68822ff9c17c437004e9be76e9f45fb9ce9a27baedbcae10f9f887b5bd6647cf53fa48d64ea6bcb020b6a1e8bc3d92b42ae2d86b24d1
|
|
7
|
+
data.tar.gz: 8c5f62072e7633d4230d52efc3ac2ab426f370f7dadee4d0a3770480f0bd3519b3dd842bfabae8137ee17b7b74e70d1278193c314f0c89d43a90b8fd8e3c3426
|
data/.github/release-drafter.yml
CHANGED
|
@@ -13,13 +13,13 @@ categories:
|
|
|
13
13
|
labels:
|
|
14
14
|
- 'deprecation'
|
|
15
15
|
- title: '⛓ Dependency Updates'
|
|
16
|
-
|
|
16
|
+
labels:
|
|
17
17
|
- 'library-update'
|
|
18
18
|
- 'test-library-update'
|
|
19
19
|
- 'sbt-plugin-update'
|
|
20
20
|
- 'dependencies'
|
|
21
21
|
- title: '🛠 Internal Updates'
|
|
22
|
-
|
|
22
|
+
labels:
|
|
23
23
|
- 'internal'
|
|
24
24
|
- 'kaizen'
|
|
25
25
|
- title: '📚 Docs'
|
|
@@ -36,11 +36,10 @@ autolabeler:
|
|
|
36
36
|
- label: 'doc'
|
|
37
37
|
files:
|
|
38
38
|
- '*.md'
|
|
39
|
-
- '*.yaml'
|
|
40
39
|
- label: 'bug'
|
|
41
40
|
title:
|
|
42
41
|
- '/fix/i'
|
|
43
42
|
- label: 'deprecation'
|
|
44
43
|
title:
|
|
45
44
|
- '/deprecate/i'
|
|
46
|
-
|
|
45
|
+
|
|
@@ -17,19 +17,13 @@ jobs:
|
|
|
17
17
|
runs-on: ubuntu-latest
|
|
18
18
|
steps:
|
|
19
19
|
# Set up
|
|
20
|
-
- uses: actions/checkout@
|
|
20
|
+
- uses: actions/checkout@v6
|
|
21
21
|
with:
|
|
22
22
|
persist-credentials: false
|
|
23
23
|
- name: Set up Ruby
|
|
24
24
|
uses: ruby/setup-ruby@v1
|
|
25
25
|
with:
|
|
26
|
-
bundler-cache:
|
|
26
|
+
bundler-cache: true
|
|
27
27
|
ruby-version: 3.2
|
|
28
|
-
- name: Install gem packages
|
|
29
|
-
run: |
|
|
30
|
-
gem install bundler
|
|
31
|
-
bundle config set frozen true
|
|
32
|
-
bundle install --jobs 4 --retry 3
|
|
33
|
-
|
|
34
28
|
# Release
|
|
35
29
|
- uses: rubygems/release-gem@v1
|
|
@@ -23,6 +23,6 @@ jobs:
|
|
|
23
23
|
runs-on: ubuntu-latest
|
|
24
24
|
steps:
|
|
25
25
|
# Drafts your next Release notes as Pull Requests are merged into "master"
|
|
26
|
-
- uses: release-drafter/release-drafter@
|
|
26
|
+
- uses: release-drafter/release-drafter@v7
|
|
27
27
|
env:
|
|
28
28
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.github/workflows/ruby.yml
CHANGED
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -29,7 +29,7 @@ require 'presto/metrics'
|
|
|
29
29
|
client = Presto::Metrics::Client.new # Access to http://localhost:8080 in default
|
|
30
30
|
|
|
31
31
|
# Alternatively, you can specify the host name and port number to use
|
|
32
|
-
client = Presto::Metrics::Client.new(:host => "localhost", :port=>8080)
|
|
32
|
+
client = Presto::Metrics::Client.new(:host => "localhost", :port=>8080)
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
client.os_metrics
|
|
@@ -205,7 +205,7 @@ pp client.gc_g1_metrics
|
|
|
205
205
|
# Retrieve the JSON representation of JMX properties
|
|
206
206
|
client.get_mbean_json("java.lang:Type=Memory")
|
|
207
207
|
|
|
208
|
-
# Pretty print
|
|
208
|
+
# Pretty print
|
|
209
209
|
require 'pp'
|
|
210
210
|
pp c.memory_usage_metrics
|
|
211
211
|
#{
|
|
@@ -253,8 +253,12 @@ irb> load "presto/metrics/client.rb"
|
|
|
253
253
|
|
|
254
254
|
|
|
255
255
|
### Releasing a new version
|
|
256
|
+
|
|
257
|
+
Releases are published to RubyGems automatically via [rubygems/release-gem](https://github.com/rubygems/release-gem) when a version tag is pushed.
|
|
258
|
+
`bundle exec rake release` is no longer required manually — CI runs it internally.
|
|
259
|
+
|
|
256
260
|
```
|
|
257
|
-
|
|
258
|
-
# Publish to RubyGem
|
|
259
|
-
$ bundle exec rake release
|
|
261
|
+
$ bundle exec rake bump[X.Y.Z]
|
|
260
262
|
```
|
|
263
|
+
|
|
264
|
+
This updates `lib/presto/metrics/version.rb`, commits the change, creates a `vX.Y.Z` tag, and pushes both — triggering CI to publish to RubyGems automatically.
|
data/Rakefile
CHANGED
|
@@ -9,3 +9,18 @@ desc "Open an irb session preloaded with this library"
|
|
|
9
9
|
task :console do
|
|
10
10
|
sh "irb -I lib -r presto/metrics.rb"
|
|
11
11
|
end
|
|
12
|
+
|
|
13
|
+
desc "Bump version, commit, tag, and push to trigger CI release. Usage: rake bump[X.Y.Z]"
|
|
14
|
+
task :bump, [:version] do |_, args|
|
|
15
|
+
version = args[:version] or raise "Usage: rake bump[X.Y.Z]"
|
|
16
|
+
|
|
17
|
+
file = "lib/presto/metrics/version.rb"
|
|
18
|
+
content = File.read(file).gsub(/VERSION = ".*"/, %(VERSION = "#{version}"))
|
|
19
|
+
File.write(file, content)
|
|
20
|
+
|
|
21
|
+
sh "git add #{file}"
|
|
22
|
+
sh "git commit -m 'chore: bump version to #{version}'"
|
|
23
|
+
sh "git tag v#{version}"
|
|
24
|
+
sh "git push origin master"
|
|
25
|
+
sh "git push origin v#{version}"
|
|
26
|
+
end
|
data/presto-metrics.gemspec
CHANGED
|
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
|
|
21
21
|
spec.required_ruby_version = ">= 3.2.0"
|
|
22
22
|
|
|
23
|
-
spec.add_development_dependency "bundler", "~> 2.0"
|
|
24
23
|
spec.add_development_dependency "rake", "~> 13.0"
|
|
25
24
|
spec.add_development_dependency "rspec"
|
|
26
25
|
spec.add_development_dependency "presto-client", '~> 0.5.6'
|
metadata
CHANGED
|
@@ -1,29 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: presto-metrics
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Taro L. Saito
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-06-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: bundler
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '2.0'
|
|
20
|
-
type: :development
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - "~>"
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '2.0'
|
|
27
13
|
- !ruby/object:Gem::Dependency
|
|
28
14
|
name: rake
|
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -116,6 +102,7 @@ executables: []
|
|
|
116
102
|
extensions: []
|
|
117
103
|
extra_rdoc_files: []
|
|
118
104
|
files:
|
|
105
|
+
- ".github/dependabot.yaml"
|
|
119
106
|
- ".github/release-drafter.yml"
|
|
120
107
|
- ".github/workflows/publisher.yml"
|
|
121
108
|
- ".github/workflows/release-drafter.yml"
|
|
@@ -125,7 +112,6 @@ files:
|
|
|
125
112
|
- ".standard.yml"
|
|
126
113
|
- ".standard_todo.yml"
|
|
127
114
|
- Gemfile
|
|
128
|
-
- Gemfile.lock
|
|
129
115
|
- LICENSE.txt
|
|
130
116
|
- README.md
|
|
131
117
|
- Rakefile
|
data/Gemfile.lock
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
presto-metrics (0.6.0)
|
|
5
|
-
httparty
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
ast (2.4.3)
|
|
11
|
-
bigdecimal (3.2.2)
|
|
12
|
-
csv (3.3.5)
|
|
13
|
-
diff-lcs (1.6.2)
|
|
14
|
-
faraday (0.17.6)
|
|
15
|
-
multipart-post (>= 1.2, < 3)
|
|
16
|
-
httparty (0.23.1)
|
|
17
|
-
csv
|
|
18
|
-
mini_mime (>= 1.0.0)
|
|
19
|
-
multi_xml (>= 0.5.2)
|
|
20
|
-
httpclient (2.9.0)
|
|
21
|
-
mutex_m
|
|
22
|
-
json (2.13.2)
|
|
23
|
-
mini_mime (1.1.5)
|
|
24
|
-
msgpack (1.8.0)
|
|
25
|
-
multi_xml (0.7.2)
|
|
26
|
-
bigdecimal (~> 3.1)
|
|
27
|
-
multipart-post (2.4.1)
|
|
28
|
-
mutex_m (0.3.0)
|
|
29
|
-
parallel (1.27.0)
|
|
30
|
-
parser (3.3.9.0)
|
|
31
|
-
ast (~> 2.4.1)
|
|
32
|
-
racc
|
|
33
|
-
presto-client (0.5.14)
|
|
34
|
-
faraday (~> 0.12)
|
|
35
|
-
msgpack (>= 0.7.0)
|
|
36
|
-
prism (1.4.0)
|
|
37
|
-
racc (1.8.1)
|
|
38
|
-
rainbow (3.1.1)
|
|
39
|
-
rake (13.3.0)
|
|
40
|
-
regexp_parser (2.11.0)
|
|
41
|
-
rexml (3.4.1)
|
|
42
|
-
rspec (3.13.1)
|
|
43
|
-
rspec-core (~> 3.13.0)
|
|
44
|
-
rspec-expectations (~> 3.13.0)
|
|
45
|
-
rspec-mocks (~> 3.13.0)
|
|
46
|
-
rspec-core (3.13.5)
|
|
47
|
-
rspec-support (~> 3.13.0)
|
|
48
|
-
rspec-expectations (3.13.5)
|
|
49
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
50
|
-
rspec-support (~> 3.13.0)
|
|
51
|
-
rspec-mocks (3.13.5)
|
|
52
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
53
|
-
rspec-support (~> 3.13.0)
|
|
54
|
-
rspec-support (3.13.4)
|
|
55
|
-
rubocop (1.35.1)
|
|
56
|
-
json (~> 2.3)
|
|
57
|
-
parallel (~> 1.10)
|
|
58
|
-
parser (>= 3.1.2.1)
|
|
59
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
60
|
-
regexp_parser (>= 1.8, < 3.0)
|
|
61
|
-
rexml (>= 3.2.5, < 4.0)
|
|
62
|
-
rubocop-ast (>= 1.20.1, < 2.0)
|
|
63
|
-
ruby-progressbar (~> 1.7)
|
|
64
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
|
65
|
-
rubocop-ast (1.46.0)
|
|
66
|
-
parser (>= 3.3.7.2)
|
|
67
|
-
prism (~> 1.4)
|
|
68
|
-
rubocop-performance (1.14.3)
|
|
69
|
-
rubocop (>= 1.7.0, < 2.0)
|
|
70
|
-
rubocop-ast (>= 0.4.0)
|
|
71
|
-
ruby-progressbar (1.13.0)
|
|
72
|
-
standard (1.16.1)
|
|
73
|
-
rubocop (= 1.35.1)
|
|
74
|
-
rubocop-performance (= 1.14.3)
|
|
75
|
-
unicode-display_width (2.6.0)
|
|
76
|
-
|
|
77
|
-
PLATFORMS
|
|
78
|
-
x86_64-darwin-21
|
|
79
|
-
x86_64-darwin-23
|
|
80
|
-
x86_64-linux
|
|
81
|
-
|
|
82
|
-
DEPENDENCIES
|
|
83
|
-
bundler (~> 2.0)
|
|
84
|
-
httpclient
|
|
85
|
-
presto-client (~> 0.5.6)
|
|
86
|
-
presto-metrics!
|
|
87
|
-
rake (~> 13.0)
|
|
88
|
-
rspec
|
|
89
|
-
standard (~> 1.16.0)
|
|
90
|
-
|
|
91
|
-
BUNDLED WITH
|
|
92
|
-
2.6.2
|