prometheus_parser 0.2.2 → 0.2.3

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: eae0090340e5e75bc4059d47898962094be94992045a40d052d64b7f2a597529
4
- data.tar.gz: 8d784b2bfeeafc754ce3e4ca6e94c6226244bd95d78d18c22c38be6477d59f4e
3
+ metadata.gz: 9f0a8810f45fd59f739072c5498e66cdd0e4c3f1ffe85efaaa91e3a9ae4b68f5
4
+ data.tar.gz: 27ee84027584d8cbe2dd2e4e9a77973b3d6af00632256dd5edd1227d39fd4c24
5
5
  SHA512:
6
- metadata.gz: 800a596c7ac13a61456dd3fa1dac58ffbbdf93c0803ce219adf7bad3da3e70f93123372eb7d9752d96b439c7a89e6069a729e4ff2d9f7df3db03f3d966d74f65
7
- data.tar.gz: c504a7427741e0615178a0699e732e4094301260ae24987e17ccdcb8bd7a3b0d0f00a17cbfdd8c8fd82e16cc0ce6dcbd116af62b79a5a7f684871a52ac2f5a88
6
+ metadata.gz: c29e27461fe5734fa0917546eeb9cbe0777123a09639e2c221c846c2b5f9ea91ae62eebe251db85c798e5c6128c8d80c54d022b3b2b85c0a7a66fd84d789a8a0
7
+ data.tar.gz: d4b5a15260166cddfc965c595cca124d95d6b9beddd5aa2ea394330b75454ea94e5e950bd2a01b6ab9521c9dc420680607c06b43ebf3815d21d9149ebdce67b7
@@ -20,7 +20,12 @@ class PrometheusParser
20
20
  end
21
21
  key = s.scan KEY_RE
22
22
  raise Invalid unless key
23
- attrs = parse_attrs(s)
23
+ begin
24
+ attrs = parse_attrs(s)
25
+ rescue Invalid
26
+ s.scan(/.*\n/)
27
+ next
28
+ end
24
29
  value = s.scan VALUE_RE
25
30
  raise Invalid unless value
26
31
  value = value.to_f
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "prometheus_parser"
3
- s.version = "0.2.2"
3
+ s.version = "0.2.3"
4
4
  s.summary = "Parse prometheus metrics"
5
5
  s.authors = ["Magnus Landerblom"]
6
6
  s.email = "mange@84codes.com"
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.2
4
+ version: 0.2.3
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-05-11 00:00:00.000000000 Z
11
+ date: 2023-05-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: mange@84codes.com