Ceedling

Ceedling #

rbenvでruby 3.1.2を入れる #

rbenv install 3.1.2 rbenv global 3.1.2

gemでCeedlingをいれる #

gem install ceedling

エラー1 #

Calling DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call DidYouMean.correct_error(error_name, spell_checker)’ instead.

エラー2 #

/home/[username]/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:430:in `visit_Psych_Nodes_Alias’: Unknown alias: common_defines (Psych::BadAlias)

DIff #

diff -ru ceedling-0.31.1_original/bin/ceedling ceedling-0.31.1/bin/ceedling — ceedling-0.31.1_original/bin/ceedling 2022-06-14 23:08:49.883330000 +0900 +++ ceedling-0.31.1/bin/ceedling 2022-06-14 23:10:41.223330000 +0900 @@ -275,7 +275,7 @@ end

#merge in project settings if they can be found here

  • yaml_options = YAML.load_file(main_filepath)
  • yaml_options = YAML.load_file(main_filepath, aliases: true) if (yaml_options[:paths]) options[:add_path] = yaml_options[:paths][:tools] || [] else diff -ru ceedling-0.31.1_original/lib/ceedling/plugin_reportinator_helper.rb ceedling-0.31.1/lib/ceedling/plugin_reportinator_helper.rb — ceedling-0.31.1_original/lib/ceedling/plugin_reportinator_helper.rb 2022-06-14 23:08:49.943330000 +0900 +++ ceedling-0.31.1/lib/ceedling/plugin_reportinator_helper.rb 2022-06-14 23:12:21.523330000 +0900 @@ -44,7 +44,7 @@

    def run_report(stream, template, hash, verbosity)

  • output = ERB.new(template, 0, “%<>”)
  • output = ERB.new(template, trim_mode: “%<>”) @streaminator.stream_puts(stream, output.result(binding()), verbosity) end

diff -ru ceedling-0.31.1_original/lib/ceedling/yaml_wrapper.rb ceedling-0.31.1/lib/ceedling/yaml_wrapper.rb — ceedling-0.31.1_original/lib/ceedling/yaml_wrapper.rb 2022-06-14 23:08:49.943330000 +0900 +++ ceedling-0.31.1/lib/ceedling/yaml_wrapper.rb 2022-06-14 23:11:28.823330000 +0900 @@ -5,7 +5,7 @@ class YamlWrapper

def load(filepath)

  • return YAML.load(ERB.new(File.read(filepath)).result)
  • return YAML.load(ERB.new(File.read(filepath)).result, aliases: true) end

def dump(filepath, structure) diff -ru ceedling-0.31.1_original/vendor/unity/auto/generate_test_runner.rb ceedling-0.31.1/vendor/unity/auto/generate_test_runner.rb — ceedling-0.31.1_original/vendor/unity/auto/generate_test_runner.rb 2022-06-14 23:08:50.023330000 +0900 +++ ceedling-0.31.1/vendor/unity/auto/generate_test_runner.rb 2022-06-14 23:12:03.353330000 +0900 @@ -341,7 +341,7 @@

def create_run_test(output) require ’erb'

  • template = ERB.new(File.read(File.join(dir, ‘run_test.erb’)), nil, ‘<>’)
  • template = ERB.new(File.read(File.join(dir, ‘run_test.erb’)), trim_mode: ‘<>’) output.puts("\n" + template.result(binding)) end

bin/ceedling #

yaml_options = YAML.load_file(main_filepath, aliases: true)