Skip to content

Commit

Permalink
work around latest bug in verbosity changes.
Browse files Browse the repository at this point in the history
work around bug in expanded paths with .. not being accepted on some platforms.
  • Loading branch information
mvandervoord committed Jan 29, 2024
1 parent 90b52d3 commit 3f0da46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ceedling/configurator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def find_and_merge_plugins(config)
if (plugin_config.include? :paths)
plugin_config[:paths].update(plugin_config[:paths]) do |k,v|
plugin_path = plugin.match(/(.*)[\/]config[\/]\w+\.yml/)[1]
v.map {|vv| vv.gsub!(/\$PLUGIN_PATH/,plugin_path) }
v.map {|vv| File.expand_path(vv.gsub!(/\$PLUGIN_PATH/,plugin_path)) }
end
end

Expand Down
4 changes: 3 additions & 1 deletion lib/ceedling/tasks_base.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ require 'ceedling/file_path_utils'
require 'ceedling/version'

# Set Rake verbosity using global constant verbosity set before Rake is loaded
verbose(PROJECT_VERBOSITY >= Verbosity::OBNOXIOUS)
if !!defined?(PROJECT_VERBOSITY)
verbose(PROJECT_VERBOSITY >= Verbosity::OBNOXIOUS)
end

desc "Display build environment version info."
task :version do
Expand Down
2 changes: 1 addition & 1 deletion lib/ceedling/verbosinator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Verbosinator

def should_output?(level)
# Rely on global constant created at early stages of command line processing
return (level <= PROJECT_VERBOSITY)
return (!defined?(PROJECT_VERBOSITY)) || (level <= PROJECT_VERBOSITY)
end

end

0 comments on commit 3f0da46

Please sign in to comment.