Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 3.1.1
- Fix: replace deprecated `File.exists?` with `File.exist?` for Ruby 3.4 (JRuby 10) compatibility [#36](https://github.com/logstash-plugins/logstash-codec-collectd/pull/36)

## 3.1.0
- Feat: added target configuration + event-factory support [#31](https://github.com/logstash-plugins/logstash-codec-collectd/pull/31)

Expand Down
2 changes: 1 addition & 1 deletion lib/logstash/codecs/collectd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def register
init_lambdas!
if @typesdb.nil?
@typesdb = ::File.expand_path('../../../vendor/types.db', ::File.dirname(__FILE__))
if !File.exists?(@typesdb)
if !File.exist?(@typesdb)
raise "You must specify 'typesdb => ...' in your collectd input (I looked for '#{@typesdb}')"
end
@logger.debug("Using types.db", :typesdb => @typesdb.to_s)
Expand Down
2 changes: 1 addition & 1 deletion logstash-codec-collectd.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'logstash-codec-collectd'
s.version = '3.1.0'
s.version = '3.1.1'
s.licenses = ['Apache License (2.0)']
s.summary = "Reads events from the `collectd` binary protocol using UDP."
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"
Expand Down