Commit graph

666 commits

Author SHA1 Message Date
dependabot-preview[bot]
25427c6efe
Update rubocop requirement from ~> 0.84.0 to ~> 0.85.0
Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.84.0...v0.85.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-01 23:12:05 +00:00
Claudio Bley
2f3cdbdd78
Merge pull request #365 from bigpick/support-hex-colors
Close #312
2020-05-28 22:23:16 +02:00
George Pickering
6d0ac10ec5 Update README with hexstring color example 2020-05-28 15:39:03 -04:00
George Pickering
e345cfca8b Update yaml and monkeys to support hexstring colors 2020-05-28 15:02:37 -04:00
dependabot-preview[bot]
b2def8eea9
Merge pull request #361 from athityakumar/dependabot/bundler/rubocop-tw-0.84.0 2020-05-22 06:43:05 +00:00
dependabot-preview[bot]
15ecc6fa0e
Update rubocop requirement from ~> 0.83.0 to ~> 0.84.0
Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.83.0...v0.84.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-21 23:12:57 +00:00
dependabot-preview[bot]
3c294cc112
Merge pull request #359 from athityakumar/dependabot/bundler/rubocop-tw-0.83.0 2020-05-12 05:47:15 +00:00
dependabot-preview[bot]
a7cda1737d
Update rubocop requirement from ~> 0.82.0 to ~> 0.83.0
Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.82.0...v0.83.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-11 23:12:02 +00:00
Claudio Bley
1a2d3ad6c1 Prepare release 1.4.1 2020-05-10 21:26:43 +02:00
Claudio Bley
40079e1a96
Merge pull request #357 from avdv/fix-exception-in-unlinked-directory 2020-05-10 21:25:36 +02:00
Claudio Bley
f34453bce3 Workaround Errno::ENOENT error in rubygems
When trying to `require` a gem running in an unlinked directory, an exception is
thrown because `Dir.pwd` is called (see rubygems/rubygems#3087).

Until the fix lands in an official release, we monkey patch `Dir.pwd` to return
'/' if a `Errno::ENOENT` exception is raised while loading the colorls gem.

This should work for all Unixes. On Windows, this error cannot happen since you
cannot unlink a directory which is still in use by a process.

Fixes #351.
2020-05-10 21:23:07 +02:00
Claudio Bley
f8674d46df Prepare release 1.4.0 2020-05-08 22:27:51 +02:00
Claudio Bley
53a6bef959 Directly use Unicode symbols in yaml config 2020-05-08 22:12:35 +02:00
dependabot-preview[bot]
5d8b8288d7
Merge pull request #355 from athityakumar/dependabot/bundler/rubocop-tw-0.82.0 2020-04-20 08:29:23 +00:00
Claudio Bley
0f9f01cdb1 Enable all newly introduced cops automatically
When Rubocop introduces new rules, existing code may violate them unknowingly.

That's why they are in a "pending" state initially and need to be enabled
explicitly:

```
The following cops were added to RuboCop, but are not configured. Please set
Enabled to either `true` or `false` in your `.rubocop.yml` file:

 - Layout/SpaceAroundMethodCallOperator (0.82)

 - Style/ExponentialNotation (0.82)

For more information: https://docs.rubocop.org/en/latest/versioning/
```

Since we never automatically let gem upgrade rubocop in this project, it is
safe to enable all pending cops globally. This way new cops are not silenced and
one has to deal with them when upgrading the dependency on Rubocop.
2020-04-20 10:20:10 +02:00
dependabot-preview[bot]
81721f80b8
Update rubocop requirement from ~> 0.81.0 to ~> 0.82.0
Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.81.0...v0.82.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-16 23:13:12 +00:00
Claudio Bley
9c37fb2d9e
Merge pull request #343 from avdv/rescue-setlocale 2020-04-17 00:31:06 +02:00
Claudio Bley
825e9f711c Only warn if locale settings are broken
Keep running if calling `setlocale` fails, because of invalid locale settings.

Fixes #335.
2020-04-17 00:21:11 +02:00
Claudio Bley
2afd28b69b
Merge pull request #354 from avdv/drop-ruby-2.4 2020-04-16 22:55:29 +02:00
Claudio Bley
86cfa2f5cf Drop support for Ruby 2.4
It reached EOL on March 31, 2020, and no longer receives patches.

See https://www.ruby-lang.org/en/news/2020/04/05/support-of-ruby-2-4-has-ended/
2020-04-16 22:49:54 +02:00
Claudio Bley
68436f9f73 Enable pending cops
```
The following cops were added to RuboCop, but are not configured. Please set Enabled to either `true` or `false` in your `.rubocop.yml` file:
 - Lint/RaiseException (0.81)
 - Lint/StructNewOverride (0.81)
 - Style/HashEachMethods (0.80)
 - Style/HashTransformKeys (0.80)
 - Style/HashTransformValues (0.80)
For more information: https://docs.rubocop.org/en/latest/versioning/
```
2020-04-16 22:20:13 +02:00
Claudio Bley
1234d82587
Merge pull request #353 from avdv/fix-352 2020-04-16 22:10:23 +02:00
Claudio Bley
73e4de9378 Use ASCII_8BIT for paths and directory entries
On Unix systems the encoding of file names is specified by the user via the
locale settings.

In order to avoid encoding problems simply read file names in ASCII 8 bit
encoding and try to convert to the external encoding while replacing undefined
characters.

Also, does not show an icon if the external encoding does not support it and
shows a `=` instead of a check mark for git status.

Fixes #352.
2020-04-16 21:58:39 +02:00
dependabot-preview[bot]
7e84eded0c
Merge pull request #350 from athityakumar/dependabot/bundler/rubocop-tw-0.81.0 2020-04-03 06:50:25 +00:00
dependabot-preview[bot]
7dfdf338c3
Update rubocop requirement from ~> 0.80.0 to ~> 0.81.0
Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.80.0...v0.81.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-02 23:12:09 +00:00
Athitya Kumar
ea2cc0f052
Merge pull request #348 from maxwellainatchi/patch-1
case-insensitive directory matching
2020-03-17 08:08:04 +05:30
Max Ainatchi
8b6ba5ee2f
case-insensitive directory matching
Check directories case-insensitively, per https://github.com/athityakumar/colorls/issues/325
2020-03-16 17:32:17 -04:00
dependabot-preview[bot]
ed2c3c372b
Merge pull request #345 from athityakumar/dependabot/bundler/rubocop-tw-0.80.0 2020-02-25 09:34:05 +00:00
dependabot-preview[bot]
e466f7a5b7
Update rubocop requirement from ~> 0.79.0 to ~> 0.80.0
Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.79.0...v0.80.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-18 23:12:30 +00:00
Claudio Bley
5640a6e104
Prepare release 1.3.3 2020-01-31 09:27:21 +01:00
Claudio Bley
e4a809873d
Fix exception when permission denied on symlinks (#340)
Fix exception when permission denied on symlinks
2020-01-31 09:26:25 +01:00
Claudio Bley
6b2cbdc17d Fix exception when permission denied on symlinks
Fixes #338.
2020-01-31 08:57:55 +01:00
dependabot-preview[bot]
4befc68484
Merge pull request #339 from athityakumar/dependabot/bundler/simplecov-tw-0.18.0 2020-01-29 09:58:27 +00:00
dependabot-preview[bot]
4c3911ec0c
Update simplecov requirement from ~> 0.17.0 to ~> 0.18.0
Updates the requirements on [simplecov](https://github.com/colszowka/simplecov) to permit the latest version.
- [Release notes](https://github.com/colszowka/simplecov/releases)
- [Changelog](https://github.com/colszowka/simplecov/blob/master/CHANGELOG.md)
- [Commits](https://github.com/colszowka/simplecov/compare/v0.17.0...v0.18.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-28 23:12:17 +00:00
Claudio Bley
f451476238
Prepare release 1.3.2
[skip ci]
2020-01-24 09:53:08 +01:00
Claudio Bley
11107bd7b6
Fix git processing (#337)
Fix regression in 1.3.x where git status handling was broken.
2020-01-24 09:51:57 +01:00
Claudio Bley
fb39a9da6d Correct git status for directories without changes
git does not report any status for empty directories, and it also does not
report any status for directories without any modified, untracked or ignored
files.

To correctly show the status, we need to check whether the directory is empty if
git did not report any status codes. When empty, show it as "not interesting",
otherwise the "no changes" green check mark is shown.

Note, I am specifically not using the untracked marker, as that would mean there
is some interesting file inside the directory which could be added.

Fixes #334.
2020-01-24 09:22:43 +01:00
Claudio Bley
d0244c2aa7 Fix git output showing no changes
Fixes #336.
2020-01-23 14:41:29 +01:00
Claudio Bley
b43a47608c Fix rubocop warning, move LineLength into Layout namespace
```
.rubocop.yml: Metrics/LineLength has the wrong namespace - should be Layout
```
2020-01-20 21:37:20 +01:00
Claudio Bley
6c51cd974d Bump VERSION to 1.3.1 2020-01-08 22:32:04 +01:00
Claudio Bley
bbda8b8706
Ruby 2.7 support (#331)
* add Ruby 2.7.0 to build matrix
* fix deprecation warning
2020-01-07 22:52:52 +01:00
Claudio Bley
524a9b6ed2 Use git commit date of man page when generating
The last change to a file is not necessarily the one with the latest author date,
but we want to get the last time the man page was changed (on some branch) and
thus it makes more sense to use the commit date rather than the author date.
2020-01-07 22:43:46 +01:00
Claudio Bley
d4aa862f79 Fix deprecation warning on Ruby 2.7
```
lib/colorls/flags.rb:50: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
lib/colorls/core.rb:5: warning: The called method `initialize is defined here
```
2020-01-07 22:08:02 +01:00
Claudio Bley
ee54e9ba22 travis: Add Ruby 2.7 to build matrix
Ruby 2.7.0 has been relased on 25th Dec 2019.
2020-01-07 22:06:47 +01:00
dependabot-preview[bot]
50ee8da53f
Merge pull request #329 from athityakumar/dependabot/bundler/rubocop-tw-0.79.0 2020-01-06 23:26:38 +00:00
dependabot-preview[bot]
d5f248cfa2
Update rubocop requirement from ~> 0.78.0 to ~> 0.79.0
Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.78.0...v0.79.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 23:12:41 +00:00
dependabot-preview[bot]
1faadbdcd4
Merge pull request #327 from athityakumar/dependabot/bundler/rubocop-tw-0.78.0 2019-12-20 12:03:32 +00:00
Claudio Bley
fc3a91bffe travis: Do not upgrade gem any more
This lets the build timeout:

```
Installing RubyGems 3.1.1
  Successfully built RubyGem
  Name: bundler
  Version: 2.1.0
  File: bundler-2.1.0.gem

bundler's executable "bundle" conflicts with /home/travis/.rvm/rubies/ruby-2.4.6/bin/bundle

Overwrite the executable? [yN]
```
2019-12-20 12:53:06 +01:00
dependabot-preview[bot]
14eb5538f9
Update rubocop requirement from ~> 0.77.0 to ~> 0.78.0
Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.77.0...v0.78.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-18 23:12:22 +00:00
dependabot-preview[bot]
cc0640ff8d
Merge pull request #324 from athityakumar/dependabot/bundler/rubocop-tw-0.77.0 2019-12-12 08:57:47 +00:00