From 359f608fe5d5ef897a3ff6118593c2dc33c26c84 Mon Sep 17 00:00:00 2001 From: Mike Karlesky Date: Mon, 6 May 2024 11:22:13 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=EF=B8=8F=20Another=20gem=20depende?= =?UTF-8?q?ncy=20fix=20attempt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gemfile | 1 + Gemfile.lock | 2 ++ ceedling.gemspec | 2 +- spec/reportinator_spec.rb | 32 +++++++++++++++----------------- 4 files changed, 19 insertions(+), 18 deletions(-) diff --git a/Gemfile b/Gemfile index 1b28f83a8..5719790d9 100644 --- a/Gemfile +++ b/Gemfile @@ -16,6 +16,7 @@ gem "diy" gem "rr" gem "thor" gem "deep_merge" +gem "unicode-display_width" #these will be used if present, but ignored otherwise #gem "curses" diff --git a/Gemfile.lock b/Gemfile.lock index 73fd1923d..cd88e37e5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -23,6 +23,7 @@ GEM rspec-support (~> 3.13.0) rspec-support (3.13.1) thor (1.3.1) + unicode-display_width (2.5.0) PLATFORMS x86_64-darwin-22 @@ -37,6 +38,7 @@ DEPENDENCIES rr rspec (~> 3.8) thor + unicode-display_width BUNDLED WITH 2.4.17 diff --git a/ceedling.gemspec b/ceedling.gemspec index 192fd3d18..06549a05f 100644 --- a/ceedling.gemspec +++ b/ceedling.gemspec @@ -43,7 +43,7 @@ Ceedling projects are created with a YAML configuration file. A variety of conve s.add_dependency "rake", ">= 12", "< 14" s.add_dependency "deep_merge", "~> 1.2" s.add_dependency "constructor", "~> 2" - s.add_dependency "unicode-display_width", ">= 2.5.0" + s.add_dependency "unicode-display_width", "~> 2.5" # Files needed from submodules s.files = [] diff --git a/spec/reportinator_spec.rb b/spec/reportinator_spec.rb index a53b9a715..c7107fb4f 100644 --- a/spec/reportinator_spec.rb +++ b/spec/reportinator_spec.rb @@ -5,24 +5,22 @@ # SPDX-License-Identifier: MIT # ========================================================================= -# Temporarily disabled until Unicode gem dependency needed by this test is resolved +require 'spec_helper' +require 'ceedling/reportinator' -# require 'spec_helper' -# require 'ceedling/reportinator' - -# describe Reportinator do -# before(:each) do -# @rp = described_class.new -# end +describe Reportinator do + before(:each) do + @rp = described_class.new + end -# describe '#generate_banner' do -# it 'generates a banner with a width based on a string' do -# expect(@rp.generate_banner("Hello world!")).to eq("------------\nHello world!\n------------\n") -# end + describe '#generate_banner' do + it 'generates a banner with a width based on a string' do + expect(@rp.generate_banner("Hello world!")).to eq("------------\nHello world!\n------------\n") + end -# it 'generates a banner with a fixed width' do -# expect(@rp.generate_banner("Hello world!", 3)).to eq("---\nHello world!\n---\n") -# end -# end + it 'generates a banner with a fixed width' do + expect(@rp.generate_banner("Hello world!", 3)).to eq("---\nHello world!\n---\n") + end + end -# end +end