colorls 1.4.1.pre.681 → 1.4.1.pre.686
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/exe/colorls +20 -1
- data/lib/colorls/flags.rb +1 -1
- 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: 1d006f920f476e61e88946fb251325b56b22ede5c88f98ced55d1ae5d372f87f
|
|
4
|
+
data.tar.gz: 89d3897d11fd52a554476ea071db32d03e1dd347b7e892ac41f01b846b3e2eb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b156e60d9360f698df340c01e563ce95a51d47e41d369cc62a11210d75e0fd4e11767bc17a44c9fc729a124db87be050aeae7f0211d8bf8312473aea4752aec7
|
|
7
|
+
data.tar.gz: 0b22bbed2f4adecd056e4a39f22e274e76356fb5b2aae39219eccc783f02b80360968bcf123cb4846b175d9f00f142b60460f050e3bfc07bff29a412cd69ec2c
|
data/exe/colorls
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
+
# workaround https://github.com/rubygems/rubygems/issues/3087
|
|
5
|
+
|
|
6
|
+
# rubocop:disable Style/GlobalVars
|
|
7
|
+
$loading = true
|
|
8
|
+
|
|
9
|
+
class Dir
|
|
10
|
+
@@old_pwd = singleton_method(:pwd) # rubocop:disable Style/ClassVars
|
|
11
|
+
|
|
12
|
+
def self.pwd
|
|
13
|
+
@@old_pwd.call
|
|
14
|
+
rescue Errno::ENOENT => e
|
|
15
|
+
return '/' if $loading
|
|
16
|
+
|
|
17
|
+
raise e
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
4
21
|
require 'colorls'
|
|
5
22
|
|
|
23
|
+
$loading = false
|
|
24
|
+
# rubocop:enable Style/GlobalVars
|
|
25
|
+
|
|
6
26
|
ColorLS::Flags.new(*ARGV).process
|
|
7
|
-
true
|
data/lib/colorls/flags.rb
CHANGED
|
@@ -39,7 +39,7 @@ module ColorLS
|
|
|
39
39
|
def process
|
|
40
40
|
init_locale
|
|
41
41
|
|
|
42
|
-
@args = [
|
|
42
|
+
@args = ['.'] if @args.empty?
|
|
43
43
|
@args.sort!.each_with_index do |path, i|
|
|
44
44
|
next STDERR.puts "\n Specified path '#{path}' doesn't exist.".colorize(:red) unless File.exist?(path)
|
|
45
45
|
|
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 2020" "colorls 1.
|
|
4
|
+
.TH "COLORLS" "1" "April 2020" "colorls 1.4.0" "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.1.pre.
|
|
4
|
+
version: 1.4.1.pre.686
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Athitya Kumar
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: clocale
|