logstash-output-jdbc 0.2.10 → 5.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +64 -0
  3. data/Gemfile +11 -0
  4. data/README.md +54 -30
  5. data/THANKS.md +18 -0
  6. data/lib/com/zaxxer/HikariCP/2.4.7/HikariCP-2.4.7.jar +0 -0
  7. data/lib/com/zaxxer/HikariCP/2.7.2/HikariCP-2.7.2.jar +0 -0
  8. data/lib/logstash-output-jdbc_jars.rb +2 -2
  9. data/lib/logstash/outputs/jdbc.rb +163 -163
  10. data/lib/org/apache/logging/log4j/log4j-api/2.6.2/log4j-api-2.6.2.jar +0 -0
  11. data/lib/org/apache/logging/log4j/log4j-api/2.9.1/log4j-api-2.9.1.jar +0 -0
  12. data/lib/org/apache/logging/log4j/log4j-core/2.9.1/log4j-core-2.9.1.jar +0 -0
  13. data/lib/org/apache/logging/log4j/log4j-slf4j-impl/2.6.2/log4j-slf4j-impl-2.6.2.jar +0 -0
  14. data/lib/org/apache/logging/log4j/log4j-slf4j-impl/2.9.1/log4j-slf4j-impl-2.9.1.jar +0 -0
  15. data/lib/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar +0 -0
  16. data/lib/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar +0 -0
  17. data/logstash-output-jdbc.gemspec +32 -0
  18. data/spec/jdbc_spec_helper.rb +216 -0
  19. data/spec/outputs/jdbc_derby_spec.rb +33 -0
  20. data/spec/outputs/jdbc_mysql_spec.rb +24 -0
  21. data/spec/outputs/jdbc_postgres_spec.rb +41 -0
  22. data/spec/outputs/jdbc_spec.rb +4 -87
  23. data/spec/outputs/jdbc_sqlite_spec.rb +26 -0
  24. data/vendor/jar-dependencies/runtime-jars/HikariCP-2.7.2.jar +0 -0
  25. data/vendor/jar-dependencies/runtime-jars/log4j-api-2.6.2.jar +0 -0
  26. data/vendor/jar-dependencies/runtime-jars/log4j-slf4j-impl-2.6.2.jar +0 -0
  27. data/vendor/jar-dependencies/runtime-jars/slf4j-api-1.7.25.jar +0 -0
  28. metadata +94 -53
  29. data/LICENSE.txt +0 -21
  30. data/lib/com/zaxxer/HikariCP/2.4.2/HikariCP-2.4.2.jar +0 -0
  31. data/lib/com/zaxxer/HikariCP/2.4.6/HikariCP-2.4.6.jar +0 -0
  32. data/lib/logstash-output-jdbc_ring-buffer.rb +0 -17
  33. data/lib/org/slf4j/slf4j-api/1.7.12/slf4j-api-1.7.12.jar +0 -0
  34. data/lib/org/slf4j/slf4j-api/1.7.16/slf4j-api-1.7.16.jar +0 -0
  35. data/lib/org/slf4j/slf4j-log4j12/1.7.13/slf4j-log4j12-1.7.13.jar +0 -0
  36. data/vendor/jar-dependencies/runtime-jars/HikariCP-2.4.2.jar +0 -0
  37. data/vendor/jar-dependencies/runtime-jars/HikariCP-2.4.6.jar +0 -0
  38. data/vendor/jar-dependencies/runtime-jars/log4j-1.2.17.jar +0 -0
  39. data/vendor/jar-dependencies/runtime-jars/slf4j-api-1.7.13.jar +0 -0
  40. data/vendor/jar-dependencies/runtime-jars/slf4j-api-1.7.16.jar +0 -0
  41. data/vendor/jar-dependencies/runtime-jars/slf4j-log4j12-1.7.21.jar +0 -0
  42. data/vendor/jar-dependencies/runtime-jars/slf4j-nop-1.7.13.jar +0 -0
@@ -0,0 +1,26 @@
1
+ require_relative '../jdbc_spec_helper'
2
+
3
+ describe 'logstash-output-jdbc: sqlite', if: ENV['JDBC_SQLITE_JAR'] do
4
+ JDBC_SQLITE_FILE = '/tmp/logstash_output_jdbc_test.db'.freeze
5
+
6
+ before(:context) do
7
+ File.delete(JDBC_SQLITE_FILE) if File.exist? JDBC_SQLITE_FILE
8
+ end
9
+
10
+ include_context 'rspec setup'
11
+ include_context 'when outputting messages'
12
+
13
+ let(:jdbc_jar_env) do
14
+ 'JDBC_SQLITE_JAR'
15
+ end
16
+
17
+ let(:jdbc_settings) do
18
+ {
19
+ 'driver_class' => 'org.sqlite.JDBC',
20
+ 'connection_string' => "jdbc:sqlite:#{JDBC_SQLITE_FILE}",
21
+ 'driver_jar_path' => ENV[jdbc_jar_env],
22
+ 'statement' => jdbc_statement,
23
+ 'max_flush_exceptions' => 1
24
+ }
25
+ end
26
+ end
metadata CHANGED
@@ -1,130 +1,171 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-jdbc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - the_angry_angel
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-07 00:00:00.000000000 Z
11
+ date: 2018-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: stud
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - '>='
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '0'
18
+ version: '1.60'
19
+ - - "<="
20
+ - !ruby/object:Gem::Version
21
+ version: '2.99'
22
+ name: logstash-core-plugin-api
23
+ prerelease: false
20
24
  type: :runtime
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.60'
30
+ - - "<="
31
+ - !ruby/object:Gem::Version
32
+ version: '2.99'
33
+ - !ruby/object:Gem::Dependency
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ name: logstash-codec-plain
21
40
  prerelease: false
