1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
--- a/lib/process_executer/monitored_pipe.rb
+++ b/lib/process_executer/monitored_pipe.rb
@@ -2,7 +2,6 @@
require 'stringio'
require 'io/wait'
-require 'track_open_instances'
module ProcessExecuter
# Acts as a pipe that writes the data written to it to one or more destinations
@@ -91,8 +90,6 @@ module ProcessExecuter
# @api public
#
class MonitoredPipe
- include TrackOpenInstances
-
# Create a new monitored pipe
#
# Creates an IO.pipe and starts a monitoring thread to read data written to the
@@ -138,7 +135,6 @@ module ProcessExecuter
@state = :open
@thread = start_monitoring_thread
- self.class.add_open_instance(self)
end
# Set the state to `:closing` and wait for the state to be set to `:closed`
@@ -166,7 +162,6 @@ module ProcessExecuter
thread.join
destination.close
- self.class.remove_open_instance(self)
end
# Return the write end of the pipe so that data can be written to it
--- a/process_executer.gemspec
+++ b/process_executer.gemspec
@@ -46,8 +46,6 @@ Gem::Specification.new do |spec|
'Ruby: MRI 3.1 or later, TruffleRuby 24 or later, or JRuby 9.4 or later'
]
- spec.add_dependency 'track_open_instances', '~> 0.1'
-
spec.add_development_dependency 'bundler-audit', '~> 0.9'
spec.add_development_dependency 'create_github_release', '~> 2.1'
spec.add_development_dependency 'main_branch_shared_rubocop_config', '~> 0.1'
|