logstash-core 1.5.0.beta2-java → 1.5.0-java

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of logstash-core might be problematic. Click here for more details.

Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/lib/logstash-core.rb +2 -0
  3. data/lib/logstash/agent.rb +0 -41
  4. data/lib/logstash/config/config_ast.rb +62 -29
  5. data/lib/logstash/config/mixin.rb +3 -3
  6. data/lib/logstash/environment.rb +37 -100
  7. data/lib/logstash/event.rb +32 -20
  8. data/lib/logstash/filters/base.rb +20 -0
  9. data/lib/logstash/java_integration.rb +72 -18
  10. data/lib/logstash/namespace.rb +0 -3
  11. data/lib/logstash/outputs/base.rb +1 -1
  12. data/lib/logstash/patches/bundler.rb +20 -0
  13. data/lib/logstash/patches/rubygems.rb +37 -0
  14. data/lib/logstash/pipeline.rb +59 -39
  15. data/lib/logstash/runner.rb +4 -50
  16. data/lib/logstash/util.rb +0 -1
  17. data/lib/logstash/util/accessors.rb +6 -0
  18. data/lib/logstash/version.rb +1 -1
  19. data/locales/en.yml +5 -0
  20. data/logstash-core.gemspec +51 -0
  21. data/spec/core/conditionals_spec.rb +428 -0
  22. data/spec/core/config_mixin_spec.rb +99 -0
  23. data/spec/core/config_spec.rb +108 -0
  24. data/spec/core/environment_spec.rb +44 -0
  25. data/spec/core/event_spec.rb +473 -0
  26. data/spec/core/pipeline_spec.rb +198 -0
  27. data/spec/core/plugin_spec.rb +106 -0
  28. data/spec/core/runner_spec.rb +39 -0
  29. data/spec/core/timestamp_spec.rb +83 -0
  30. data/spec/filters/base_spec.rb +318 -0
  31. data/spec/inputs/base_spec.rb +13 -0
  32. data/spec/lib/logstash/bundler_spec.rb +120 -0
  33. data/spec/lib/logstash/java_integration_spec.rb +257 -0
  34. data/spec/logstash/agent_spec.rb +37 -0
  35. data/spec/outputs/base_spec.rb +47 -0
  36. data/spec/spec_helper.rb +1 -0
  37. data/spec/util/accessors_spec.rb +215 -0
  38. data/spec/util/charset_spec.rb +74 -0
  39. data/spec/util/fieldeval_spec.rb +96 -0
  40. data/spec/util/gemfile_spec.rb +212 -0
  41. data/spec/util/json_spec.rb +97 -0
  42. data/spec/util/plugin_version_spec.rb +48 -0
  43. data/spec/util/retryable_spec.rb +145 -0
  44. data/spec/util_spec.rb +34 -0
  45. metadata +96 -253
  46. data/lib/logstash-event.rb +0 -2
  47. data/lib/logstash.rb +0 -4
  48. data/lib/logstash/JRUBY-PR1448.rb +0 -32
  49. data/lib/logstash/bundler.rb +0 -124
  50. data/lib/logstash/gemfile.rb +0 -175
  51. data/lib/logstash/pluginmanager.rb +0 -17
  52. data/lib/logstash/pluginmanager/install.rb +0 -112
  53. data/lib/logstash/pluginmanager/list.rb +0 -38
  54. data/lib/logstash/pluginmanager/main.rb +0 -22
  55. data/lib/logstash/pluginmanager/maven_tools_patch.rb +0 -12
  56. data/lib/logstash/pluginmanager/uninstall.rb +0 -49
  57. data/lib/logstash/pluginmanager/update.rb +0 -50
  58. data/lib/logstash/pluginmanager/util.rb +0 -88