41
+ type: :runtime
22
42
  version_requirements: !ruby/object:Gem::Requirement
23
43
  requirements:
24
- - - '>='
44
+ - - ">="
25
45
  - !ruby/object:Gem::Version
26
46
  version: '0'
27
47
  - !ruby/object:Gem::Dependency
28
- name: logstash-core
29
48
  requirement: !ruby/object:Gem::Requirement
30
49
  requirements:
31
- - - '>='
32
- - !ruby/object:Gem::Version
33
- version: 2.0.0
34
- - - <
50
+ - - ">="
35
51
  - !ruby/object:Gem::Version
36
- version: 3.0.0
37
- type: :runtime
52
+ version: '0'
53
+ name: logstash-devutils
38
54
  prerelease: false
55
+ type: :development
39
56
  version_requirements: !ruby/object:Gem::Requirement
40
57
  requirements:
41
- - - '>='
42
- - !ruby/object:Gem::Version
43
- version: 2.0.0
44
- - - <
58
+ - - ">="
45
59
  - !ruby/object:Gem::Version
46
- version: 3.0.0
60
+ version: '0'
47
61
  - !ruby/object:Gem::Dependency
48
- name: logstash-codec-plain
49
62
  requirement: !ruby/object:Gem::Requirement
50
63
  requirements:
51
- - - '>='
64
+ - - ">="
52
65
  - !ruby/object:Gem::Version
53
66
  version: '0'
54
- type: :runtime
67
+ name: jar-dependencies
55
68
  prerelease: false
69
+ type: :development
56
70
  version_requirements: !ruby/object:Gem::Requirement
57
71
  requirements:
58
- - - '>='
72
+ - - ">="
59
73
  - !ruby/object:Gem::Version
60
74
  version: '0'
61
75
  - !ruby/object:Gem::Dependency
62
- name: logstash-devutils
63
76
  requirement: !ruby/object:Gem::Requirement
64
77
  requirements:
65
- - - '='
78
+ - - "~>"
66
79
  - !ruby/object:Gem::Version
67
- version: 0.0.18
80
+ version: '3.3'
81
+ name: ruby-maven
82
+ prerelease: false
68
83
  type: :development
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '3.3'
89
+ - !ruby/object:Gem::Dependency
90
+ requirement: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - '='
93
+ - !ruby/object:Gem::Version
94
+ version: 0.41.2
95
+ name: rubocop
69
96
  prerelease: false
97
+ type: :development
70
98
  version_requirements: !ruby/object:Gem::Requirement
71
99
  requirements:
72
100
  - - '='
73
101
  - !ruby/object:Gem::Version
74
- version: 0.0.18
75
- description: This gem is a logstash plugin required to be installed on top of the
76
- Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not
77
- a stand-alone program
102
+ version: 0.41.2
103
+ description: This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install 'logstash-output-jdbc'. This gem is not a stand-alone program
78
104
  email: karl+github@theangryangel.co.uk
79
105
  executables: []
80
106
  extensions: []
81
107
  extra_rdoc_files: []
82
108
  files:
83
- - lib/com/zaxxer/HikariCP/2.4.2/HikariCP-2.4.2.jar
84
- - lib/com/zaxxer/HikariCP/2.4.6/HikariCP-2.4.6.jar
109
+ - CHANGELOG.md
110
+ - Gemfile
111
+ - README.md
112
+ - THANKS.md
113
+ - lib/com/zaxxer/HikariCP/2.4.7/HikariCP-2.4.7.jar
114
+ - lib/com/zaxxer/HikariCP/2.7.2/HikariCP-2.7.2.jar
85
115
  - lib/log4j/log4j/1.2.17/log4j-1.2.17.jar
86
- - lib/logstash/outputs/jdbc.rb
87
116
  - lib/logstash-output-jdbc_jars.rb
