logstash-input-graphite 2.0.2 → 2.0.3

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: 5f5a55f6d8be2888ade12a770059967edc2775d7
4
- data.tar.gz: dc31a79474dfa2772cdf890fb1f5b9ffdfae1730
3
+ metadata.gz: 5516dd5899c069a2fdf3bbbf2e9e7b17d047562c
4
+ data.tar.gz: 0df234b36b4773300c8d8ab5adc2f7c6db873789
5
5
  SHA512:
6
- metadata.gz: 0a78ab75b268e6522ee48a5560ced4ee56077498772c2226f69adb4540283af8a014fca6971d10718bbe681c828b6b12362ca78a9d457a66b632bd2655ce2cbf
7
- data.tar.gz: 21b4e79616d9531da9cee6dad53ea654e21b5b78054cebd022754b7caf024ec72468ca853d1f0844761530dfa2eb3c746a52a6057d3d1b0a853479fc77105747
6
+ metadata.gz: 1a61edf17f052e6fa7d8cddb7630da22dde44bcccee4c062141683dc74de50fabb398072cc80c9809f5b9aca69f49f2cbb1ee2ee78e12741311aa255dc664be9
7
+ data.tar.gz: 8e4473e8c8943404b54560553dc296c49ae365457636d3a732508f7658a5bbf40c8d1227b435598fccc1548583b888e2cd9e001ac3d67b7ad2d00affbbd31801
@@ -1,5 +1,9 @@
1
+ ## 2.0.3
2
+ - fixed specs for time handling
3
+
1
4
  ## 2.0.2
2
5
  - added comments and basic specs
6
+
3
7
  ## 2.0.0
4
8
  - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
5
9
  instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-graphite'
4
- s.version = '2.0.2'
4
+ s.version = '2.0.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Receive graphite metrics"
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"
@@ -51,8 +51,8 @@ describe LogStash::Inputs::Graphite do
51
51
  end
52
52
 
53
53
  it "should support using N as current timestamp" do
54
- time = LogStash::Timestamp.new(Time.now)
55
- expect(Time).to receive(:now) { time }
54
+ time = LogStash::Timestamp.now
55
+ expect(LogStash::Timestamp).to receive(:now) { time }
56
56
  result = helper.pipelineless_input(subject, 1) do
57
57
  client.write "a.b.c 10 N\n"
58
58
  end
@@ -61,12 +61,12 @@ describe LogStash::Inputs::Graphite do
61
61
  end
62
62
 
63
63
  it "should support using N as current timestamp" do
64
- time = Time.at(Time.now.to_i) # truncate at the second
64
+ time = Time.now
65
65
  result = helper.pipelineless_input(subject, 1) do
66
66
  client.write "a.b.c 10 #{time.to_i}\n"
67
67
  end
68
68
  expect(result.size).to eq(1)
69
- expect(result.first["@timestamp"]).to eq(LogStash::Timestamp.new(time))
69
+ expect(result.first["@timestamp"]).to eq(LogStash::Timestamp.at(time.to_i))
70
70
  end
71
71
  end
72
72
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
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-08 00:00:00.000000000 Z
11
+ date: 2015-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core
@@ -68,8 +68,8 @@ files:
68
68
  - spec/spec_helper.rb
69
69
  - spec/inputs/graphite_spec.rb
70
70
  - logstash-input-graphite.gemspec
71
- - CHANGELOG.md
72
71
  - README.md
72
+ - CHANGELOG.md
73
73
  - CONTRIBUTORS
74
74
  - Gemfile
75
75
  - LICENSE