@@ -0,0 +1,97 @@
1
+ # encoding: utf-8
2
+ require "spec_helper"
3
+ require "logstash/json"
4
+ require "logstash/environment"
5
+ require "logstash/util"
6
+
7
+ describe LogStash::Json do
8
+
9
+ let(:hash) {{"a" => 1}}
10
+ let(:json_hash) {"{\"a\":1}"}
11
+
12
+ let(:string) {"foobar"}
13
+ let(:json_string) {"\"foobar\""}
14
+
15
+ let(:array) {["foo", "bar"]}
16
+ let(:json_array) {"[\"foo\",\"bar\"]"}
17
+
18
+ let(:multi) {
19
+ [
20
+ {:ruby => "foo bar baz", :json => "\"foo bar baz\""},
21
+ {:ruby => "1", :json => "\"1\""},
22
+ {:ruby => {"a" => true}, :json => "{\"a\":true}"},
23
+ {:ruby => {"a" => nil}, :json => "{\"a\":null}"},
24
+ {:ruby => ["a", "b"], :json => "[\"a\",\"b\"]"},
25
+ {:ruby => [1, 2], :json => "[1,2]"},
26
+ {:ruby => [1, nil], :json => "[1,null]"},
27
+ {:ruby => {"a" => [1, 2]}, :json => "{\"a\":[1,2]}"},
28
+ {:ruby => {"a" => {"b" => 2}}, :json => "{\"a\":{\"b\":2}}"},
29
+ # {:ruby => , :json => },
30
+ ]
31
+ }
32
+
33
+ if LogStash::Environment.jruby?
34
+
35
+ ### JRuby specific
36
+
37
+ context "jruby deserialize" do
38
+ it "should respond to load and deserialize object" do
39
+ expect(JrJackson::Raw).to receive(:parse_raw).with(json_hash).and_call_original
40
+ expect(LogStash::Json.load(json_hash)).to eql(hash)
41
+ end
42
+ end
43
+
44
+ context "jruby serialize" do
45
+ it "should respond to dump and serialize object" do
46
+ expect(JrJackson::Json).to receive(:dump).with(string).and_call_original
47
+ expect(LogStash::Json.dump(string)).to eql(json_string)
48
+ end
49
+
50
+ it "should call JrJackson::Raw.generate for Hash" do
51
+ expect(JrJackson::Raw).to receive(:generate).with(hash).and_call_original
52
+ expect(LogStash::Json.dump(hash)).to eql(json_hash)
53
+ end
54
+
55
+ it "should call JrJackson::Raw.generate for Array" do
56
+ expect(JrJackson::Raw).to receive(:generate).with(array).and_call_original
57
+ expect(LogStash::Json.dump(array)).to eql(json_array)
58
+ end
59
+
60
+ end
61
+
62
+ else
63
+
64
+ ### MRI specific
65
+
66
+ it "should respond to load and deserialize object on mri" do
67
+ expect(Oj).to receive(:load).with(json).and_call_original
68
+ expect(LogStash::Json.load(json)).to eql(hash)
69
+ end
70
+
71
+ it "should respond to dump and serialize object on mri" do
72
+ expect(Oj).to receive(:dump).with(hash, anything).and_call_original
73
+ expect(LogStash::Json.dump(hash)).to eql(json)
74
+ end
75
+ end
76
+
77
+ ### non specific
78
+
79
+ it "should correctly deserialize" do
80
+ multi.each do |test|
81
+ # because JrJackson in :raw mode uses Java::JavaUtil::LinkedHashMap and
82
+ # Java::JavaUtil::ArrayList, we must cast to compare.
83
+ # other than that, they quack like their Ruby equivalent
84
+ expect(LogStash::Util.normalize(LogStash::Json.load(test[:json]))).to eql(test[:ruby])
85
+ end
86
+ end
87
+
88
+ it "should correctly serialize" do
89
+ multi.each do |test|
90
+ expect(LogStash::Json.dump(test[:ruby])).to eql(test[:json])
91
+ end
92
+ end
93
+
94
+ it "should raise Json::ParserError on invalid json" do
95
+ expect{LogStash::Json.load("abc")}.to raise_error LogStash::Json::ParserError
96
+ end
97
+ end
@@ -0,0 +1,48 @@
1
+ require "spec_helper"
2
+ require "logstash/util/plugin_version"
3
+
4
+ describe LogStash::Util::PluginVersion do
5
+ subject { LogStash::Util::PluginVersion }
6
+
7
+ context "#find_version!" do
8
+ it 'raises an PluginNoVersionError if we cant find the plugin in the gem path' do
9
+ dummy_name ='this-character-doesnt-exist-in-the-marvel-universe'
10
+ expect { subject.find_version!(dummy_name) }.to raise_error(LogStash::PluginNoVersionError)
11
+ end
12
+
13
+ it 'returns the version of the gem' do
14
+ expect { subject.find_version!('bundler') }.not_to raise_error
15
+ end
16
+ end
17
+
18
+ context "#new" do
19
+ it 'accepts a Gem::Version instance as argument' do
20
+ version = Gem::Version.new('1.0.1')
21
+ expect(subject.new(version).to_s).to eq(version.to_s)
22
+ end
23
+
24
+ it 'accepts an array for defining the version' do
25
+ version = subject.new(1, 0, 2)
26
+ expect(version.to_s).to eq('1.0.2')
27
+ end
28
+ end
29
+
30
+ context "When comparing instances" do
31
+ it 'allow to check if the version is newer or older' do
32
+ old_version = subject.new(0, 1, 0)
33
+ new_version = subject.new(1, 0, 1)
34
+
35
+ expect(old_version).to be < new_version
36
+ expect(old_version).to be <= new_version
37
+ expect(new_version).to be > old_version
38
+ expect(new_version).to be >= old_version
39
+ end
40
+
41
+ it 'return true if the version are equal' do
42
+ version1 = subject.new(0, 1, 0)
43
+ version2 = subject.new(0, 1, 0)
44
+
45
+ expect(version1).to eq(version2)
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,145 @@
1
+ require "logstash/util/retryable"
2
+ require "insist"
3
+
4
+ describe LogStash::Retryable do
5
+ class C
6
+ include LogStash::Retryable
7
+ end
8
+
9
+ class E < StandardError; end;
10
+ class F < StandardError; end;
11
+
12
+ subject do
13
+ C.new.tap do |c|
14
+ c.stub(:sleep)
15
+ end
16
+ end
17
+
18
+ context "with default fixed 1 second retry sleep" do
19
+
20
+ it "should execute once" do
21
+ subject.should_receive(:sleep).never
22
+ expect(subject.retryable(:rescue => nil){|i| expect(i).to eq(0); "foo"}).to eq("foo")
23
+ end
24
+
25
+ it "should not retry on non rescued exceptions" do
26
+ i = 0
27
+ subject.should_receive(:sleep).never
28
+ expect{subject.retryable(:rescue => E){ i += 1; raise F}}.to raise_error(F)
29
+ expect(i).to eq(1)
30
+ end
31
+
32
+ it "should execute once and retry once by default" do
33
+ i = 0
34
+ subject.should_receive(:sleep).once.with(1)
35
+ expect{subject.retryable{i += 1; raise E}}.to raise_error(E)
36
+ expect(i).to eq(2)
37
+ end
38
+
39
+ it "should retry on rescued exceptions" do
40
+ i = 0
41
+ subject.should_receive(:sleep).once.with(1)
42
+ expect{subject.retryable(:rescue => E){ i += 1; raise E}}.to raise_error(E)
43
+ expect(i).to eq(2)
44
+ end
45
+
46
+ it "should retry indefinitely" do
47
+ i = 0
48
+ subject.should_receive(:sleep).exactly(50).times.with(1)
49
+ expect{subject.retryable(:tries => 0, :rescue => E){ i += 1; raise i <= 50 ? E : F}}.to raise_error(F)
50
+ end
51
+
52
+ it "should execute once and retry once by default and execute on_retry callback" do
53
+ i = 0
54
+ callback_values = []
55
+
56
+ callback = lambda do |retry_count, e|
57
+ callback_values << [retry_count, e]
58
+ end
59
+
60
+ subject.should_receive(:sleep).once.with(1)
61
+
62
+ expect do
63
+ subject.retryable(:on_retry => callback){i += 1; raise E}
64
+ end.to raise_error
65
+
66
+ expect(i).to eq(2)
67
+
68
+ expect(callback_values.size).to eq(1)
69
+ expect(callback_values[0][0]).to eq(1)
70
+ expect(callback_values[0][1]).to be_a(E)
71
+ end
72
+
73
+ it "should execute once and retry n times" do
74
+ i = 0
75
+ n = 3
76
+ subject.should_receive(:sleep).exactly(n).times.with(1)
77
+ expect{subject.retryable(:tries => n){i += 1; raise E}}.to raise_error(E)
78
+ expect(i).to eq(n + 1)
79
+ end
80
+
81
+ it "should execute once and retry n times and execute on_retry callback" do
82
+ i = 0
83
+ n = 3
84
+ callback_values = []
85
+
86
+ callback = lambda do |retry_count, e|
87
+ callback_values << [retry_count, e]
88
+ end
89
+
90
+ subject.should_receive(:sleep).exactly(n).times.with(1)
91
+
92
+ expect do
93
+ subject.retryable(:tries => n, :on_retry => callback){i += 1; raise E}
94
+ end.to raise_error
95
+
96
+ expect(i).to eq(n + 1)
97
+
98
+ expect(callback_values.size).to eq(n)
99
+ n.times.each do |j|
100
+ expect(callback_values[j].first).to eq(j + 1)
101
+ expect(callback_values[j].last).to be_a(E)
102
+ end
103
+ end
104
+ end
105
+
106
+ context "with exponential backoff" do
107
+
108
+ it "should execute once and retry once with base sleep by default" do
109
+ subject.should_receive(:sleep).once.with(2)
110
+ expect do
111
+ subject.retryable(:base_sleep => 2, :max_sleep => 10){raise E}
112
+ end.to raise_error(E)
113
+ end
114
+
115
+ it "should execute once and retry n times with exponential backoff sleep" do
116
+ n = 3
117
+ s = 0.5
118
+
119
+ n.times.each do |i|
120
+ subject.should_receive(:sleep).once.with(s * (2 ** i)).ordered
121
+ end
122
+ expect do
123
+ subject.retryable(:tries => n, :base_sleep => s, :max_sleep => 100){raise E}
124
+ end.to raise_error(E)
125
+ end
126
+
127
+ it "should execute once and retry n times with exponential backoff sleep capping at max_sleep" do
128
+ n = 20
129
+ base_sleep = 0.1
130
+ max_sleep = 1
131
+
132
+ subject.should_receive(:sleep).once.with(0.1).ordered
133
+ subject.should_receive(:sleep).once.with(0.2).ordered
134
+ subject.should_receive(:sleep).once.with(0.4).ordered
135
+ subject.should_receive(:sleep).once.with(0.8).ordered
136
+ (n - 4).times.each do |i|
137
+ subject.should_receive(:sleep).once.with(1).ordered
138
+ end
139
+ expect do
140
+ subject.retryable(:tries => n, :base_sleep => base_sleep, :max_sleep => max_sleep){raise E}
141
+ end.to raise_error(E)
142
+ end
143
+ end
144
+
145
+ end
@@ -0,0 +1,34 @@
1
+ require 'spec_helper'
2
+
3
+ require "logstash/util"
4
+
5
+ describe LogStash::Util do
6
+
7
+ context "stringify_keys" do
8
+ it "should convert hash symbol keys to strings" do
9
+ expect(LogStash::Util.stringify_symbols({:a => 1, "b" => 2})).to eq({"a" => 1, "b" => 2})
10
+ end
11
+
12
+ it "should keep non symbolic hash keys as is" do
13
+ expect(LogStash::Util.stringify_symbols({1 => 1, 2.0 => 2})).to eq({1 => 1, 2.0 => 2})
14
+ end
15
+
16
+ it "should convert inner hash keys to strings" do
17
+ expect(LogStash::Util.stringify_symbols({:a => 1, "b" => {:c => 3}})).to eq({"a" => 1, "b" => {"c" => 3}})
18
+ expect(LogStash::Util.stringify_symbols([:a, 1, "b", {:c => 3}])).to eq(["a", 1, "b", {"c" => 3}])
19
+ end
20
+
21
+ it "should convert hash symbol values to strings" do
22
+ expect(LogStash::Util.stringify_symbols({:a => :a, "b" => :b})).to eq({"a" => "a", "b" => "b"})
23
+ end
24
+
25
+ it "should convert array symbol values to strings" do
26
+ expect(LogStash::Util.stringify_symbols([1, :a])).to eq([1, "a"])
27
+ end
28
+
29
+ it "should convert innner array symbol values to strings" do
30
+ expect(LogStash::Util.stringify_symbols({:a => [1, :b]})).to eq({"a" => [1, "b"]})
31
+ expect(LogStash::Util.stringify_symbols([:a, [1, :b]])).to eq(["a", [1, "b"]])
32
+ end
33
+ end
34
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0.beta2
4
+ version: 1.5.0
5
5
  platform: java
