diff --git a/fluentd.gemspec b/fluentd.gemspec index 43765864b3..88582d5363 100644 --- a/fluentd.gemspec +++ b/fluentd.gemspec @@ -28,7 +28,7 @@ Gem::Specification.new do |gem| gem.add_runtime_dependency("tzinfo", ["~> 1.0"]) gem.add_runtime_dependency("tzinfo-data", ["~> 1.0"]) gem.add_runtime_dependency("strptime", ["~> 0.1.7"]) - gem.add_runtime_dependency("ruby_dig", ["~> 0.0.2"]) + gem.add_runtime_dependency("dig_rb", ["~> 1.0.0"]) # build gem for a certain platform. see also Rakefile fake_platform = ENV['GEM_BUILD_FAKE_PLATFORM'].to_s diff --git a/lib/fluent/plugin_helper/record_accessor.rb b/lib/fluent/plugin_helper/record_accessor.rb index 6a23b127fb..886c9c7761 100644 --- a/lib/fluent/plugin_helper/record_accessor.rb +++ b/lib/fluent/plugin_helper/record_accessor.rb @@ -17,10 +17,10 @@ require 'fluent/config/error' unless {}.respond_to?(:dig) begin - # backport_dig is faster than ruby_dig so prefer backport_dig. + # backport_dig is faster than dig_rb so prefer backport_dig. require 'backport_dig' rescue LoadError - require 'ruby_dig' + require 'dig_rb' end end