colorls 1.4.3.pre.773 → 1.4.3.pre.775
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/.travis.yml +11 -0
- data/exe/colorls +1 -1
- data/lib/colorls/flags.rb +7 -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: 6c8823a85931d7bb843c8389c63dffc368f5e98324a4c5119045a0ec6ce885b0
|
|
4
|
+
data.tar.gz: ae496670677fefa0c647d2b7e8eef704ea50640dbf92d04526588ffaa33e58b6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a09991ebb8e84a732a729fe6f06bde0b671b00a07b4ea749c829d2d62a53b8f3e71770423d02427fd4197a3843a41dda792b680e0d3e8c0e337b56727a897980
|
|
7
|
+
data.tar.gz: 0d213e4ad76b85b77c4bdab07860549a497256a3de28681bc61211d36191c346bafc37954a57857bf350d117520af43d74ee87524f1b659ed9e8b630cc573d8f
|
data/.travis.yml
CHANGED
|
@@ -89,6 +89,17 @@ script:
|
|
|
89
89
|
- colorls --tree=1
|
|
90
90
|
- LC_ALL=C colorls spec/fixtures/
|
|
91
91
|
- LC_ALL=C colorls --git spec/fixtures/
|
|
92
|
+
- |
|
|
93
|
+
if colorls does-not-exist; then
|
|
94
|
+
echo "expected error!"
|
|
95
|
+
exit 1
|
|
96
|
+
else
|
|
97
|
+
ret=$?
|
|
98
|
+
if [ $ret -ne 2 ]; then
|
|
99
|
+
echo "unexpected error: $ret"
|
|
100
|
+
exit 1
|
|
101
|
+
fi
|
|
102
|
+
fi
|
|
92
103
|
|
|
93
104
|
deploy:
|
|
94
105
|
provider: rubygems
|
data/exe/colorls
CHANGED
data/lib/colorls/flags.rb
CHANGED
|
@@ -40,8 +40,13 @@ module ColorLS
|
|
|
40
40
|
init_locale
|
|
41
41
|
|
|
42
42
|
@args = ['.'] if @args.empty?
|
|
43
|
+
exit_status_code = 0
|
|
43
44
|
@args.sort!.each_with_index do |path, i|
|
|
44
|
-
|
|
45
|
+
unless File.exist?(path)
|
|
46
|
+
$stderr.puts "\n Specified path '#{path}' doesn't exist.".colorize(:red)
|
|
47
|
+
exit_status_code = 2
|
|
48
|
+
next
|
|
49
|
+
end
|
|
45
50
|
|
|
46
51
|
puts '' if i.positive?
|
|
47
52
|
puts "\n#{path}:" if Dir.exist?(path) && @args.size > 1
|
|
@@ -49,6 +54,7 @@ module ColorLS
|
|
|
49
54
|
rescue SystemCallError => e
|
|
50
55
|
$stderr.puts "#{path}: #{e}".colorize(:red)
|
|
51
56
|
end
|
|
57
|
+
exit_status_code
|
|
52
58
|
end
|
|
53
59
|
|
|
54
60
|
def options
|
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" "September 2020" "colorls 1.4.2" "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.3.pre.
|
|
4
|
+
version: 1.4.3.pre.775
|
|
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-
|
|
11
|
+
date: 2020-10-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: clocale
|