6
6
  authors:
7
7
  - Jordan Sissel
@@ -10,330 +10,134 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-02-26 00:00:00.000000000 Z
13
+ date: 2015-05-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: cabin
17
- version_requirements: !ruby/object:Gem::Requirement
18
- requirements:
19
- - - '>='
20
- - !ruby/object:Gem::Version
21
- version: 0.7.0
22
16
  requirement: !ruby/object:Gem::Requirement
23
17
  requirements:
24
- - - '>='
18
+ - - ~>
25
19
  - !ruby/object:Gem::Version
26
20
  version: 0.7.0
21
+ name: cabin
27
22
  prerelease: false
28
23
  type: :runtime
29
- - !ruby/object:Gem::Dependency
30
- name: pry
31
24
  version_requirements: !ruby/object:Gem::Requirement
32
25
  requirements:
33
- - - '>='
34
- - !ruby/object:Gem::Version
35
- version: '0'
36
- requirement: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - '>='
26
+ - - ~>
39
27
  - !ruby/object:Gem::Version
40
- version: '0'
41
- prerelease: false
42
- type: :runtime
28
+ version: 0.7.0
43
29
  - !ruby/object:Gem::Dependency
44
- name: stud
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - '>='
48
- - !ruby/object:Gem::Version
49
- version: '0'
50
30
  requirement: !ruby/object:Gem::Requirement
