logstash-output-status 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69b0b8f8d17f2f0633ba711d0d2f1f77b1f8c582
4
- data.tar.gz: 1769b9b45bb5732de9751abc301d3079f7dc6e52
3
+ metadata.gz: 7ef51a99856a4d00e6d9196347f58408a8fedd96
4
+ data.tar.gz: 49392a61f8af1d34169f12627ee99d79866c4b0d
5
5
  SHA512:
6
- metadata.gz: 1ed5bc0383582ff03a8d362c6120755b00c83e830b4098434a690bf410656dea34b58c6a865af2b0fe7078dc61871291c6a1e7d379b3d83336ed7b9d7e65389d
7
- data.tar.gz: 619747c5289a11b6d047b7952d07e59a0b61c34178d4e6edf86ebaaff61f115b97d2db9d0227dc8e23213a8d9749da8da45da1a23829281d55a4210484392891
6
+ metadata.gz: 00b8ab538f0c2c4632dcae1a0115edb878ac4c2bc8089031a26bca048b5db289f9be02fbec4f35b8122577cc3453a52071c2b2b54fad434391e66244f5705eb6
7
+ data.tar.gz: 9db99fc450035edb0616c2959cb88f417eb5b278be646136dc6cafd5bab7b85a67825bf96fb690687e05657c4cef4daa4cfc98cae244ff6d68291ba1067504fc
data/README.md CHANGED
@@ -6,6 +6,12 @@ This output plugin stores the last event, and serves it as HTTP, in JSON.
6
6
 
7
7
  This code use copy/paste oriented programmation, from http input and elapsed filter.
8
8
 
9
+ # Install
10
+
11
+ You can install the stable gem with this command
12
+
13
+ /opt/logstash/bin/plugin install logstash-output-status
14
+
9
15
  # Example
10
16
 
11
17
  ```
@@ -95,7 +95,7 @@ class LogStash::Outputs::Status < LogStash::Outputs::Base
95
95
  use(Rack::Auth::Basic, &auth) if auth
96
96
  run(p)
97
97
  end
98
- @pid = @server.run
98
+ @server.run
99
99
  end # def register
100
100
 
101
101
  public
@@ -110,7 +110,10 @@ class LogStash::Outputs::Status < LogStash::Outputs::Base
110
110
  public
111
111
 
112
112
  def close
113
- @pid.join
114
- @server.graceful_shutdown
113
+ return unless @server
114
+ @server.stop(true)
115
+ @server.binder.close if @server.binder
116
+ rescue IOError
117
+ # do nothing
115
118
  end # def close
116
119
  end # class LogStash::Outputs::Status
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-status'
3
- s.version = "0.1.1"
3
+ s.version = "0.1.2"
4
4
  s.licenses = ["Apache License (2.0)"]
5
5
  s.summary = "Http output status for monitoring"
6
6
  s.description = ""
@@ -16,7 +16,7 @@ describe LogStash::Outputs::Status do
16
16
  subject { output.receive(sample_event) }
17
17
 
18
18
  it 'returns a string' do
19
- expect(output.lastbeat).to notnil
19
+ expect(output.lastbeat).not_to be_nil
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-status
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - athoune