Skip to content

Commit

Permalink
Update thor dependency to ~> 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Apr 30, 2024
1 parent 2c6adae commit 9b27a34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/t/printable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) { "" })

Expand All @@ -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|
Expand Down
2 changes: 1 addition & 1 deletion t.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 9b27a34

Please sign in to comment.