Skip to content

Commit

Permalink
Merge pull request #545 from ruby/remove-ostrust-dependency
Browse files Browse the repository at this point in the history
Use Struct instead of OpenStruct.
  • Loading branch information
hsbt committed Mar 15, 2024
2 parents 15e936c + f4d6eeb commit 24e8de2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/rake.rb
Expand Up @@ -30,7 +30,6 @@ module Rake; end
require "singleton"
require "monitor"
require "optparse"
require "ostruct"

require "rake/ext/string"

Expand Down
8 changes: 7 additions & 1 deletion lib/rake/application.rb
Expand Up @@ -165,7 +165,13 @@ def add_loader(ext, loader)

# Application options from the command line
def options
@options ||= OpenStruct.new
@options ||= Struct.new(
:always_multitask, :backtrace, :build_all, :dryrun,
:ignore_deprecate, :ignore_system, :job_stats, :load_system,
:nosearch, :rakelib, :show_all_tasks, :show_prereqs,
:show_task_pattern, :show_tasks, :silent, :suppress_backtrace_pattern,
:thread_pool_size, :trace, :trace_output, :trace_rules
).new
end

# Return the thread pool used for multithreaded processing.
Expand Down

0 comments on commit 24e8de2

Please sign in to comment.