prometheus-client-forty_two 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prometheus/forty_two/collector.rb +3 -1
- data/lib/prometheus/forty_two/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc067c4e5cb499b06381dada99d0842962c36fd8
|
4
|
+
data.tar.gz: 7f90d73d1b28855a5fee646516083cb0058b3a2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e1d67d3105b916709b76117facb652e95de5899dbd7fb5cbfc95433997e1263890b26143da4cad29de168550b940ba0479a679b88f926638c50f9d4a779eeca
|
7
|
+
data.tar.gz: eca8947fa25b3358c38425e42c36357319ab409a1edef2d3f024957f47b53a3d3487c0d1cc1c3e4e452faf2dc5f7e0c8cb805e07139292f301a16ada827fd1d3
|
@@ -83,10 +83,12 @@ module Prometheus
|
|
83
83
|
def find_static_files!(path)
|
84
84
|
return [] unless path
|
85
85
|
|
86
|
+
path = path.gsub(%r{/+\z}, '')
|
87
|
+
path_matcher = %r{\A#{Regexp.escape(path)}/}
|
86
88
|
Find
|
87
89
|
.find(path)
|
88
90
|
.select { |f| File.file?(f) }
|
89
|
-
.map { |f| f.gsub(
|
91
|
+
.map { |f| f.gsub(path_matcher, '/') }
|
90
92
|
end
|
91
93
|
end
|
92
94
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prometheus-client-forty_two
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michel Belleville
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prometheus-client
|