colorls 1.4.4.pre.869 → 1.4.5.pre.878

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: 9b5582b73fbb413350a02c88085c64ee737033dee38529806cfa371c6e5d8ecf
4
- data.tar.gz: 5ff4f3b00c48513e9adff0fcb9b7ef051e29144943dfe9643898f87569e0e165
3
+ metadata.gz: acf9b676dc6fb409154ade763ace7b32eaf3b743036d09aa9d2f14ee6ff68662
4
+ data.tar.gz: e86e5912442a54501bfc5d133624c04291167e0e2054ed7d323bebfa943aff6f
5
5
  SHA512:
6
- metadata.gz: 818c849b57c872606c0dc5c54f8f99e857ecf08c6db44fb92204700b291cbc3fc6c402dcb8c4a726850cb229de726803e99e44a221c401570c55564a1f2a0a77
7
- data.tar.gz: a0f9eb7e07b6d89b5c245a6d4bc6c7a2aa0b9a280d6aca1491c9502c53a66a6e88b03a969d465e7a0ca440be629d9810f1e150ab28197f1b432ba5db185b468a
6
+ metadata.gz: 2036e26c8c29dc2d37c21bdae4f0eb0f2fbd1165b096f2a018374bc936db23d626fab51811707a1bd5d9e93c3e4b740a41cdf4704224fab6b4c4f56bd76b1d63
7
+ data.tar.gz: d3080b1f9e7cf3fd440353248bb976bb218ef881320ead463a938992d4711d0742d64c73f91356f8496e275c2a05d9492c128dfdb8abf4d76ff3dc243910161c
data/colorls.gemspec CHANGED
@@ -76,8 +76,8 @@ Gem::Specification.new do |spec|
76
76
  spec.add_development_dependency 'ronn', '~> 0'
77
77
  spec.add_development_dependency 'rspec', '~> 3.7'
78
78
  spec.add_development_dependency 'rspec-its', '~> 1.2'
79
- spec.add_development_dependency 'rubocop', '~> 1.11.0'
80
- spec.add_development_dependency 'rubocop-performance', '~> 1.9.0'
79
+ spec.add_development_dependency 'rubocop', '~> 1.12.0'
80
+ spec.add_development_dependency 'rubocop-performance', '~> 1.10.1'
81
81
  spec.add_development_dependency 'rubocop-rake', '~> 0.5'
82
82
  spec.add_development_dependency 'rubocop-rspec', '~> 2.0'
83
83
  spec.add_development_dependency 'rubygems-tasks', '~> 0'
@@ -14,10 +14,12 @@ module ColorLS
14
14
  def initialize(name:, parent:, path: nil, link_info: true)
15
15
  @name = name
16
16
  @parent = parent
17
- @path = path.nil? ? File.join(parent, name) : path
17
+ @path = path.nil? ? File.join(parent, name) : +path
18
18
  @stats = File.lstat(@path)
19
19
  @show_name = nil
20
20
 
21
+ @path.force_encoding(ColorLS.file_encoding)
22
+
21
23
  handle_symlink(@path) if link_info && @stats.symlink?
22
24
  end
23
25
 
data/lib/colorls/flags.rb CHANGED
@@ -261,7 +261,7 @@ EXAMPLES
261
261
  end
262
262
 
263
263
  # show help and exit if the only argument is -h
264
- show_help if !@args.empty? && @args.all? { |arg| arg == '-h' }
264
+ show_help if !@args.empty? && @args.all?('-h')
265
265
 
266
266
  @parser.parse!(@args)
267
267
 
@@ -6,6 +6,6 @@ class String
6
6
  end
7
7
 
8
8
  def uniq
9
- split('').uniq.join
9
+ chars.uniq.join
10
10
  end
11
11
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ColorLS
4
- VERSION = '1.4.3'
4
+ VERSION = '1.4.4'
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" "December 2020" "colorls 1.4.3" "colorls Manual"
4
+ .TH "COLORLS" "1" "January 2021" "colorls 1.4.4" "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.4.pre.869
4
+ version: 1.4.5.pre.878
5
5
  platform: ruby
6
6
  authors:
7
7
  - Athitya Kumar
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-05 00:00:00.000000000 Z
11
+ date: 2021-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -224,28 +224,28 @@ dependencies:
224
224
  requirements:
225
225
  - - "~>"
226
226
  - !ruby/object:Gem::Version
227
- version: 1.11.0
227
+ version: 1.12.0
228
228
  type: :development
229
229
  prerelease: false
230
230
  version_requirements: !ruby/object:Gem::Requirement
231
231
  requirements:
232
232
  - - "~>"
233
233
  - !ruby/object:Gem::Version
234
- version: 1.11.0
234
+ version: 1.12.0
235
235
  - !ruby/object:Gem::Dependency
236
236
  name: rubocop-performance
237
237
  requirement: !ruby/object:Gem::Requirement
238
238
  requirements:
239
239
  - - "~>"
240
240
  - !ruby/object:Gem::Version
241
- version: 1.9.0
241
+ version: 1.10.1
242
242
  type: :development
243
243
  prerelease: false
244
244
  version_requirements: !ruby/object:Gem::Requirement
245
245
  requirements:
246
246
  - - "~>"
247
247
  - !ruby/object:Gem::Version
248
- version: 1.9.0
248
+ version: 1.10.1
249
249
  - !ruby/object:Gem::Dependency
250
250
  name: rubocop-rake
251
251
  requirement: !ruby/object:Gem::Requirement