colorls 1.3.4.pre.670 → 1.3.4.pre.673
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +16 -1
- data/.travis.yml +0 -1
- data/README.md +1 -1
- data/colorls.gemspec +1 -1
- data/lib/colorls/flags.rb +7 -9
- data/lib/colorls/monkeys.rb +0 -14
- data/man/colorls.1 +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 616ebb0485c477b75ad0d70309718deab6513e756b5c982de4c738987061ee4b
|
4
|
+
data.tar.gz: 3513af0cda73e2a0f0729583a73a3cca75c9a1a3e73d0998eed9a58efa2f6b25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e14903819a1ee8d3aedf73aef6f9002c0d2ee78a29c85ba0a3f12901cf94c5ef61f124c00090f1ee0929bc33dedc1ab735d951ca396e9561bee2d1ff8b10706a
|
7
|
+
data.tar.gz: 93d8075e37ccf6435c0e8b5a665690ed2cacfe739448c7a6f149c10865b86c665ed1cd1ae2cac05c4279f7ad57e246b2393e356ba07586d3dad604f80062e214
|
data/.rubocop.yml
CHANGED
@@ -10,7 +10,7 @@ AllCops:
|
|
10
10
|
- 'lib/yaml/*'
|
11
11
|
- 'lib/**/*.sh'
|
12
12
|
DisplayCopNames: true
|
13
|
-
TargetRubyVersion: 2.
|
13
|
+
TargetRubyVersion: 2.5
|
14
14
|
|
15
15
|
# Preferred codebase style ---------------------------------------------
|
16
16
|
|
@@ -35,6 +35,12 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
35
35
|
Layout/ParameterAlignment:
|
36
36
|
EnforcedStyle: with_fixed_indentation
|
37
37
|
|
38
|
+
Lint/RaiseException:
|
39
|
+
Enabled: true
|
40
|
+
|
41
|
+
Lint/StructNewOverride:
|
42
|
+
Enabled: true
|
43
|
+
|
38
44
|
Style/EmptyElse:
|
39
45
|
EnforcedStyle: empty
|
40
46
|
|
@@ -63,6 +69,15 @@ Style/ParallelAssignment:
|
|
63
69
|
Style/DoubleNegation:
|
64
70
|
Enabled: false
|
65
71
|
|
72
|
+
Style/HashEachMethods:
|
73
|
+
Enabled: true
|
74
|
+
|
75
|
+
Style/HashTransformKeys:
|
76
|
+
Enabled: true
|
77
|
+
|
78
|
+
Style/HashTransformValues:
|
79
|
+
Enabled: true
|
80
|
+
|
66
81
|
Style/SingleLineBlockParams:
|
67
82
|
Enabled: false
|
68
83
|
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -117,7 +117,7 @@ Man pages have been added. Checkout `man colorls`.
|
|
117
117
|
|
118
118
|
[(Back to top)](#table-of-contents)
|
119
119
|
|
120
|
-
1. Install Ruby (preferably, version
|
120
|
+
1. Install Ruby (preferably, version >= 2.5)
|
121
121
|
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.
|
122
122
|
|
123
123
|
*Note for `iTerm2` users - Please enable the Nerd Font at iTerm2 > Preferences > Profiles > Text > Non-ASCII font > Hack Regular Nerd Font Complete.*
|
data/colorls.gemspec
CHANGED
@@ -45,7 +45,7 @@ Gem::Specification.new do |spec|
|
|
45
45
|
spec.homepage = 'https://github.com/athityakumar/colorls'
|
46
46
|
spec.license = 'MIT'
|
47
47
|
|
48
|
-
spec.required_ruby_version = '>= 2.
|
48
|
+
spec.required_ruby_version = '>= 2.5.0'
|
49
49
|
|
50
50
|
spec.files = IO.popen(
|
51
51
|
%w[git ls-files -z], external_encoding: Encoding::ASCII_8BIT
|
data/lib/colorls/flags.rb
CHANGED
@@ -42,15 +42,13 @@ module ColorLS
|
|
42
42
|
|
43
43
|
@args = [Dir.pwd] if @args.empty?
|
44
44
|
@args.sort!.each_with_index do |path, i|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
STDERR.puts "#{path}: #{e}".colorize(:red)
|
53
|
-
end
|
45
|
+
next STDERR.puts "\n Specified path '#{path}' doesn't exist.".colorize(:red) unless File.exist?(path)
|
46
|
+
|
47
|
+
puts '' if i.positive?
|
48
|
+
puts "\n#{path}:" if Dir.exist?(path) && @args.size > 1
|
49
|
+
Core.new(path, **@opts).ls
|
50
|
+
rescue SystemCallError => e
|
51
|
+
STDERR.puts "#{path}: #{e}".colorize(:red)
|
54
52
|
end
|
55
53
|
end
|
56
54
|
|
data/lib/colorls/monkeys.rb
CHANGED
@@ -12,16 +12,6 @@ class String
|
|
12
12
|
def uniq
|
13
13
|
split('').uniq.join
|
14
14
|
end
|
15
|
-
|
16
|
-
unless instance_methods.include? :delete_prefix
|
17
|
-
define_method(:delete_prefix) do |prefix|
|
18
|
-
if start_with? prefix
|
19
|
-
slice(prefix.length..-1)
|
20
|
-
else
|
21
|
-
slice(0..length)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
15
|
end
|
26
16
|
|
27
17
|
class Hash
|
@@ -33,7 +23,3 @@ class Hash
|
|
33
23
|
new_hash
|
34
24
|
end
|
35
25
|
end
|
36
|
-
|
37
|
-
class Array
|
38
|
-
define_method(:sum) { inject(:+) } unless instance_methods.include? :sum
|
39
|
-
end
|
data/man/colorls.1
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "COLORLS" "1" "July 2019" "colorls 1.
|
4
|
+
.TH "COLORLS" "1" "July 2019" "colorls 1.3.3" "colorls Manual"
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBcolorls\fR \- list directory contents with colors and icons
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: colorls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.4.pre.
|
4
|
+
version: 1.3.4.pre.673
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Athitya Kumar
|
@@ -328,7 +328,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
328
328
|
requirements:
|
329
329
|
- - ">="
|
330
330
|
- !ruby/object:Gem::Version
|
331
|
-
version: 2.
|
331
|
+
version: 2.5.0
|
332
332
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
333
333
|
requirements:
|
334
334
|
- - ">"
|