mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-19 05:31:23 +02:00
Drop support for Ruby 2.4
It reached EOL on March 31, 2020, and no longer receives patches. See https://www.ruby-lang.org/en/news/2020/04/05/support-of-ruby-2-4-has-ended/
This commit is contained in:
parent
68436f9f73
commit
86cfa2f5cf
7 changed files with 10 additions and 27 deletions
|
@ -10,7 +10,7 @@ AllCops:
|
||||||
- 'lib/yaml/*'
|
- 'lib/yaml/*'
|
||||||
- 'lib/**/*.sh'
|
- 'lib/**/*.sh'
|
||||||
DisplayCopNames: true
|
DisplayCopNames: true
|
||||||
TargetRubyVersion: 2.4
|
TargetRubyVersion: 2.5
|
||||||
|
|
||||||
# Preferred codebase style ---------------------------------------------
|
# Preferred codebase style ---------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ cache:
|
||||||
bundler
|
bundler
|
||||||
|
|
||||||
rvm:
|
rvm:
|
||||||
- '2.4'
|
|
||||||
- '2.5'
|
- '2.5'
|
||||||
- '2.6'
|
- '2.6'
|
||||||
- '2.7'
|
- '2.7'
|
||||||
|
|
|
@ -117,7 +117,7 @@ Man pages have been added. Checkout `man colorls`.
|
||||||
|
|
||||||
[(Back to top)](#table-of-contents)
|
[(Back to top)](#table-of-contents)
|
||||||
|
|
||||||
1. Install Ruby (preferably, version > 2.3)
|
1. Install Ruby (preferably, version >= 2.5)
|
||||||
2. Install the patched fonts of powerline nerd-font and/or font-awesome. Have a look at the [Nerd Font README](https://github.com/ryanoasis/nerd-fonts/blob/master/readme.md) for more installation instructions.
|
2. Install the patched fonts of powerline nerd-font and/or font-awesome. Have a look at the [Nerd Font README](https://github.com/ryanoasis/nerd-fonts/blob/master/readme.md) for more installation instructions.
|
||||||
|
|
||||||
*Note for `iTerm2` users - Please enable the Nerd Font at iTerm2 > Preferences > Profiles > Text > Non-ASCII font > Hack Regular Nerd Font Complete.*
|
*Note for `iTerm2` users - Please enable the Nerd Font at iTerm2 > Preferences > Profiles > Text > Non-ASCII font > Hack Regular Nerd Font Complete.*
|
||||||
|
|
|
@ -45,7 +45,7 @@ Gem::Specification.new do |spec|
|
||||||
spec.homepage = 'https://github.com/athityakumar/colorls'
|
spec.homepage = 'https://github.com/athityakumar/colorls'
|
||||||
spec.license = 'MIT'
|
spec.license = 'MIT'
|
||||||
|
|
||||||
spec.required_ruby_version = '>= 2.4.0'
|
spec.required_ruby_version = '>= 2.5.0'
|
||||||
|
|
||||||
spec.files = IO.popen(
|
spec.files = IO.popen(
|
||||||
%w[git ls-files -z], external_encoding: Encoding::ASCII_8BIT
|
%w[git ls-files -z], external_encoding: Encoding::ASCII_8BIT
|
||||||
|
|
|
@ -42,7 +42,6 @@ module ColorLS
|
||||||
|
|
||||||
@args = [Dir.pwd] if @args.empty?
|
@args = [Dir.pwd] if @args.empty?
|
||||||
@args.sort!.each_with_index do |path, i|
|
@args.sort!.each_with_index do |path, i|
|
||||||
begin
|
|
||||||
next STDERR.puts "\n Specified path '#{path}' doesn't exist.".colorize(:red) unless File.exist?(path)
|
next STDERR.puts "\n Specified path '#{path}' doesn't exist.".colorize(:red) unless File.exist?(path)
|
||||||
|
|
||||||
puts '' if i.positive?
|
puts '' if i.positive?
|
||||||
|
@ -52,7 +51,6 @@ module ColorLS
|
||||||
STDERR.puts "#{path}: #{e}".colorize(:red)
|
STDERR.puts "#{path}: #{e}".colorize(:red)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def options
|
def options
|
||||||
list = @parser.top.list + @parser.base.list
|
list = @parser.top.list + @parser.base.list
|
||||||
|
|
|
@ -12,16 +12,6 @@ class String
|
||||||
def uniq
|
def uniq
|
||||||
split('').uniq.join
|
split('').uniq.join
|
||||||
end
|
end
|
||||||
|
|
||||||
unless instance_methods.include? :delete_prefix
|
|
||||||
define_method(:delete_prefix) do |prefix|
|
|
||||||
if start_with? prefix
|
|
||||||
slice(prefix.length..-1)
|
|
||||||
else
|
|
||||||
slice(0..length)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class Hash
|
class Hash
|
||||||
|
@ -33,7 +23,3 @@ class Hash
|
||||||
new_hash
|
new_hash
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Array
|
|
||||||
define_method(:sum) { inject(:+) } unless instance_methods.include? :sum
|
|
||||||
end
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
.\" generated with Ronn/v0.7.3
|
.\" generated with Ronn/v0.7.3
|
||||||
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
||||||
.
|
.
|
||||||
.TH "COLORLS" "1" "July 2019" "colorls 1.2.0" "colorls Manual"
|
.TH "COLORLS" "1" "July 2019" "colorls 1.3.3" "colorls Manual"
|
||||||
.
|
.
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
\fBcolorls\fR \- list directory contents with colors and icons
|
\fBcolorls\fR \- list directory contents with colors and icons
|
||||||
|
|
Loading…
Reference in a new issue