colorls 1.3.4.pre.670 → 1.3.4.pre.673

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: f249b8fa5de108d3c989ab6790dd0eeb0f0606a6d48f8837c4a27aad786e2502
4
- data.tar.gz: d60bc4c540b32113f6f30d48e19d2fc2c5517061ec8767390d5929c68c99bc96
3
+ metadata.gz: 616ebb0485c477b75ad0d70309718deab6513e756b5c982de4c738987061ee4b
4
+ data.tar.gz: 3513af0cda73e2a0f0729583a73a3cca75c9a1a3e73d0998eed9a58efa2f6b25
5
5
  SHA512:
6
- metadata.gz: 44a0a3ba40c74096526b25283a9eb745d074daefaf7f5d3f00a476596f7e62c0cc98f8f41c0e16c04bd72e03609543e76bfdca1d855876e3b83d6be6e4aee1e3
7
- data.tar.gz: cef18047297eecf989f9dee0f3583d1216759fe2c8bd0bd4ae7b1670c62407537b5361a28655a91e1f324f458eb0a5e3bd9da513477eef41e047319d18d0182b
6
+ metadata.gz: e14903819a1ee8d3aedf73aef6f9002c0d2ee78a29c85ba0a3f12901cf94c5ef61f124c00090f1ee0929bc33dedc1ab735d951ca396e9561bee2d1ff8b10706a
7
+ data.tar.gz: 93d8075e37ccf6435c0e8b5a665690ed2cacfe739448c7a6f149c10865b86c665ed1cd1ae2cac05c4279f7ad57e246b2393e356ba07586d3dad604f80062e214
data/.rubocop.yml CHANGED
@@ -10,7 +10,7 @@ AllCops:
10
10
  - 'lib/yaml/*'
11
11
  - 'lib/**/*.sh'
12
12
  DisplayCopNames: true
13
- TargetRubyVersion: 2.4
13
+ TargetRubyVersion: 2.5
14
14
 
15
15
  # Preferred codebase style ---------------------------------------------
16
16
 
@@ -35,6 +35,12 @@ Layout/SpaceInsideHashLiteralBraces:
35
35
  Layout/ParameterAlignment:
36
36
  EnforcedStyle: with_fixed_indentation
37
37
 
38
+ Lint/RaiseException:
39
+ Enabled: true
40
+
41
+ Lint/StructNewOverride:
42
+ Enabled: true
43
+
38
44
  Style/EmptyElse:
39
45
  EnforcedStyle: empty
40
46
 
@@ -63,6 +69,15 @@ Style/ParallelAssignment:
63
69
  Style/DoubleNegation:
64
70
  Enabled: false
65
71
 
72
+ Style/HashEachMethods:
73
+ Enabled: true
74
+
75
+ Style/HashTransformKeys:
76
+ Enabled: true
77
+
78
+ Style/HashTransformValues:
79
+ Enabled: true
80
+
66
81
  Style/SingleLineBlockParams:
67
82
  Enabled: false
68
83
 
data/.travis.yml CHANGED
@@ -9,7 +9,6 @@ cache:
9
9
  bundler
10
10
 
11
11
  rvm:
12
- - '2.4'
13
12
  - '2.5'
14
13
  - '2.6'
15
14
  - '2.7'
data/README.md CHANGED
@@ -117,7 +117,7 @@ Man pages have been added. Checkout `man colorls`.
117
117
 
118
118
  [(Back to top)](#table-of-contents)
119
119
 
120
- 1. Install Ruby (preferably, version > 2.3)
120
+ 1. Install Ruby (preferably, version >= 2.5)
121
121
  2. Install the patched fonts of powerline nerd-font and/or font-awesome. Have a look at the [Nerd Font README](https://github.com/ryanoasis/nerd-fonts/blob/master/readme.md) for more installation instructions.
122
122
 
123
123
  *Note for `iTerm2` users - Please enable the Nerd Font at iTerm2 > Preferences > Profiles > Text > Non-ASCII font > Hack Regular Nerd Font Complete.*
data/colorls.gemspec CHANGED
@@ -45,7 +45,7 @@ Gem::Specification.new do |spec|
45
45
  spec.homepage = 'https://github.com/athityakumar/colorls'
46
46
  spec.license = 'MIT'
47
47
 
48
- spec.required_ruby_version = '>= 2.4.0'
48
+ spec.required_ruby_version = '>= 2.5.0'
49
49
 
50
50
  spec.files = IO.popen(
51
51
  %w[git ls-files -z], external_encoding: Encoding::ASCII_8BIT
data/lib/colorls/flags.rb CHANGED
@@ -42,15 +42,13 @@ module ColorLS
42
42
 
43
43
  @args = [Dir.pwd] if @args.empty?
44
44
  @args.sort!.each_with_index do |path, i|
45
- begin
46
- next STDERR.puts "\n Specified path '#{path}' doesn't exist.".colorize(:red) unless File.exist?(path)
47
-
48
- puts '' if i.positive?
49
- puts "\n#{path}:" if Dir.exist?(path) && @args.size > 1
50
- Core.new(path, **@opts).ls
51
- rescue SystemCallError => e
52
- STDERR.puts "#{path}: #{e}".colorize(:red)
53
- end
45
+ next STDERR.puts "\n Specified path '#{path}' doesn't exist.".colorize(:red) unless File.exist?(path)
46
+
47
+ puts '' if i.positive?
48
+ puts "\n#{path}:" if Dir.exist?(path) && @args.size > 1
49
+ Core.new(path, **@opts).ls
50
+ rescue SystemCallError => e
51
+ STDERR.puts "#{path}: #{e}".colorize(:red)
54
52
  end
55
53
  end
56
54
 
@@ -12,16 +12,6 @@ class String
12
12
  def uniq
13
13
  split('').uniq.join
14
14
  end
15
-
16
- unless instance_methods.include? :delete_prefix
17
- define_method(:delete_prefix) do |prefix|
18
- if start_with? prefix
19
- slice(prefix.length..-1)
20
- else
21
- slice(0..length)
22
- end
23
- end
24
- end
25
15
  end
26
16
 
27
17
  class Hash
@@ -33,7 +23,3 @@ class Hash
33
23
  new_hash
34
24
  end
35
25
  end
36
-
37
- class Array
38
- define_method(:sum) { inject(:+) } unless instance_methods.include? :sum
39
- 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" "July 2019" "colorls 1.2.0" "colorls Manual"
4
+ .TH "COLORLS" "1" "July 2019" "colorls 1.3.3" "colorls Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBcolorls\fR \- list directory contents with colors and icons
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: colorls
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4.pre.670
4
+ version: 1.3.4.pre.673
5
5
  platform: ruby
6
6
  authors:
7
7
  - Athitya Kumar
@@ -328,7 +328,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
328
328
  requirements:
329
329
  - - ">="
330
330
  - !ruby/object:Gem::Version
331
- version: 2.4.0
331
+ version: 2.5.0
332
332
  required_rubygems_version: !ruby/object:Gem::Requirement
333
333
  requirements:
334
334
  - - ">"