syslogstash 1.2.0 → 1.2.1

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
  SHA1:
3
- metadata.gz: ca1a0168110eec37aff3b2a88a22219b68ab198f
4
- data.tar.gz: 9313e0158213fe941008f4c246c0a78a17271dfd
3
+ metadata.gz: 8407c841448a421b3948446b9980a4eb1dc6c7b2
4
+ data.tar.gz: 00d0f2f8ac268b1592a7777ff899be48809eadc6
5
5
  SHA512:
6
- metadata.gz: 1583881a837c53b0732110d5ee35858d874a486842bf03f6ec49f582030b4ac2b2cb4641c437a8112bea8048ee97881cab8e9040624c52a07579030bdbb3f133
7
- data.tar.gz: 142599f19b0be339dd1b21ef987dd8068f399f4197cdcc574044b53cbb37d62e8ee0c70c16987c12002179a98be376d99b982ea311054d9e6558789aa5d4d2f8
6
+ metadata.gz: c9749f538a6db87fc4d933686faef303c988970211c610290641a5bb5fc985038ab5125aceda97c5824b3873fa9c8b6d972719294614bd332b071d91134c093d
7
+ data.tar.gz: 3063d255e5f42ec8bdede78ff3a2718ff4ca9054442b4209d8dbaf501826fe3a676d148b0a2f89963b0864c3f8dfe13bf8475d6682793a74986f3d9463355c38
@@ -1,5 +1,5 @@
1
- require 'prometheus/client/rack/exporter'
2
1
  require 'rack'
2
+ require 'prometheus/middleware/exporter'
3
3
  require 'rack/handler/webrick'
4
4
  require 'logger'
5
5
 
@@ -44,7 +44,7 @@ class Syslogstash::PrometheusExporter
44
44
  def run
45
45
  @thread = Thread.new do
46
46
  app = Rack::Builder.new
47
- app.use Prometheus::Client::Rack::Exporter
47
+ app.use Prometheus::Middleware::Exporter
48
48
  app.run ->(env) { [404, {'Content-Type' => 'text/plain'}, ['Nope']] }
49
49
 
50
50
  logger = Logger.new($stderr)
data/syslogstash.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
 
24
24
  s.required_ruby_version = ">= 2.1.0"
25
25
 
26
- s.add_runtime_dependency 'prometheus-client'
26
+ s.add_runtime_dependency 'prometheus-client', '>= 0.7'
27
27
  s.add_runtime_dependency 'rack'
28
28
 
29
29
  s.add_development_dependency 'bundler'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syslogstash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '0.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '0.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement