Commit graph

553 commits

Author SHA1 Message Date
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
Claudio Bley
9d2dd63944 rubocop: Rename Layout/AlignParameters cop to Layout/ParameterAlignment 2019-11-28 14:32:03 +01:00
dependabot-preview[bot]
7f408a741b
Update rubocop requirement from ~> 0.76.0 to ~> 0.77.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.76.0...v0.77.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-27 23:13:09 +00:00
dependabot-preview[bot]
53c0ed6091
Merge pull request #323 from athityakumar/dependabot/bundler/rubocop-tw-0.76.0 2019-10-29 07:22:07 +00:00
dependabot-preview[bot]
0777429544
Update rubocop requirement from ~> 0.75.0 to ~> 0.76.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.75.0...v0.76.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-28 23:12:30 +00:00
dependabot-preview[bot]
9d8c13a64c
Merge pull request #317 from athityakumar/dependabot/bundler/rubocop-performance-tw-1.5.0 2019-10-02 06:40:23 +00:00
dependabot-preview[bot]
53b4ea127b
Update rubocop-performance requirement from ~> 1.4.0 to ~> 1.5.0
Updates the requirements on [rubocop-performance](https://github.com/rubocop-hq/rubocop-performance) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop-performance/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop-performance/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop-performance/compare/v1.4.0...v1.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-02 04:44:09 +00:00
dependabot-preview[bot]
300d6a4fed
Merge pull request #315 from athityakumar/dependabot/bundler/rubocop-tw-0.75.0 2019-10-01 07:50:34 +00:00
dependabot-preview[bot]
d4dcdab479
Update rubocop requirement from ~> 0.74.0 to ~> 0.75.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.74.0...v0.75.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-01 04:13:12 +00:00
dependabot-preview[bot]
4885cdd791
Merge pull request #314 from athityakumar/dependabot/bundler/rake-tw-13 2019-09-28 09:00:04 +00:00
dependabot-preview[bot]
99049642a4
Update rake requirement from ~> 12 to ~> 13
Updates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version.
- [Release notes](https://github.com/ruby/rake/releases)
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)
- [Commits](https://github.com/ruby/rake/compare/v12.0.0...v13.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-27 23:15:21 +00:00
dependabot-preview[bot]
cb4fa39ff7
Merge pull request #309 from athityakumar/dependabot/bundler/rubocop-tw-0.74.0 2019-08-01 08:14:11 +00:00
dependabot-preview[bot]
2418d6efbb
Update rubocop requirement from ~> 0.73.0 to ~> 0.74.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.73.0...v0.74.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-31 23:12:19 +00:00
dependabot-preview[bot]
bd008ebde8
Merge pull request #307 from athityakumar/dependabot/bundler/rubocop-tw-0.73.0 2019-07-24 16:26:18 +00:00