Skip to content

Commit

Permalink
use ext_monitor before ruby 2.7
Browse files Browse the repository at this point in the history
add move to dev dependency

Signed-off-by: Yuta Iwama <[email protected]>
  • Loading branch information
ganmacs committed Jan 8, 2020
1 parent d673f2f commit 06f6a91
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion fluentd.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency("tzinfo", [">= 1.0", "< 3.0"])
gem.add_runtime_dependency("tzinfo-data", ["~> 1.0"])
gem.add_runtime_dependency("strptime", [">= 0.2.2", "< 1.0.0"])
gem.add_runtime_dependency("ext_monitor", [">= 0.1.1", "< 0.2"])

# build gem for a certain platform. see also Rakefile
fake_platform = ENV['GEM_BUILD_FAKE_PLATFORM'].to_s
Expand All @@ -49,4 +48,5 @@ Gem::Specification.new do |gem|
gem.add_development_dependency("test-unit", ["~> 3.2"])
gem.add_development_dependency("test-unit-rr", ["~> 1.0"])
gem.add_development_dependency("oj", [">= 2.14", "< 4"])
gem.add_development_dependency("ext_monitor", [">= 0.1.1", "< 0.2"])
end
4 changes: 1 addition & 3 deletions lib/fluent/command/cat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,11 @@
usage $!.to_s
end


require 'thread'
require 'monitor'
require 'socket'
require 'yajl'
require 'msgpack'

require 'fluent/ext_monitor_require'

class Writer
include MonitorMixin
Expand Down
2 changes: 1 addition & 1 deletion lib/fluent/load.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
require 'socket'
require 'fcntl'
require 'time'
require 'monitor'
require 'stringio'
require 'fileutils'
require 'json'
Expand Down Expand Up @@ -33,3 +32,4 @@
require 'fluent/output'
require 'fluent/filter'
require 'fluent/match'
require 'fluent/ext_monitor_require'
3 changes: 1 addition & 2 deletions lib/fluent/plugin/buffer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
require 'fluent/plugin/base'
require 'fluent/plugin/owned_by_mixin'
require 'fluent/unique_id'

require 'monitor'
require 'fluent/ext_monitor_require'

module Fluent
module Plugin
Expand Down
2 changes: 1 addition & 1 deletion lib/fluent/plugin/buffer/chunk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
require 'fluent/plugin/compressable'
require 'fluent/unique_id'
require 'fluent/event'
require 'fluent/ext_monitor_require'

require 'monitor'
require 'tempfile'
require 'zlib'

Expand Down
2 changes: 1 addition & 1 deletion lib/fluent/plugin/output.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
require 'fluent/timezone'
require 'fluent/unique_id'
require 'fluent/clock'
require 'fluent/ext_monitor_require'

require 'time'
require 'monitor'

module Fluent
module Plugin
Expand Down

0 comments on commit 06f6a91

Please sign in to comment.