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:
Claudio Bley 2020-04-16 22:25:51 +02:00
parent 68436f9f73
commit 86cfa2f5cf
7 changed files with 10 additions and 27 deletions

View file

@ -10,7 +10,7 @@ AllCops:
- 'lib/yaml/*'
- 'lib/**/*.sh'
DisplayCopNames: true
TargetRubyVersion: 2.4
TargetRubyVersion: 2.5
# Preferred codebase style ---------------------------------------------

View file

@ -9,7 +9,6 @@ cache:
bundler
rvm:
- '2.4'
- '2.5'
- '2.6'
- '2.7'

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.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.
*Note for `iTerm2` users - Please enable the Nerd Font at iTerm2 > Preferences > Profiles > Text > Non-ASCII font > Hack Regular Nerd Font Complete.*

View file

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

View file

@ -42,7 +42,6 @@ module ColorLS
@args = [Dir.pwd] if @args.empty?
@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)
puts '' if i.positive?
@ -52,7 +51,6 @@ module ColorLS
STDERR.puts "#{path}: #{e}".colorize(:red)
end
end
end
def options
list = @parser.top.list + @parser.base.list

View file

@ -12,16 +12,6 @@ class String
def uniq
split('').uniq.join
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
class Hash
@ -33,7 +23,3 @@ class Hash
new_hash
end
end
class Array
define_method(:sum) { inject(:+) } unless instance_methods.include? :sum
end

View file

@ -1,7 +1,7 @@
.\" generated with Ronn/v0.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"
\fBcolorls\fR \- list directory contents with colors and icons