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
Claudio Bley
141a8e5fbe
Fix rubocop offense for Style/MultilineWhenThen
2019-07-24 18:21:20 +02:00
dependabot-preview[bot]
1561e09c68
Update rubocop requirement from ~> 0.72.0 to ~> 0.73.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.72.0...v0.73.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-16 23:13:49 +00:00
Claudio Bley
4f4ca3f1a6
Merge pull request #305 from avdv/fix-alignment-links
...
Align number of link column in long listing
2019-07-07 23:42:28 +02:00
Claudio Bley
ac9734d879
Align number of link column in long listing
...
This fixes the misalignment of files in a long listing when some files have a
different number of characters in the links column.
Instead of iterating three times over the @contents array, in order to compute
the sizes of the variant columns, use a single loop to compute the maximum size
for each column in a one pass.
2019-07-07 23:09:22 +02:00
dependabot-preview[bot]
8d08194262
Merge pull request #301 from athityakumar/dependabot/bundler/simplecov-tw-0.17.0
2019-07-03 05:09:19 +00:00
dependabot-preview[bot]
423c673f0d
Update simplecov requirement from ~> 0.16.1 to ~> 0.17.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.16.1...v0.17.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-02 23:12:59 +00:00
Claudio Bley
926d31cd89
Drop support for Ruby 2.3 ( #300 )
...
Drop support for Ruby 2.3
2019-07-01 23:41:41 +02:00
Claudio Bley
205184662b
Refactor rendering ( #237 )
...
Refactor rendering
2019-07-01 23:36:57 +02:00
Claudio Bley
55423123a1
Drop support for Ruby 2.3
...
It reached EOL on March 31, 2019, and no longer receives patches.
See https://www.ruby-lang.org/en/news/2019/03/31/support-of-ruby-2-3-has-ended/
2019-07-01 23:34:18 +02:00
Claudio Bley
dfd572310a
Add --format=vertical
and -C
flags
...
* add and wire up `VerticalLayout` which is now the default
* adapt flags spec to use single-column layout for testing sort order
since the output is hard to verify when in vertical format
Fixes #189 .
2019-07-01 23:27:53 +02:00
Claudio Bley
d528bf18ef
Introduce Layout classes and use them
...
* add `Layout` base class which contains the base (binary) algorithm
for finding the maximum amount of columns fitting the given limit
* add `HorizontalLayout` and use it in `Core`
* add `SingleColumnLayout` and use it in `Core`
2019-07-01 23:16:33 +02:00
Claudio Bley
1dad6e0f15
Only add padding when necessary
...
Only when using more than one column, empty space should be added.
Instead of multiple print calls, we construct the complete line and print it.
2019-07-01 23:16:33 +02:00
Claudio Bley
41c933658b
Simplify formatting in ColorLS#fetch_string
2019-07-01 23:16:33 +02:00
Paul McCarthy
ec0ed26458
Fix typo accross => across
2019-07-01 23:12:45 +02:00
Claudio Bley
04c1e5a6dd
Refactor git status handling, add some tests ( #299 )
...
Refactor git status handling, add some tests
2019-07-01 23:07:50 +02:00
Claudio Bley
97c9570437
Refactor git status handling, add some tests
2019-07-01 22:59:27 +02:00
Claudio Bley
adb38a4eb5
Merge pull request #298 from avdv/hard-links
...
Show number of hard links in long listing
2019-06-30 19:21:21 +02:00
Claudio Bley
56a0ec6903
Show number of hard links in long listing
...
Fixes #293
2019-06-30 19:05:00 +02:00