51
31
  requirements:
52
- - - '>='
32
+ - - ~>
53
33
  - !ruby/object:Gem::Version
54
- version: '0'
34
+ version: 0.10.1
35
+ name: pry
55
36
  prerelease: false
56
37
  type: :runtime
57
- - !ruby/object:Gem::Dependency
58
- name: clamp
59
38
  version_requirements: !ruby/object:Gem::Requirement
60
39
  requirements:
61
- - - '>='
62
- - !ruby/object:Gem::Version
63
- version: '0'
64
- requirement: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '>='
40
+ - - ~>
67
41
  - !ruby/object:Gem::Version
68
- version: '0'
69
- prerelease: false
70
- type: :runtime
42
+ version: 0.10.1
71
43
  - !ruby/object:Gem::Dependency
72
- name: filesize
73
- version_requirements: !ruby/object:Gem::Requirement
74
- requirements:
75
- - - '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
44
  requirement: !ruby/object:Gem::Requirement
79
45
  requirements:
80
- - - '>='
46
+ - - ~>
81
47
  - !ruby/object:Gem::Version
82
- version: '0'
48
+ version: 0.0.19
49
+ name: stud
83
50
  prerelease: false
84
51
  type: :runtime
85
- - !ruby/object:Gem::Dependency
86
- name: treetop
87
52
  version_requirements: !ruby/object:Gem::Requirement
