Drop support for Ruby 2.5

It reached EOL with release 2.5.9, and no longer receives patches.
This commit is contained in:
Claudio Bley 2022-02-18 14:10:09 +01:00
parent 1a0c82201f
commit 3995f3173c
5 changed files with 5 additions and 5 deletions

View file

@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0']
ruby-version: ['2.6', '2.7', '3.0', '3.1']
os: [ubuntu-latest, macos-latest]
steps:

View file

@ -10,7 +10,7 @@ AllCops:
- 'profile/*'
DisplayCopNames: true
NewCops: enable
TargetRubyVersion: 2.5
TargetRubyVersion: 2.6
# Preferred codebase style ---------------------------------------------

View file

@ -117,7 +117,7 @@ Man pages have been added. Checkout `man colorls`.
[(Back to top)](#table-of-contents)
1. Install Ruby (preferably, version >= 2.5)
1. Install Ruby (preferably, version >= 2.6)
2. [Download](https://www.nerdfonts.com/font-downloads) and install a Nerd Font. Have a look at the [Nerd Font README](https://github.com/ryanoasis/nerd-fonts/blob/master/readme.md) for installation instructions.
*Note for `iTerm2` users - Please enable the Nerd Font at iTerm2 > Preferences > Profiles > Text > Non-ASCII font > Hack Regular Nerd Font Complete.*

View file

@ -47,7 +47,7 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/athityakumar/colorls'
spec.license = 'MIT'
spec.required_ruby_version = '>= 2.5.0'
spec.required_ruby_version = '>= 2.6.0'
spec.files = IO.popen(
%w[git ls-files -z], external_encoding: Encoding::ASCII_8BIT

View file

@ -321,7 +321,7 @@ module ColorLS
def fetch_string(content, key, color, increment)
@count[increment] += 1
value = increment == :folders ? @folders[key] : @files[key]
logo = value.gsub(/\\u[\da-f]{4}/i) { |m| [m[-4..-1].to_i(16)].pack('U') }
logo = value.gsub(/\\u[\da-f]{4}/i) { |m| [m[-4..].to_i(16)].pack('U') }
name = content.show
name = make_link(content) if @hyperlink
name += content.directory? && @indicator_style != 'none' ? '/' : ' '