colorls 1.4.4.pre.868 → 1.4.5.pre.875

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: ad36c837294841e9294bbfd96cb175872ed273708b3e0a795d09c7bba4c2808a
4
- data.tar.gz: c9be50c66d40ad3eb5f6b113f0644079531e604504671db54e37842064d075c2
3
+ metadata.gz: 69c7fa254c9d4833031ac4cdf64643bf2c3873b2654e82e3420762fd34261928
4
+ data.tar.gz: c6658c1eb2da5abdadaa2582373aba1eca7b757fa53940ae5d650f4579423903
5
5
  SHA512:
6
- metadata.gz: 275ebc2d464e7b8d63e52acdbaf325c720d3f979b5903710e0174b2da6ee827631ec71967deab6e1bb352be1bbbc5e03794108ba1a2177ce0eba4b0b878e5702
7
- data.tar.gz: a9ebed54ccfdaa4cfba26de2835c9f70c5ffe8406177aeb2a08f45d05c1f7a56b6e94eda64ffe3e663085642945eee55261abf4bb2ad3655f8157e0b5d1fbd2c
6
+ metadata.gz: 27d79f71201501b2e4d4fb7566977abed7dbd0ba3daf0ed172c3b4a755306adf593cb8e17b1b8e0e735a24878796ce8afb22a8c5ea01fd5eabbe5919b783fc76
7
+ data.tar.gz: 1e123393958faec03d8217d31374d91fd6d46621734c4d7c6886852a21314645aac18229ae881c9db78b6189da4be453a821a0d92ed2c0180c26ba1db7dcf6cc
data/colorls.gemspec CHANGED
@@ -77,7 +77,7 @@ Gem::Specification.new do |spec|
77
77
  spec.add_development_dependency 'rspec', '~> 3.7'
78
78
  spec.add_development_dependency 'rspec-its', '~> 1.2'
79
79
  spec.add_development_dependency 'rubocop', '~> 1.11.0'
80
- spec.add_development_dependency 'rubocop-performance', '~> 1.9.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'
data/lib/colorls/core.rb CHANGED
@@ -333,6 +333,7 @@ module ColorLS
333
333
  when file.chardev? then :chardev
334
334
  when file.blockdev? then :blockdev
335
335
  when file.socket? then :socket
336
+ when file.executable? then :executable_file
336
337
  when @files.key?(key) then :recognized_file
337
338
  else :unrecognized_file
338
339
  end
@@ -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
 
@@ -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
@@ -1,6 +1,7 @@
1
1
  # Main Colors
2
2
  unrecognized_file: gold
3
- recognized_file: lime
3
+ recognized_file: yellow
4
+ executable_file: lime
4
5
  dir: dodgerblue
5
6
 
6
7
  # Link
@@ -1,6 +1,7 @@
1
1
  # Main Colors
2
2
  unrecognized_file: darkred
3
3
  recognized_file: darkgreen
4
+ executable_file: green
4
5
  dir: navyblue
5
6
 
6
7
  # Link
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.868
4
+ version: 1.4.5.pre.875
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-04 00:00:00.000000000 Z
11
+ date: 2021-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -238,14 +238,14 @@ dependencies:
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