88
53
  requirements:
89
54
  - - ~>
90
55
  - !ruby/object:Gem::Version
91
- version: 1.4.0
92
- requirement: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ~>
95
- - !ruby/object:Gem::Version
96
- version: 1.4.0
97
- prerelease: false
98
- type: :runtime
56
+ version: 0.0.19
99
57
  - !ruby/object:Gem::Dependency
100
- name: i18n
101
- version_requirements: !ruby/object:Gem::Requirement
102
- requirements:
103
- - - '='
104
- - !ruby/object:Gem::Version
105
- version: 0.6.9
106
58
  requirement: !ruby/object:Gem::Requirement
107
59
  requirements:
108
- - - '='
60
+ - - ~>
109
61
  - !ruby/object:Gem::Version
110
- version: 0.6.9
62
+ version: 0.6.5
63
+ name: clamp
111
64
  prerelease: false
112
65
  type: :runtime
113
- - !ruby/object:Gem::Dependency
114
- name: ftw
115
66
  version_requirements: !ruby/object:Gem::Requirement
116
67
  requirements:
117
68
  - - ~>
118
69
  - !ruby/object:Gem::Version
119
- version: 0.0.40
120
- requirement: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ~>
123
- - !ruby/object:Gem::Version
124
- version: 0.0.40
125
- prerelease: false
126
- type: :runtime
70
+ version: 0.6.5
127
71
  - !ruby/object:Gem::Dependency
128
- name: mime-types
129
- version_requirements: !ruby/object:Gem::Requirement
130
- requirements:
131
- - - '>='
132
- - !ruby/object:Gem::Version
133
- version: '0'
134
72
  requirement: !ruby/object:Gem::Requirement
135
73
  requirements:
136
- - - '>='
74
+ - - '='
137
75
  - !ruby/object:Gem::Version
138
- version: '0'
76
+ version: 0.0.4
77
+ name: filesize
139
78
  prerelease: false
