presto-metrics 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/release-drafter.yml +46 -0
- data/.github/workflows/release-drafter.yml +28 -0
- data/.github/workflows/ruby.yml +29 -0
- data/lib/presto/metrics/client.rb +2 -2
- data/lib/presto/metrics/version.rb +1 -1
- data/spec/presto/metrics_spec.rb +1 -1
- metadata +9 -7
- data/.travis.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07b09253d19db63f7192abd07f217eed522201929bf985a6aff036893221d267
|
4
|
+
data.tar.gz: 5379697b19af0934adf5a2540586f026ff1569bc1ae96d334e7fc1a10f66e508
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c85e271f8320a2341f442d4e541d0f1a7cd145e1cb6449c95f72e69b4912c6bd5009282551af65ea618454d231baf5f6b03717feb2b4ed975ca7fef18b8b54e
|
7
|
+
data.tar.gz: 3e43ca2218aed00a262663460da3c6ed84324b0abb5f56b02fbd4c62994eab550e2e924f329d5bd709a003facc71b1af66d8daf364f5dc275e1496b791a9a665
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
name-template: 'v$RESOLVED_VERSION'
|
3
|
+
tag-template: 'v$RESOLVED_VERSION'
|
4
|
+
categories:
|
5
|
+
- title: '🚀 Features'
|
6
|
+
labels:
|
7
|
+
- 'feature'
|
8
|
+
- 'enhancement'
|
9
|
+
- title: '🐛 Bug Fixes'
|
10
|
+
labels:
|
11
|
+
- 'bug'
|
12
|
+
- title: '👋 Deprecated'
|
13
|
+
labels:
|
14
|
+
- 'deprecation'
|
15
|
+
- title: '⛓ Dependency Updates'
|
16
|
+
label:
|
17
|
+
- 'library-update'
|
18
|
+
- 'test-library-update'
|
19
|
+
- 'sbt-plugin-update'
|
20
|
+
- 'dependencies'
|
21
|
+
- title: '🛠 Internal Updates'
|
22
|
+
label:
|
23
|
+
- 'internal'
|
24
|
+
- 'kaizen'
|
25
|
+
- title: '📚 Docs'
|
26
|
+
labels:
|
27
|
+
- 'doc'
|
28
|
+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
|
29
|
+
|
30
|
+
template: |
|
31
|
+
## What's Changed
|
32
|
+
$CHANGES
|
33
|
+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
|
34
|
+
|
35
|
+
autolabeler:
|
36
|
+
- label: 'doc'
|
37
|
+
files:
|
38
|
+
- '*.md'
|
39
|
+
- '*.yaml'
|
40
|
+
- label: 'bug'
|
41
|
+
title:
|
42
|
+
- '/fix/i'
|
43
|
+
- label: 'deprecation'
|
44
|
+
title:
|
45
|
+
- '/deprecate/i'
|
46
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
---
|
2
|
+
name: Release Drafter
|
3
|
+
|
4
|
+
on:
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- master
|
8
|
+
pull_request:
|
9
|
+
# Only following types are handled by the action, but one can default to all as well
|
10
|
+
types: [opened, reopened, synchronize]
|
11
|
+
# pull_request_target event is required for autolabeler to support PRs from forks
|
12
|
+
pull_request_target:
|
13
|
+
types: [opened, reopened, synchronize]
|
14
|
+
|
15
|
+
permissions:
|
16
|
+
contents: read
|
17
|
+
|
18
|
+
jobs:
|
19
|
+
update_release_draft:
|
20
|
+
permissions:
|
21
|
+
contents: write
|
22
|
+
pull-requests: write
|
23
|
+
runs-on: ubuntu-latest
|
24
|
+
steps:
|
25
|
+
# Drafts your next Release notes as Pull Requests are merged into "master"
|
26
|
+
- uses: release-drafter/release-drafter@v5
|
27
|
+
env:
|
28
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
---
|
2
|
+
name: unit tests
|
3
|
+
|
4
|
+
on:
|
5
|
+
push:
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
build:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
strategy:
|
11
|
+
max-parallel: 4
|
12
|
+
matrix:
|
13
|
+
ruby-version: ["2.6", "2.7", "3.0", "3.1"]
|
14
|
+
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v3
|
17
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: ${{ matrix.ruby-version }}
|
21
|
+
- name: Install gem packages
|
22
|
+
run: |
|
23
|
+
gem install bundler
|
24
|
+
bundle install --jobs 4 --retry 3
|
25
|
+
bundle exec gem dependency -R
|
26
|
+
|
27
|
+
- name: test with Rake
|
28
|
+
run: |
|
29
|
+
bundle exec rake spec
|
@@ -80,7 +80,8 @@ module Presto
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def get(path, default='{}')
|
83
|
-
|
83
|
+
parser = URI::Parser.new
|
84
|
+
resp = HTTParty.get(parser.escape("#{@endpoint}#{path}"), headers: @headers)
|
84
85
|
if resp.code == 200
|
85
86
|
resp.body
|
86
87
|
else
|
@@ -253,4 +254,3 @@ module Presto
|
|
253
254
|
end
|
254
255
|
end
|
255
256
|
end
|
256
|
-
|
data/spec/presto/metrics_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: presto-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taro L. Saito
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -102,9 +102,11 @@ executables: []
|
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
|
+
- ".github/release-drafter.yml"
|
106
|
+
- ".github/workflows/release-drafter.yml"
|
107
|
+
- ".github/workflows/ruby.yml"
|
105
108
|
- ".gitignore"
|
106
109
|
- ".rspec"
|
107
|
-
- ".travis.yml"
|
108
110
|
- Gemfile
|
109
111
|
- LICENSE.txt
|
110
112
|
- README.md
|
@@ -120,7 +122,7 @@ homepage: https://github.com/xerial/presto-metrics
|
|
120
122
|
licenses:
|
121
123
|
- MIT
|
122
124
|
metadata: {}
|
123
|
-
post_install_message:
|
125
|
+
post_install_message:
|
124
126
|
rdoc_options: []
|
125
127
|
require_paths:
|
126
128
|
- lib
|
@@ -135,8 +137,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
137
|
- !ruby/object:Gem::Version
|
136
138
|
version: '0'
|
137
139
|
requirements: []
|
138
|
-
rubygems_version: 3.
|
139
|
-
signing_key:
|
140
|
+
rubygems_version: 3.3.7
|
141
|
+
signing_key:
|
140
142
|
specification_version: 4
|
141
143
|
summary: A library for collecting metrics of Presto, a distributed SQL engine
|
142
144
|
test_files:
|
data/.travis.yml
DELETED