From 9b27a34418a5ca029d4e49ccd11d487f5dae41c0 Mon Sep 17 00:00:00 2001 From: Erik Berlin Date: Tue, 30 Apr 2024 12:32:41 -0700 Subject: [PATCH] Update thor dependency to ~> 1.3 --- lib/t/printable.rb | 4 ++-- t.gemspec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/t/printable.rb b/lib/t/printable.rb index 3133fcbf..5f2f6a4d 100644 --- a/lib/t/printable.rb +++ b/lib/t/printable.rb @@ -140,7 +140,7 @@ def print_identicon(from_user, message) icon = Identicon.for_user_name(from_user) # Save 6 chars for icon, ensure at least 3 lines long - lines = wrapped(HTMLEntities.new.decode(message), indent: 2, width: terminal_width - (6 + 5)) + lines = wrapped(HTMLEntities.new.decode(message), indent: 2, width: Thor::Shell::Terminal.terminal_width - (6 + 5)) lines.unshift(set_color(" @#{from_user}", :bold, :yellow)) lines.concat(Array.new([3 - lines.length, 0].max) { "" }) @@ -149,7 +149,7 @@ def print_identicon(from_user, message) def wrapped(message, options = {}) indent = options[:indent] || 0 - width = options[:width] || (terminal_width - indent) + width = options[:width] || (Thor::Shell::Terminal.terminal_width - indent) paras = message.split("\n\n") paras.map! do |unwrapped| diff --git a/t.gemspec b/t.gemspec index 0f0bd922..76253b4b 100644 --- a/t.gemspec +++ b/t.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |spec| spec.add_dependency "launchy", "~> 2.4" spec.add_dependency "oauth", "~> 1.1" spec.add_dependency "retryable", "~> 3.0" - spec.add_dependency "thor", [">= 0.19.1", "< 2"] + spec.add_dependency "thor", "~> 1.3" spec.add_dependency "twitter", "~> 8.0" spec.author = "Erik Berlin" spec.description = "A command-line power tool for Twitter."