140
79
  type: :runtime
141
- - !ruby/object:Gem::Dependency
142
- name: rack
143
80
  version_requirements: !ruby/object:Gem::Requirement
144
81
  requirements:
145
- - - '>='
146
- - !ruby/object:Gem::Version
147
- version: '0'
148
- requirement: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - '>='
82
+ - - '='
151
83
  - !ruby/object:Gem::Version
152
- version: '0'
153
- prerelease: false
154
- type: :runtime
84
+ version: 0.0.4
155
85
  - !ruby/object:Gem::Dependency
156
- name: sinatra
157
- version_requirements: !ruby/object:Gem::Requirement
158
- requirements:
159
- - - '>='
160
- - !ruby/object:Gem::Version
161
- version: '0'
162
86
  requirement: !ruby/object:Gem::Requirement
163
87
  requirements:
164
- - - '>='
88
+ - - <
165
89
  - !ruby/object:Gem::Version
166
- version: '0'
90
+ version: 1.5.0
91
+ name: treetop
167
92
  prerelease: false
168
93
  type: :runtime
169
- - !ruby/object:Gem::Dependency
170
- name: jar-dependencies
171
94
  version_requirements: !ruby/object:Gem::Requirement
172
95
  requirements:
173
- - - '='
174
- - !ruby/object:Gem::Version
175
- version: 0.1.7
176
- requirement: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - '='
96
+ - - <
179
97
  - !ruby/object:Gem::Version
180
- version: 0.1.7
181
- prerelease: false
182
- type: :runtime
98
+ version: 1.5.0
183
99
  - !ruby/object:Gem::Dependency
184
- name: ruby-maven
185
- version_requirements: !ruby/object:Gem::Requirement
186
- requirements:
187
- - - '='
188
- - !ruby/object:Gem::Version
189
- version: 3.1.1.0.8
190
100
  requirement: !ruby/object:Gem::Requirement
191
101
  requirements:
192
102
  - - '='
193
103
  - !ruby/object:Gem::Version
194
- version: 3.1.1.0.8
104
+ version: 0.6.9
105
+ name: i18n
195
106
  prerelease: false
196
107
  type: :runtime
197
- - !ruby/object:Gem::Dependency
198
- name: maven-tools
199
108
  version_requirements: !ruby/object:Gem::Requirement
200
109
  requirements:
201
110
  - - '='
202
111
  - !ruby/object:Gem::Version
203
- version: 1.0.7
204
- requirement: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - '='
207
- - !ruby/object:Gem::Version
208
- version: 1.0.7
209
- prerelease: false
210
- type: :runtime
112
+ version: 0.6.9
211
113
  - !ruby/object:Gem::Dependency
212
- name: minitar
213
- version_requirements: !ruby/object:Gem::Requirement
214
- requirements:
215
- - - '>='
216
- - !ruby/object:Gem::Version
217
- version: '0'
218
114
  requirement: !ruby/object:Gem::Requirement
219
115
  requirements:
220
- - - '>='
116
+ - - ~>
221
117
  - !ruby/object:Gem::Version
222
- version: '0'
118
+ version: 0.5.4
119
+ name: minitar
223
120
  prerelease: false
224
121
  type: :runtime
225
- - !ruby/object:Gem::Dependency
226
- name: file-dependencies
227
122
  version_requirements: !ruby/object:Gem::Requirement
228
123
  requirements:
229
- - - '='
230
- - !ruby/object:Gem::Version
231
- version: 0.1.6
232
- requirement: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - '='
124
+ - - ~>
235
125
  - !ruby/object:Gem::Version
236
- version: 0.1.6
237
- prerelease: false
238
- type: :runtime
126
+ version: 0.5.4
239
127
  - !ruby/object:Gem::Dependency
240
- name: jruby-httpclient
241
- version_requirements: !ruby/object:Gem::Requirement
242
- requirements:
243
- - - '>='
244
- - !ruby/object:Gem::Version
245
- version: '0'
246
128
  requirement: !ruby/object:Gem::Requirement
247
129
  requirements:
248
- - - '>='
130
+ - - ~>
249
131
  - !ruby/object:Gem::Version
250
- version: '0'
251
- prerelease: false
252
- type: :runtime
253
- - !ruby/object:Gem::Dependency
132
+ version: 0.2.8
254
133
  name: jrjackson
