colorls 1.4.2.pre.691 → 1.4.2.pre.705

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: 4552611b2d76e250a84b6924fc25fa6120cd9e5f9c1dc3597217cfc9df4a58a5
4
- data.tar.gz: f0eeb6cabe547812b62794616f51c00af4a1999ae4aa9ff5fa9e4e470516ea7f
3
+ metadata.gz: 5ebc3de1a48c74a4e4dfcf8d9fe6bb437ae4a3a515e977048db2f76a9a842e81
4
+ data.tar.gz: a126be44eef76d457761f3770a34539dc5bf2fcc3975a6dc82a83a027059bd43
5
5
  SHA512:
6
- metadata.gz: 5c5377f92d449fbe7fecb1b86fc31677b6e7938880e52ce348cda88d74c19c2396ba650e1c5adb6dcb4d94861a2a0c6a7009a27a4446af3d20b7a33390963bc0
7
- data.tar.gz: f1dd1d1fe0dadd34f285b8e5a5339d994eafe04217bb8032b8840c568f0f258ca12bb74adc1e3de628f1fae3f0c5266fb957a128532416d5dfab67e4bc95d569
6
+ metadata.gz: 106450b0cff0e84249e27dfca5ed0ace67873d10a93c3fa0b7c5fc80b2b4c2303c4688720c7cdd8a48a16a730d5376f95ad32150e38194d30a39ed34057141c9
7
+ data.tar.gz: e1dc4860c0ec447789d04081c3bcc1726660163393438fd0c5ed7b36afb1cde40eac95332ab6df18ade64a84addc2b082b88bd4fa060a3980c508373ef6761c7
data/README.md CHANGED
@@ -163,7 +163,9 @@ You can overwrite the existing icons and colors mapping by copying the yaml file
163
163
 
164
164
  - To overwrite color mapping :
165
165
 
166
- Please have a look at the [list of supported color names](https://github.com/sickill/rainbow#color-list). Let's say that you're using the dark color scheme and would like to change the color of untracked file (`??`) in the `--git-status` flag to yellow. Copy the defaut `dark_colors.yaml` and change it.
166
+ Please have a look at the [list of supported color names](https://github.com/sickill/rainbow#color-list). You may also use a color hex code as long as it is quoted within the YAML file and prefaced with a `#` symbol.
167
+
168
+ Let's say that you're using the dark color scheme and would like to change the color of untracked file (`??`) in the `--git-status` flag to yellow. Copy the defaut `dark_colors.yaml` and change it.
167
169
 
168
170
  ```sh
169
171
  cp $(dirname $(gem which colorls))/yaml/dark_colors.yaml ~/.config/colorls/dark_colors.yaml`
@@ -175,6 +177,12 @@ You can overwrite the existing icons and colors mapping by copying the yaml file
175
177
  untracked: yellow
176
178
  ```
177
179
 
180
+ Or, using hex color codes:
181
+
182
+ ```
183
+ untracked: '#FFFF00'
184
+ ```
185
+
178
186
  - To overwrite icon mapping :
179
187
 
180
188
  Please have a look at the [list of supported icons](https://nerdfonts.com/). Let's say you want to add an icon for swift files. Copy the default `files.yaml` and change it.
@@ -72,8 +72,8 @@ Gem::Specification.new do |spec|
72
72
  spec.add_development_dependency 'ronn', '~> 0'
73
73
  spec.add_development_dependency 'rspec', '~> 3.7'
74
74
  spec.add_development_dependency 'rspec-its', '~> 1.2'
75
- spec.add_development_dependency 'rubocop', '~> 0.83.0'
76
- spec.add_development_dependency 'rubocop-performance', '~> 1.5.0'
75
+ spec.add_development_dependency 'rubocop', '~> 0.86.0'
76
+ spec.add_development_dependency 'rubocop-performance', '~> 1.6.1'
77
77
  spec.add_development_dependency 'rubocop-rspec', '~> 1.27'
78
78
  spec.add_development_dependency 'rubygems-tasks', '~> 0'
79
79
  spec.add_development_dependency 'simplecov', '~> 0.18.0'
@@ -2,7 +2,7 @@
2
2
 
3
3
  class String
4
4
  def colorize(color)
5
- self.color(color.to_sym)
5
+ self.color(color)
6
6
  end
7
7
 
8
8
  def remove(pattern)
@@ -16,7 +16,7 @@ module ColorLS
16
16
 
17
17
  return yaml unless aliase
18
18
 
19
- yaml.to_a.map! { |k, v| [k, v.to_sym] }.to_h
19
+ yaml.to_a.map! { |k, v| v.include?('#') ? [k, v] : [k, v.to_sym] }.to_h
20
20
  end
21
21
 
22
22
  def read_file(filepath)
@@ -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.4.0" "colorls Manual"
4
+ .TH "COLORLS" "1" "May 2020" "colorls 1.4.1" "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.2.pre.691
4
+ version: 1.4.2.pre.705
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-12 00:00:00.000000000 Z
11
+ date: 2020-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clocale
@@ -190,28 +190,28 @@ dependencies:
190
190
  requirements:
191
191
  - - "~>"
192
192
  - !ruby/object:Gem::Version
193
- version: 0.83.0
193
+ version: 0.86.0
194
194
  type: :development
195
195
  prerelease: false
196
196
  version_requirements: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - "~>"
199
199
  - !ruby/object:Gem::Version
200
- version: 0.83.0
200
+ version: 0.86.0
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: rubocop-performance
203
203
  requirement: !ruby/object:Gem::Requirement
204
204
  requirements:
205
205
  - - "~>"
206
206
  - !ruby/object:Gem::Version
207
- version: 1.5.0
207
+ version: 1.6.1
208
208
  type: :development
209
209
  prerelease: false
210
210
  version_requirements: !ruby/object:Gem::Requirement
211
211
  requirements:
212
212
  - - "~>"
213
213
  - !ruby/object:Gem::Version
214
- version: 1.5.0
214
+ version: 1.6.1
215
215
  - !ruby/object:Gem::Dependency
216
216
  name: rubocop-rspec
217
217
  requirement: !ruby/object:Gem::Requirement