Skip to content

Commit 5fb486a

Browse files
authored
Merge pull request #25 from andsel/fix/updates_synthax_for_jruby_9.4
Updates handling of optional named parameters for JRuby 9.4
2 parents 389059a + 004c58b commit 5fb486a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.0.9
2+
- Fix: updates syntax to JRuby 9.4 [#25](https://github.com/logstash-plugins/logstash-output-csv/pull/25)
3+
14
## 3.0.8
25
- Docs: Correct typos [#19](https://github.com/logstash-plugins/logstash-output-csv/pull/19)
36
- Docs: Fix formatting after code sample [#22](https://github.com/logstash-plugins/logstash-output-csv/pull/22)

lib/logstash/outputs/csv.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def multi_receive_encoded(events_and_encoded)
5656

5757
def event_to_csv(event)
5858
csv_values = @fields.map {|name| get_value(name, event)}
59-
csv_values.to_csv(@csv_options)
59+
csv_values.to_csv(**@csv_options)
6060
end
6161

6262
def get_value(name, event)

logstash-output-csv.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |s|
22

33
s.name = 'logstash-output-csv'
4-
s.version = '3.0.8'
4+
s.version = '3.0.9'
55
s.licenses = ['Apache License (2.0)']
66
s.summary = "Writes events to disk in a delimited format"
77
s.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 gemname. This gem is not a stand-alone program"

0 commit comments

Comments
 (0)