255
- version_requirements: !ruby/object:Gem::Requirement
256
- requirements:
257
- - - '>='
258
- - !ruby/object:Gem::Version
259
- version: '0'
260
- requirement: !ruby/object:Gem::Requirement
261
- requirements:
262
- - - '>='
263
- - !ruby/object:Gem::Version
264
- version: '0'
265
134
  prerelease: false
266
135
  type: :runtime
267
- - !ruby/object:Gem::Dependency
268
- name: rspec
269
136
  version_requirements: !ruby/object:Gem::Requirement
270
137
  requirements:
271
138
  - - ~>
272
139
  - !ruby/object:Gem::Version
273
- version: 2.14.0
274
- requirement: !ruby/object:Gem::Requirement
275
- requirements:
276
- - - ~>
277
- - !ruby/object:Gem::Version
278
- version: 2.14.0
279
- prerelease: false
280
- type: :development
281
- - !ruby/object:Gem::Dependency
282
- name: logstash-devutils
283
- version_requirements: !ruby/object:Gem::Requirement
284
- requirements:
285
- - - '>='
286
- - !ruby/object:Gem::Version
287
- version: '0'
288
- requirement: !ruby/object:Gem::Requirement
289
- requirements:
290
- - - '>='
291
- - !ruby/object:Gem::Version
292
- version: '0'
293
- prerelease: false
294
- type: :development
295
- - !ruby/object:Gem::Dependency
296
- name: ci_reporter
297
- version_requirements: !ruby/object:Gem::Requirement
298
- requirements:
299
- - - '='
300
- - !ruby/object:Gem::Version
301
- version: 1.9.3
302
- requirement: !ruby/object:Gem::Requirement
303
- requirements:
304
- - - '='
305
- - !ruby/object:Gem::Version
306
- version: 1.9.3
307
- prerelease: false
308
- type: :development
309
- - !ruby/object:Gem::Dependency
310
- name: simplecov
311
- version_requirements: !ruby/object:Gem::Requirement
312
- requirements:
313
- - - '>='
314
- - !ruby/object:Gem::Version
315
- version: '0'
316
- requirement: !ruby/object:Gem::Requirement
317
- requirements:
318
- - - '>='
319
- - !ruby/object:Gem::Version
320
- version: '0'
321
- prerelease: false
322
- type: :development
323
- - !ruby/object:Gem::Dependency
324
- name: coveralls
325
- version_requirements: !ruby/object:Gem::Requirement
326
- requirements:
327
- - - '>='
328
- - !ruby/object:Gem::Version
329
- version: '0'
330
- requirement: !ruby/object:Gem::Requirement
331
- requirements:
332
- - - '>='
333
- - !ruby/object:Gem::Version
334
- version: '0'
335
- prerelease: false
336
- type: :development
140
+ version: 0.2.8
337
141
  description: The core components of logstash, the scalable log and event management tool
338
142
  email:
339
143
  - jls@semicomplete.com
@@ -343,11 +147,8 @@ executables: []
343
147
  extensions: []
344
148
  extra_rdoc_files: []
345
149
  files:
346
- - lib/logstash-event.rb
347
- - lib/logstash.rb
348
- - lib/logstash/JRUBY-PR1448.rb
150
+ - lib/logstash-core.rb
349
151
  - lib/logstash/agent.rb
350
- - lib/logstash/bundler.rb
351
152
  - lib/logstash/codecs/base.rb
352
153
  - lib/logstash/config/config_ast.rb
353
154
  - lib/logstash/config/file.rb
@@ -358,7 +159,6 @@ files:
358
159
  - lib/logstash/errors.rb
359
160
  - lib/logstash/event.rb
360
161
  - lib/logstash/filters/base.rb
361
- - lib/logstash/gemfile.rb
362
162
  - lib/logstash/inputs/base.rb
363
163
  - lib/logstash/inputs/threadable.rb
364
164
  - lib/logstash/java_integration.rb
@@ -369,18 +169,12 @@ files:
369
169
  - lib/logstash/outputs/base.rb
370
170
  - lib/logstash/patches.rb
371
171
  - lib/logstash/patches/bugfix_jruby_2558.rb
172
+ - lib/logstash/patches/bundler.rb
372
173
  - lib/logstash/patches/cabin.rb
373
174
  - lib/logstash/patches/profile_require_calls.rb
