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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99f198ac8a3e7f2d71f62a6adfbf214253cbef8653597096d7879d1515400d98
4
- data.tar.gz: cd669c0c3a9671905e40961f1d30fdebb7a30267133fd9306cd216d8e18d6f4a
3
+ metadata.gz: 6c8823a85931d7bb843c8389c63dffc368f5e98324a4c5119045a0ec6ce885b0
4
+ data.tar.gz: ae496670677fefa0c647d2b7e8eef704ea50640dbf92d04526588ffaa33e58b6
5
5
  SHA512:
6
- metadata.gz: aae55d1624789599bb902cf945483cb85402e508eb7ba25c89681786fa96977ebe3c5c2068799445d3ce20693f035df844c914d4f442dd455d21070c4c1d22d0
7
- data.tar.gz: d76fa70f1c02ac115851cee9627db77bf6d5fb6513065cc98d27afac7596c37dcdbe63fb522463c856cc1bab731f7d5bbf584ea9e317df6b7e9b4d80868ee124
6
+ metadata.gz: a09991ebb8e84a732a729fe6f06bde0b671b00a07b4ea749c829d2d62a53b8f3e71770423d02427fd4197a3843a41dda792b680e0d3e8c0e337b56727a897980
7
+ data.tar.gz: 0d213e4ad76b85b77c4bdab07860549a497256a3de28681bc61211d36191c346bafc37954a57857bf350d117520af43d74ee87524f1b659ed9e8b630cc573d8f
@@ -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
@@ -23,4 +23,4 @@ require 'colorls'
23
23
  $loading = false
24
24
  # rubocop:enable Style/GlobalVars
25
25
 
26
- ColorLS::Flags.new(*ARGV).process
26
+ exit ColorLS::Flags.new(*ARGV).process
@@ -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
- next $stderr.puts "\n Specified path '#{path}' doesn't exist.".colorize(:red) unless File.exist?(path)
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
@@ -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" "May 2020" "colorls 1.4.2" "colorls Manual"
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.773
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-09-26 00:00:00.000000000 Z
11
+ date: 2020-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clocale