mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-12 05:31:14 +02:00
Drop support for Ruby 2.5
It reached EOL with release 2.5.9, and no longer receives patches.
This commit is contained in:
parent
1a0c82201f
commit
3995f3173c
5 changed files with 5 additions and 5 deletions
2
.github/workflows/ruby.yml
vendored
2
.github/workflows/ruby.yml
vendored
|
@ -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:
|
||||
|
|
|
@ -10,7 +10,7 @@ AllCops:
|
|||
- 'profile/*'
|
||||
DisplayCopNames: true
|
||||
NewCops: enable
|
||||
TargetRubyVersion: 2.5
|
||||
TargetRubyVersion: 2.6
|
||||
|
||||
# Preferred codebase style ---------------------------------------------
|
||||
|
||||
|
|
|
@ -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.*
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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' ? '/' : ' '
|
||||
|
|
Loading…
Reference in a new issue