logstash-output-statsd 1.1.1 → 2.0.0

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: 8a0fd05fc1ce419b4c609b183803989f268572ac
4
- data.tar.gz: 55e6be1d8b5275a79542feed3baeffaa9e0f5aad
3
+ metadata.gz: d7156b6676005454808894e80d22b6720df2ce9e
4
+ data.tar.gz: 45427e43fded473145a79798aa23b1d3e14f1370
5
5
  SHA512:
6
- metadata.gz: 7444fbf96b3fe28f4e9f52a734b93484b4a984d548ca42f8e475c1247045aa695900ee1585758f60a1b80571e0bc59818740bc0e4e58475b8bdf50a45476c4ac
7
- data.tar.gz: 25f5b2b70d0def824348217f9f4e0deff78f7ffc8fffe57556c7ac28415ef476476f0ed10fe98a362c891462e8d4225fce58284aa347a1603be6f4e418904006
6
+ metadata.gz: 0b9c9c53cfb45bfe483b9987f3de8f38548cb82fc93534a1ed86355cd4af88370f9f7d2a9fe1a6d0eb054e4377663573869ac9b606f670a175e8ddef016d041f
7
+ data.tar.gz: 578c4a87e71e140d77e54ff98e0882d5aa21b502845add8f6c1fa500d5fceca1d13be6ec7e9babd3e6daa591f9afe8f5ca59b03843517bcab7a1b133bb759dee
@@ -1,5 +1,3 @@
1
- # 1.1.1
2
- - Fix randomly failing test #14
3
1
  # 1.1.0
4
2
  - improved test design to be more rspec3 friendly, including the usage
5
3
  of random ports to avoid colisions in integration test.
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-statsd'
4
- s.version = '1.1.1'
4
+ s.version = '2.0.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Send metrics to StatsD"
7
7
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = `git ls-files`.split($\)+::Dir.glob('vendor/*')
14
+ s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
15
15
 
16
16
  # Tests
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
21
21
 
22
22
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core", '>= 1.4.0', '< 2.0.0'
23
+ s.add_runtime_dependency "logstash-core", "~> 2.0.0.snapshot"
24
24
  s.add_runtime_dependency 'logstash-input-generator'
25
25
 
26
26
  s.add_runtime_dependency 'statsd-ruby', ['1.2.0']
@@ -5,10 +5,9 @@ require_relative "../spec_helper"
5
5
  describe LogStash::Outputs::Statsd do
6
6
 
7
7
  let(:host) { "localhost" }
8
- let(:port) { rand(2000..10000) }
9
- let!(:server) { StatsdServer.new.run(port) }
8
+ let(:port) { @server.port }
10
9
 
11
- describe "registration and teardown" do
10
+ describe "registration and close" do
12
11
 
13
12
  it "should register without errors" do
14
13
  output = LogStash::Plugin.lookup("output", "statsd").new
@@ -39,12 +38,7 @@ describe LogStash::Outputs::Statsd do
39
38
 
40
39
  it "should receive data send to the server" do
41
40
  subject.receive(event)
42
- # Since we are dealing with threads and networks,
43
- # we might experience delays or timing issues.
44
- # lets try a few times before giving up completely.
45
- try {
46
- expect(server.received).to include("logstash.spec.foo.bar:0.1|c")
47
- }
41
+ expect(@server.received).to include("logstash.spec.foo.bar:0.1|c")
48
42
  end
49
43
 
50
44
  end
metadata CHANGED
@@ -1,35 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-statsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-30 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - '>='
17
- - !ruby/object:Gem::Version
18
- version: 1.4.0
19
- - - <
16
+ - - ~>
20
17
  - !ruby/object:Gem::Version
21
- version: 2.0.0
18
+ version: 2.0.0.snapshot
22
19
  name: logstash-core
23
20
  prerelease: false
24
21
  type: :runtime
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - '>='
28
- - !ruby/object:Gem::Version
29
- version: 1.4.0
30
- - - <
24
+ - - ~>
31
25
  - !ruby/object:Gem::Version
32
- version: 2.0.0
26
+ version: 2.0.0.snapshot
33
27
  - !ruby/object:Gem::Dependency
34
28
  requirement: !ruby/object:Gem::Requirement
35
29
  requirements:
@@ -78,14 +72,12 @@ executables: []
78
72
  extensions: []
79
73
  extra_rdoc_files: []
80
74
  files:
81
- - .gitignore
82
75
  - CHANGELOG.md
83
76
  - CONTRIBUTORS
84
77
  - Gemfile
85
78
  - LICENSE
86
79
  - NOTICE.TXT
87
80
  - README.md
88
- - Rakefile
89
81
  - lib/logstash/outputs/statsd.rb
90
82
  - logstash-output-statsd.gemspec
91
83
  - spec/outputs/statsd_spec.rb
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- *.gem
2
- Gemfile.lock
3
- .bundle
4
- vendor
data/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- @files=[]
2
-
3
- task :default do
4
- system("rake -T")
5
- end
6
-
7
- require "logstash/devutils/rake"