88
- - lib/logstash-output-jdbc_ring-buffer.rb
89
- - lib/org/slf4j/slf4j-api/1.7.12/slf4j-api-1.7.12.jar
90
- - lib/org/slf4j/slf4j-api/1.7.16/slf4j-api-1.7.16.jar
91
- - lib/org/slf4j/slf4j-log4j12/1.7.13/slf4j-log4j12-1.7.13.jar
117
+ - lib/logstash/outputs/jdbc.rb
118
+ - lib/org/apache/logging/log4j/log4j-api/2.6.2/log4j-api-2.6.2.jar
119
+ - lib/org/apache/logging/log4j/log4j-api/2.9.1/log4j-api-2.9.1.jar
120
+ - lib/org/apache/logging/log4j/log4j-core/2.9.1/log4j-core-2.9.1.jar
121
+ - lib/org/apache/logging/log4j/log4j-slf4j-impl/2.6.2/log4j-slf4j-impl-2.6.2.jar
122
+ - lib/org/apache/logging/log4j/log4j-slf4j-impl/2.9.1/log4j-slf4j-impl-2.9.1.jar
123
+ - lib/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar
124
+ - lib/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar
92
125
  - lib/org/slf4j/slf4j-log4j12/1.7.21/slf4j-log4j12-1.7.21.jar
93
- - vendor/jar-dependencies/runtime-jars/HikariCP-2.4.2.jar
94
- - vendor/jar-dependencies/runtime-jars/HikariCP-2.4.6.jar
95
- - vendor/jar-dependencies/runtime-jars/log4j-1.2.17.jar
96
- - vendor/jar-dependencies/runtime-jars/slf4j-api-1.7.13.jar
97
- - vendor/jar-dependencies/runtime-jars/slf4j-api-1.7.16.jar
98
- - vendor/jar-dependencies/runtime-jars/slf4j-log4j12-1.7.21.jar
99
- - vendor/jar-dependencies/runtime-jars/slf4j-nop-1.7.13.jar
126
+ - logstash-output-jdbc.gemspec
127
+ - spec/jdbc_spec_helper.rb
128
+ - spec/outputs/jdbc_derby_spec.rb
129
+ - spec/outputs/jdbc_mysql_spec.rb
130
+ - spec/outputs/jdbc_postgres_spec.rb
100
131
  - spec/outputs/jdbc_spec.rb
101
- - LICENSE.txt
102
- - README.md
132
+ - spec/outputs/jdbc_sqlite_spec.rb
133
+ - vendor/jar-dependencies/runtime-jars/HikariCP-2.7.2.jar
134
+ - vendor/jar-dependencies/runtime-jars/log4j-api-2.6.2.jar
135
+ - vendor/jar-dependencies/runtime-jars/log4j-slf4j-impl-2.6.2.jar
136
+ - vendor/jar-dependencies/runtime-jars/slf4j-api-1.7.25.jar
103
137
  homepage: https://github.com/theangryangel/logstash-output-jdbc
104
138
  licenses:
105
139
  - Apache License (2.0)
106
140
  metadata:
107
141
  logstash_plugin: 'true'
108
142
  logstash_group: output
109
- post_install_message:
143
+ post_install_message:
110
144
  rdoc_options: []
111
145
  require_paths:
112
146
  - lib
113
147
  required_ruby_version: !ruby/object:Gem::Requirement
114
148
  requirements:
115
- - - '>='
149
+ - - ">="
116
150
  - !ruby/object:Gem::Version
117
151
  version: '0'
118
152
  required_rubygems_version: !ruby/object:Gem::Requirement
119
153
  requirements:
120
- - - '>='
154
+ - - ">="
121
155
  - !ruby/object:Gem::Version
122
156
  version: '0'
123
- requirements: []
124
- rubyforge_project:
125
- rubygems_version: 2.0.14.1
126
- signing_key:
157
+ requirements:
158
+ - jar 'com.zaxxer:HikariCP', '2.7.2'
159
+ - jar 'org.apache.logging.log4j:log4j-slf4j-impl', '2.6.2'
160
+ rubyforge_project:
161
+ rubygems_version: 2.4.8
162
+ signing_key:
127
163
  specification_version: 4
128
164
  summary: This plugin allows you to output to SQL, via JDBC
129
165
  test_files:
166
+ - spec/jdbc_spec_helper.rb
167
+ - spec/outputs/jdbc_derby_spec.rb
168
+ - spec/outputs/jdbc_mysql_spec.rb
169
+ - spec/outputs/jdbc_postgres_spec.rb
130
170
  - spec/outputs/jdbc_spec.rb
171
+ - spec/outputs/jdbc_sqlite_spec.rb
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2014
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,17 +0,0 @@
1
- class RingBuffer < Array
2
- attr_reader :max_size
3
-
4
- def initialize(max_size, enum = nil)
5
- @max_size = max_size
6
- enum.each { |e| self << e } if enum
7
- end
8
-
9
- def <<(el)
10
- if self.size < @max_size || @max_size.nil?
11
- super
12
- else
13
- self.shift
14
- self.push(el)
15
- end
16
- end
17
- end