logstash-core 7.0.0.rc2-java → 7.0.1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/compiler/lscl.rb +1 -1
- data/lib/logstash/runner.rb +2 -0
- data/lib/logstash/settings.rb +24 -0
- data/logstash-core.gemspec +1 -0
- data/spec/logstash/settings/deprecated_and_renamed_spec.rb +19 -0
- data/versions-gem-copy.yml +4 -4
- metadata +21 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd03158df42534c10604620e5d3ed4bec52b3ab60fe43a882dab39a8da514f2f
|
4
|
+
data.tar.gz: 79ff89c08dd2008fd09fea936f5bfd3cac980ab84a925e64e39f593ba7bbaaa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3426d6a30a3e62d4619b851b5adc21a8ca38e50827fe2fc84184a05b33ee3108a4894e566f0bfb6050f8ee397fd37e4f6c33a61eaf4011c7c4349973a25d499d
|
7
|
+
data.tar.gz: a6ca153528bdabd909c6bc0b8ba76bdee2c47d7285cab759acdb8d46ae660197bc7841a47bd94aa3bc63028e4f170c52afe1874bcfcd55ccb2c9d413692bcaa3
|
@@ -115,7 +115,7 @@ module LogStashCompilerLSCLGrammar; module LogStash; module Compiler; module LSC
|
|
115
115
|
elsif existing.kind_of?(::Array)
|
116
116
|
hash[k] = existing.push(*v)
|
117
117
|
else
|
118
|
-
hash[k] = existing
|
118
|
+
hash[k] = [existing, v] unless v == existing
|
119
119
|
end
|
120
120
|
hash
|
121
121
|
end
|
data/lib/logstash/runner.rb
CHANGED
data/lib/logstash/settings.rb
CHANGED
@@ -586,6 +586,30 @@ module LogStash
|
|
586
586
|
coerce(value)
|
587
587
|
end
|
588
588
|
end
|
589
|
+
|
590
|
+
##
|
591
|
+
# Instances of `DeprecatedSetting` can be registered, but will fail with helpful guidance when encountering any
|
592
|
+
# configuration that attempts to explicitly set the value. They should be used in the Major version immediately
|
593
|
+
# following a deprecation to assist users who are porting forward configurations.
|
594
|
+
class DeprecatedSetting < Setting
|
595
|
+
def initialize(name, guidance='please remove the setting from your configuration and try again.')
|
596
|
+
super(name, Object)
|
597
|
+
@guidance = guidance
|
598
|
+
end
|
599
|
+
|
600
|
+
def set(value)
|
601
|
+
fail(ArgumentError, "The setting `#{name}` has been deprecated and removed from Logstash; #{@guidance}")
|
602
|
+
end
|
603
|
+
end
|
604
|
+
|
605
|
+
# Useful when a setting has been renamed but otherwise is semantically identical
|
606
|
+
class DeprecatedAndRenamed < DeprecatedSetting
|
607
|
+
attr_reader :new_name
|
608
|
+
def initialize(name, new_name)
|
609
|
+
super(name, "please update your configuration to use `#{new_name}` instead.")
|
610
|
+
@new_name = new_name
|
611
|
+
end
|
612
|
+
end
|
589
613
|
end
|
590
614
|
|
591
615
|
|
data/logstash-core.gemspec
CHANGED
@@ -57,6 +57,7 @@ Gem::Specification.new do |gem|
|
|
57
57
|
gem.add_runtime_dependency "sinatra", '~> 1', '>= 1.4.6'
|
58
58
|
gem.add_runtime_dependency 'puma', '~> 2'
|
59
59
|
gem.add_runtime_dependency "jruby-openssl", "~> 0.10" # >= 0.9.13 Required to support TLSv1.2
|
60
|
+
gem.add_runtime_dependency "faraday", "~> 0.9.0" # because of conflicting dependencies between twitter input and octokit
|
60
61
|
gem.add_runtime_dependency "chronic_duration", "~> 0.10"
|
61
62
|
|
62
63
|
gem.add_runtime_dependency "treetop", "~> 1" #(MIT license)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require 'spec_helper'
|
3
|
+
require 'logstash/settings'
|
4
|
+
|
5
|
+
describe LogStash::Setting::DeprecatedAndRenamed do
|
6
|
+
subject(:setting) { described_class.new("option.deprecated", "option.current") }
|
7
|
+
let(:value) { Object.new }
|
8
|
+
|
9
|
+
describe '#set' do
|
10
|
+
it 'fails with deprecation runtime error and helpful guidance' do
|
11
|
+
expect { setting.set(value) }.to raise_exception do |exception|
|
12
|
+
expect(exception).to be_a_kind_of(ArgumentError)
|
13
|
+
expect(exception.message).to match(/deprecated and removed/)
|
14
|
+
expect(exception.message).to include("option.deprecated")
|
15
|
+
expect(exception.message).to include("option.current")
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/versions-gem-copy.yml
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
---
|
2
2
|
# alpha and beta qualifiers are now added via VERSION_QUALIFIER environment var
|
3
|
-
logstash: 7.0.
|
4
|
-
logstash-core: 7.0.
|
3
|
+
logstash: 7.0.1
|
4
|
+
logstash-core: 7.0.1
|
5
5
|
logstash-core-plugin-api: 2.1.16
|
6
6
|
|
7
7
|
# jruby must reference a *released* version of jruby which can be downloaded from the official download url
|
8
8
|
# *and* for which jars artifacts are published for compile-time
|
9
9
|
jruby:
|
10
|
-
version: 9.2.
|
11
|
-
sha1:
|
10
|
+
version: 9.2.7.0
|
11
|
+
sha1: dc35f9bb991f526f058bf6b9591c460f98cffe9e
|
12
12
|
|
13
13
|
# jruby-runtime-override, if specified, will override the jruby version installed in vendor/jruby for logstash runtime only,
|
14
14
|
# not for the compile-time jars
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,6 +162,20 @@ dependencies:
|
|
162
162
|
- - "~>"
|
163
163
|
- !ruby/object:Gem::Version
|
164
164
|
version: '0.10'
|
165
|
+
- !ruby/object:Gem::Dependency
|
166
|
+
requirement: !ruby/object:Gem::Requirement
|
167
|
+
requirements:
|
168
|
+
- - "~>"
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: 0.9.0
|
171
|
+
name: faraday
|
172
|
+
type: :runtime
|
173
|
+
prerelease: false
|
174
|
+
version_requirements: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - "~>"
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: 0.9.0
|
165
179
|
- !ruby/object:Gem::Dependency
|
166
180
|
requirement: !ruby/object:Gem::Requirement
|
167
181
|
requirements:
|
@@ -535,6 +549,7 @@ files:
|
|
535
549
|
- spec/logstash/setting_spec.rb
|
536
550
|
- spec/logstash/settings/array_coercible_spec.rb
|
537
551
|
- spec/logstash/settings/bytes_spec.rb
|
552
|
+
- spec/logstash/settings/deprecated_and_renamed_spec.rb
|
538
553
|
- spec/logstash/settings/integer_spec.rb
|
539
554
|
- spec/logstash/settings/modules_spec.rb
|
540
555
|
- spec/logstash/settings/numeric_spec.rb
|
@@ -585,12 +600,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
585
600
|
version: '0'
|
586
601
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
587
602
|
requirements:
|
588
|
-
- - "
|
603
|
+
- - ">="
|
589
604
|
- !ruby/object:Gem::Version
|
590
|
-
version:
|
605
|
+
version: '0'
|
591
606
|
requirements: []
|
592
607
|
rubyforge_project:
|
593
|
-
rubygems_version: 2.7.
|
608
|
+
rubygems_version: 2.7.9
|
594
609
|
signing_key:
|
595
610
|
specification_version: 4
|
596
611
|
summary: logstash-core - The core components of logstash
|
@@ -675,6 +690,7 @@ test_files:
|
|
675
690
|
- spec/logstash/setting_spec.rb
|
676
691
|
- spec/logstash/settings/array_coercible_spec.rb
|
677
692
|
- spec/logstash/settings/bytes_spec.rb
|
693
|
+
- spec/logstash/settings/deprecated_and_renamed_spec.rb
|
678
694
|
- spec/logstash/settings/integer_spec.rb
|
679
695
|
- spec/logstash/settings/modules_spec.rb
|
680
696
|
- spec/logstash/settings/numeric_spec.rb
|