logstash-devutils 2.2.1-java → 2.3.0-java
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 +4 -4
- data/CHANGELOG.md +6 -3
- data/lib/logstash/devutils/rspec/spec_helper.rb +10 -1
- data/logstash-devutils.gemspec +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ef657a14adf95e2a926763dc1fee0ad934eb0b94671cb91c25fa64401de14ad
|
4
|
+
data.tar.gz: 23c0a0173b7ca9f8e6e2dde1c388a426c28630ea50f56848b660c5f59a8fbfb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51f2121d23bdd714670035b0eb92cb134cb4a1ee424408974303b2ea272bc804654df8045a2a77a0529db8da209cedee2f4632c7be3ab645ad7d84044010fd60
|
7
|
+
data.tar.gz: 8b8341622d83cf83a93bbc0d9cfd6674d7d9e39da0bcba4690873dc1047ef33d0587985fae3b4c380b100a5aef2abc3b19a34e9b6f0ac79b933df70a44204696
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 2.3.0
|
2
|
+
- Introduce `be_a_logstash_timestamp_equivalent_to` RSpec matcher to compare LogStash::Timestamp [#99](https://github.com/elastic/logstash-devutils/pull/99)
|
3
|
+
|
1
4
|
## 2.2.1
|
2
5
|
- Fixed `LogStashHelpers#sample` to work with pipelines whose filters add, clone, and cancel events.
|
3
6
|
|
@@ -25,15 +28,15 @@
|
|
25
28
|
- [BREAKING] changes:
|
26
29
|
* `plugin_input` helper no longer works - simply fails with a not implemented error
|
27
30
|
* `type` and `tags` helpers have no effect - they will print a deprecation warning
|
28
|
-
* using gem **insist** is discouraged and has to be pulled in manually
|
31
|
+
* using gem **insist** is discouraged and has to be pulled in manually
|
29
32
|
(in *plugin.gemspec* `add_development_dependency 'insist'` and `require "insist"`)
|
30
33
|
* shared examples need to be explicitly required, as they are not re-used that much
|
31
34
|
(in spec_helper.rb `require "logstash/devutils/rspec/shared_examples"'`)
|
32
35
|
* `input` helper now yields a Queue-like collection (with `Queue#pop` blocking semantics)
|
33
|
-
with a default timeout polling mechanism to guard against potential dead-locks
|
36
|
+
with a default timeout polling mechanism to guard against potential dead-locks
|
34
37
|
|
35
38
|
## 1.3.6
|
36
|
-
- Revert the removal (e.g. add back) of the log4j spec helper. It is still needed for 5.x builds.
|
39
|
+
- Revert the removal (e.g. add back) of the log4j spec helper. It is still needed for 5.x builds.
|
37
40
|
|
38
41
|
## 1.3.5
|
39
42
|
- Fix spec helper method `input` generating an invalid `output_func` that returned `nil` instead of an array
|
@@ -38,6 +38,16 @@ else
|
|
38
38
|
LogStash::Logging::Logger::configure_logging('ERROR')
|
39
39
|
end
|
40
40
|
|
41
|
+
RSpec::Matchers.define :be_a_logstash_timestamp_equivalent_to do |expected|
|
42
|
+
# use the Timestamp compare to avoid suffering of precision loss of time format
|
43
|
+
expected = LogStash::Timestamp.new(expected) unless expected.kind_of?(LogStash::Timestamp)
|
44
|
+
description { "be a LogStash::Timestamp equivalent to #{expected}" }
|
45
|
+
|
46
|
+
match do |actual|
|
47
|
+
actual.kind_of?(LogStash::Timestamp) && actual == expected
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
41
51
|
RSpec.configure do |config|
|
42
52
|
# for now both include and extend are required because the newly refactored "input" helper method need to be visible in a "it" block
|
43
53
|
# and this is only possible by calling include on LogStashHelper
|
@@ -57,4 +67,3 @@ RSpec.configure do |config|
|
|
57
67
|
# --seed 1234
|
58
68
|
config.order = :random
|
59
69
|
end
|
60
|
-
|
data/logstash-devutils.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-devutils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,8 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: '0'
|
193
193
|
requirements: []
|
194
|
-
|
195
|
-
rubygems_version: 2.6.13
|
194
|
+
rubygems_version: 3.1.6
|
196
195
|
signing_key:
|
197
196
|
specification_version: 4
|
198
197
|
summary: An assortment of tooling/libraries to make Logstash plugin development and
|