colorls 1.4.6.pre.97 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/colorls/core.rb +2 -3
- data/lib/colorls/version.rb +1 -1
- data/man/colorls.1 +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c36486dd2b735a1088fa6e5d1f5d3bd47dfe1135c59d3294ade3c07c3c40bf92
|
|
4
|
+
data.tar.gz: 2723a7f1bcbc29432ce6b257384933d1ff1133d75c3f99fafd1ac5eeef5da42e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d2142392fe6786c4828103d9153139c6d94e944c7c52e41297cd18d6194d1e07f2e491f099e23b0509fc04c3e4e5207f80565ee8b89c8824c0695ed8ba88052a
|
|
7
|
+
data.tar.gz: 80000096a8846d9dad2e969f779b0215f3fbec1c6e98c56dbad104b60302a6def7ac0025ac03c19436275626e0790952afdeee86e705d62b4913b4252516c33a
|
data/lib/colorls/core.rb
CHANGED
|
@@ -339,8 +339,7 @@ module ColorLS
|
|
|
339
339
|
@count[increment] += 1
|
|
340
340
|
value = increment == :folders ? @folders[key] : @files[key]
|
|
341
341
|
logo = value.gsub(/\\u[\da-f]{4}/i) { |m| [m[-4..].to_i(16)].pack('U') }
|
|
342
|
-
name = content.show
|
|
343
|
-
name = make_link(content) if @hyperlink
|
|
342
|
+
name = @hyperlink ? make_link(content) : content.show
|
|
344
343
|
name += content.directory? && @indicator_style != 'none' ? '/' : ' '
|
|
345
344
|
entry = "#{out_encode(logo)} #{out_encode(name)}"
|
|
346
345
|
entry = entry.bright if !content.directory? && content.executable?
|
|
@@ -428,7 +427,7 @@ module ColorLS
|
|
|
428
427
|
|
|
429
428
|
def make_link(content)
|
|
430
429
|
uri = Addressable::URI.convert_path(File.absolute_path(content.path))
|
|
431
|
-
"\033]8;;#{uri}\007#{content.
|
|
430
|
+
"\033]8;;#{uri}\007#{content.show}\033]8;;\007"
|
|
432
431
|
end
|
|
433
432
|
end
|
|
434
433
|
end
|
data/lib/colorls/version.rb
CHANGED
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" "
|
|
4
|
+
.TH "COLORLS" "1" "March 2022" "colorls 1.4.5" "colorls Manual"
|
|
5
5
|
.
|
|
6
6
|
.SH "NAME"
|
|
7
7
|
\fBcolorls\fR \- list directory contents with colors and icons
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: colorls
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.6
|
|
4
|
+
version: 1.4.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Athitya Kumar
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-04-
|
|
11
|
+
date: 2022-04-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -302,7 +302,7 @@ dependencies:
|
|
|
302
302
|
- - "~>"
|
|
303
303
|
- !ruby/object:Gem::Version
|
|
304
304
|
version: 0.21.2
|
|
305
|
-
description:
|
|
305
|
+
description:
|
|
306
306
|
email:
|
|
307
307
|
- athityakumar@gmail.com
|
|
308
308
|
executables:
|
|
@@ -378,12 +378,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
378
378
|
version: 2.6.0
|
|
379
379
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
380
380
|
requirements:
|
|
381
|
-
- - "
|
|
381
|
+
- - ">="
|
|
382
382
|
- !ruby/object:Gem::Version
|
|
383
|
-
version:
|
|
383
|
+
version: '0'
|
|
384
384
|
requirements: []
|
|
385
|
-
rubygems_version: 3.
|
|
386
|
-
signing_key:
|
|
385
|
+
rubygems_version: 3.2.26
|
|
386
|
+
signing_key:
|
|
387
387
|
specification_version: 4
|
|
388
388
|
summary: A Ruby CLI gem that beautifies the terminal's ls command, with color and
|
|
389
389
|
font-awesome icons.
|