colorls 1.4.6.pre.97 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcce526b2ddb10511c63206dbd8c2c9cadf1f463c33e23d07e277f34bf281d67
4
- data.tar.gz: 49216d0d980aa3881321a6dd1e7bbe4b42bec61b302a117a33453aa08d9859fe
3
+ metadata.gz: c36486dd2b735a1088fa6e5d1f5d3bd47dfe1135c59d3294ade3c07c3c40bf92
4
+ data.tar.gz: 2723a7f1bcbc29432ce6b257384933d1ff1133d75c3f99fafd1ac5eeef5da42e
5
5
  SHA512:
6
- metadata.gz: 73f53b57496f7b183ee0f002bb86a4e3f6a8a958214dc1d7e85001abfa78dc955c790775db74289c9749067f44706dce00a04a00a225a9eb8f6a7060e065126b
7
- data.tar.gz: 55c0801e38961adb48694fd0c5c633a2235a6ac0e32af74ced7d4d458f2f24885ab0054e3b5be01db1df6ed1816cb729820db731fe61524dc75429c7132d7041
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.name}\033]8;;\007"
430
+ "\033]8;;#{uri}\007#{content.show}\033]8;;\007"
432
431
  end
433
432
  end
434
433
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ColorLS
4
- VERSION = '1.4.5'
4
+ VERSION = '1.4.6'
5
5
  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" "April 2022" "colorls 1.4.5" "colorls Manual"
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.pre.97
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-04 00:00:00.000000000 Z
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: 1.3.1
383
+ version: '0'
384
384
  requirements: []
385
- rubygems_version: 3.3.7
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.