colorls 1.4.1.pre.681 → 1.4.1.pre.686

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: 247dd152032099874541d586d6894dfb95d91eae451b202b44bba62a2d2b6616
4
- data.tar.gz: aeffa31148c7104e8f5633427e19a4a2ebf47af87ec65f7277f30a5706fb5a50
3
+ metadata.gz: 1d006f920f476e61e88946fb251325b56b22ede5c88f98ced55d1ae5d372f87f
4
+ data.tar.gz: 89d3897d11fd52a554476ea071db32d03e1dd347b7e892ac41f01b846b3e2eb5
5
5
  SHA512:
6
- metadata.gz: a30fc2cd691e6766ae34755bd9136b371359b9a600c8569f3d735536b69f8731eae5a1ac8048e1a4afba5a43fd55972150bca9f0193368a9f75f4f391d7e6e62
7
- data.tar.gz: dfb7a6ec4ce768822b0477d3bb80f4c5a4d93689fe96cd1394127f93fddb43c2cf7f753681b481118524120bf6825dcc48ea075cef8c83ddd2192bf501e92bcb
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 = [Dir.pwd] if @args.empty?
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.3.3" "colorls Manual"
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.681
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-08 00:00:00.000000000 Z
11
+ date: 2020-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clocale