175
+ - lib/logstash/patches/rubygems.rb
374
176
  - lib/logstash/pipeline.rb
375
177
  - lib/logstash/plugin.rb
376
- - lib/logstash/pluginmanager.rb
377
- - lib/logstash/pluginmanager/install.rb
378
- - lib/logstash/pluginmanager/list.rb
379
- - lib/logstash/pluginmanager/main.rb
380
- - lib/logstash/pluginmanager/maven_tools_patch.rb
381
- - lib/logstash/pluginmanager/uninstall.rb
382
- - lib/logstash/pluginmanager/update.rb
383
- - lib/logstash/pluginmanager/util.rb
384
178
  - lib/logstash/program.rb
385
179
  - lib/logstash/runner.rb
386
180
  - lib/logstash/sized_queue.rb
@@ -400,7 +194,32 @@ files:
400
194
  - lib/logstash/util/socket_peer.rb
401
195
  - lib/logstash/version.rb
402
196
  - locales/en.yml
403
- homepage: http://logstash.net/
197
+ - logstash-core.gemspec
198
+ - spec/core/conditionals_spec.rb
199
+ - spec/core/config_mixin_spec.rb
200
+ - spec/core/config_spec.rb
201
+ - spec/core/environment_spec.rb
202
+ - spec/core/event_spec.rb
203
+ - spec/core/pipeline_spec.rb
204
+ - spec/core/plugin_spec.rb
205
+ - spec/core/runner_spec.rb
206
+ - spec/core/timestamp_spec.rb
207
+ - spec/filters/base_spec.rb
208
+ - spec/inputs/base_spec.rb
209
+ - spec/lib/logstash/bundler_spec.rb
210
+ - spec/lib/logstash/java_integration_spec.rb
211
+ - spec/logstash/agent_spec.rb
212
+ - spec/outputs/base_spec.rb
213
+ - spec/spec_helper.rb
214
+ - spec/util/accessors_spec.rb
215
+ - spec/util/charset_spec.rb
216
+ - spec/util/fieldeval_spec.rb
217
+ - spec/util/gemfile_spec.rb
218
+ - spec/util/json_spec.rb
219
+ - spec/util/plugin_version_spec.rb
220
+ - spec/util/retryable_spec.rb
221
+ - spec/util_spec.rb
222
+ homepage: http://www.elastic.co/guide/en/logstash/current/index.html
404
223
  licenses:
405
224
  - Apache License (2.0)
406
225
  metadata: {}
@@ -415,13 +234,37 @@ required_ruby_version: !ruby/object:Gem::Requirement
415
234
  version: '0'
416
235
  required_rubygems_version: !ruby/object:Gem::Requirement
417
236
  requirements:
418
- - - '>'
237
+ - - '>='
419
238
  - !ruby/object:Gem::Version
420
- version: 1.3.1
239
+ version: '0'
421
240
  requirements: []
422
241
  rubyforge_project:
423
242
  rubygems_version: 2.4.5
424
243
  signing_key:
425
244
  specification_version: 4
426
245
  summary: logstash-core - The core components of logstash
427
- test_files: []
246
+ test_files:
247
+ - spec/core/conditionals_spec.rb
248
+ - spec/core/config_mixin_spec.rb
249
+ - spec/core/config_spec.rb
250
+ - spec/core/environment_spec.rb
251
+ - spec/core/event_spec.rb
252
+ - spec/core/pipeline_spec.rb
253
+ - spec/core/plugin_spec.rb
254
+ - spec/core/runner_spec.rb
255
+ - spec/core/timestamp_spec.rb
256
+ - spec/filters/base_spec.rb
257
+ - spec/inputs/base_spec.rb
258
+ - spec/lib/logstash/bundler_spec.rb
259
+ - spec/lib/logstash/java_integration_spec.rb
260
+ - spec/logstash/agent_spec.rb
261
+ - spec/outputs/base_spec.rb
262
+ - spec/spec_helper.rb
263
+ - spec/util/accessors_spec.rb
264
+ - spec/util/charset_spec.rb
265
+ - spec/util/fieldeval_spec.rb
266
+ - spec/util/gemfile_spec.rb
267
+ - spec/util/json_spec.rb
268
+ - spec/util/plugin_version_spec.rb
269
+ - spec/util/retryable_spec.rb
270
+ - spec/util_spec.rb