prometheus_parser 0.2.1 → 0.2.2

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: 918535ab98dcacc892e9c56c11296c9d7de44b918d4c7eea687b0a59a87b4796
4
- data.tar.gz: 4079579c7abfc31b4586c452e48bbabe6ac4664e4f966668170989ea13a107b3
3
+ metadata.gz: eae0090340e5e75bc4059d47898962094be94992045a40d052d64b7f2a597529
4
+ data.tar.gz: 8d784b2bfeeafc754ce3e4ca6e94c6226244bd95d78d18c22c38be6477d59f4e
5
5
  SHA512:
6
- metadata.gz: 217e941af321f0a589bd024d207d071936660422976093c09936e60689636ca1a7add224aa67ba314edda6499ca4807a250812672e3be16c1343165ecf3a646f
7
- data.tar.gz: 2f81966025c9c6604627bc45ea4500bbc56cf1e0c1d0ce7d84ed1794b6074e7d1549bffe154110c5e2f390194831a05250a25181d2fd44a5cc7d93c318bbbd75
6
+ metadata.gz: 800a596c7ac13a61456dd3fa1dac58ffbbdf93c0803ce219adf7bad3da3e70f93123372eb7d9752d96b439c7a89e6069a729e4ff2d9f7df3db03f3d966d74f65
7
+ data.tar.gz: c504a7427741e0615178a0699e732e4094301260ae24987e17ccdcb8bd7a3b0d0f00a17cbfdd8c8fd82e16cc0ce6dcbd116af62b79a5a7f684871a52ac2f5a88
@@ -5,12 +5,12 @@ jobs:
5
5
  strategy:
6
6
  fail-fast: false
7
7
  matrix:
8
- ruby: [ 3.2.2 ]
8
+ ruby: [ 3.2 ]
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
11
  - uses: actions/checkout@v3
12
12
  - uses: ruby/setup-ruby@v1
13
13
  with:
14
+ bundler-cache: true
14
15
  ruby-version: ${{ matrix.ruby }}
15
- - run: bundle install
16
16
  - run: bundle exec rake
data/.gitignore CHANGED
@@ -1 +1,3 @@
1
1
  coverage
2
+ Gemfile.lock
3
+ .ruby-version
data/Gemfile CHANGED
@@ -1,9 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- ruby File.read(".ruby-version").strip
4
-
5
- gem "dotenv"
6
-
7
3
  group :development, :test do
8
4
  gem "bundler"
9
5
  gem "minitest"
data/Rakefile CHANGED
@@ -1,6 +1,5 @@
1
1
  require "bundler/setup"
2
2
  require "rake/testtask"
3
- require "dotenv/load"
4
3
 
5
4
  Rake::TestTask.new(:test) do |t|
6
5
  t.libs << "spec"
@@ -8,7 +8,7 @@ class PrometheusParser
8
8
  KEY_RE = /[\w:]+/
9
9
  VALUE_RE = /-?\d+\.?\d*E?-?\d*|NaN/
10
10
  ATTR_KEY_RE = /[ \w-]+/
11
- ATTR_VALUE_RE = %r{\s*"([\\"'\sa-zA-Z0-9\-_/.+~@;=]*)"\s*} # /\s*"(\S*)"\s*/
11
+ ATTR_VALUE_RE = /\s*"([^"\\]*(\\.[^"\\]*)*)"\s*/ # /\s*"(\S*)"\s*/
12
12
 
13
13
  def self.parse(raw)
14
14
  s = StringScanner.new(raw)
@@ -1,13 +1,13 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "prometheus_parser"
3
- s.version = "0.2.1"
3
+ s.version = "0.2.2"
4
4
  s.summary = "Parse prometheus metrics"
5
5
  s.authors = ["Magnus Landerblom"]
6
6
  s.email = "mange@84codes.com"
7
7
  s.files = Dir.chdir(File.expand_path(__dir__)) do
8
8
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
9
9
  end
10
- s.homepage =
10
+ s.homepage =
11
11
  "https://rubygems.org/gems/prometheus_parser"
12
- s.license = "MIT"
12
+ s.license = "MIT"
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prometheus_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus Landerblom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-25 00:00:00.000000000 Z
11
+ date: 2023-05-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: mange@84codes.com
@@ -18,9 +18,7 @@ extra_rdoc_files: []
18
18
  files:
19
19
  - ".github/workflows/ci.yml"
20
20
  - ".gitignore"
21
- - ".ruby-version"
22
21
  - Gemfile
23
- - Gemfile.lock
24
22
  - LICENSE
25
23
  - README.md
26
24
  - Rakefile
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.2.2
data/Gemfile.lock DELETED
@@ -1,52 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- ansi (1.5.0)
5
- builder (3.2.4)
6
- docile (1.4.0)
7
- dotenv (2.8.1)
8
- minitest (5.18.0)
9
- minitest-focus (1.3.1)
10
- minitest (>= 4, < 6)
11
- minitest-hooks (1.5.0)
12
- minitest (> 5.3)
13
- minitest-line (0.6.5)
14
- minitest (~> 5.0)
15
- minitest-reporters (1.6.0)
16
- ansi
17
- builder
18
- minitest (>= 5.0)
19
- ruby-progressbar
20
- rake (13.0.6)
21
- ruby-progressbar (1.13.0)
22
- simplecov (0.22.0)
23
- docile (~> 1.1)
24
- simplecov-html (~> 0.11)
25
- simplecov_json_formatter (~> 0.1)
26
- simplecov-csv (0.1.3)
27
- simplecov
28
- simplecov-html (0.12.3)
29
- simplecov-lcov (0.8.0)
30
- simplecov_json_formatter (0.1.4)
31
-
32
- PLATFORMS
33
- arm64-darwin-22
34
-
35
- DEPENDENCIES
36
- bundler
37
- dotenv
38
- minitest
39
- minitest-focus
40
- minitest-hooks
41
- minitest-line
42
- minitest-reporters
43
- rake
44
- simplecov
45
- simplecov-csv
46
- simplecov-lcov
47
-
48
- RUBY VERSION
49
- ruby 3.2.2p53
50
-
51
- BUNDLED WITH
52
- 2.4.11