Commit graph

553 commits

Author SHA1 Message Date
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
dependabot-preview[bot]
d6a04d2116
Merge pull request #296 from athityakumar/dependabot/bundler/rubocop-tw-0.72.0 2019-06-26 06:15:34 +00:00
dependabot-preview[bot]
12c33538ef
Update rubocop requirement from ~> 0.71.0 to ~> 0.72.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.71.0...v0.72.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-25 23:12:48 +00:00
dependabot-preview[bot]
d2f4eda566
Merge pull request #295 from athityakumar/dependabot/bundler/rubocop-performance-tw-1.4.0 2019-06-21 06:36:34 +00:00
dependabot-preview[bot]
f8d9e444f7
Update rubocop-performance requirement from ~> 1.3.0 to ~> 1.4.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.3.0...v1.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 23:13:09 +00:00
dependabot-preview[bot]
de996b438c
Merge pull request #292 from athityakumar/dependabot/bundler/rubocop-tw-0.71.0 2019-05-31 06:38:29 +00:00
dependabot-preview[bot]
e2186588c4
Update rubocop requirement from ~> 0.70.0 to ~> 0.71.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.70.0...v0.71.0)
2019-05-30 23:12:38 +00:00
Claudio Bley
6ca56db1ea
Merge pull request #290 from mariuz/patch-1
waffle.io is shutdown
2019-05-28 10:36:37 +02:00
Popa Marius Adrian
e0284d4413
waffle.io is shutdown
https://help.waffle.io/waffle-shutdown/waffle-shutdown-tldr

This site can’t be reached waffle.io’s server IP address could not be found.
2019-05-28 11:34:04 +03:00
Claudio Bley
590ecb1759
Merge pull request #289 from vfonic/patch-1
Update ruby supported version to > 2.2
2019-05-24 16:47:28 +02:00
Viktor Fonic
2a4730f9c6
Update ruby supported version to > 2.2 2019-05-24 20:53:18 +07:00
dependabot[bot]
cdf01225ab
Merge pull request #287 from athityakumar/dependabot/bundler/rubocop-tw-0.70.0 2019-05-22 08:50:06 +00:00
dependabot[bot]
45158e8099
Update rubocop requirement from ~> 0.69.0 to ~> 0.70.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.69.0...v0.70.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-21 23:12:39 +00:00
dependabot[bot]
82d265bd21
Merge pull request #285 from athityakumar/dependabot/bundler/rubocop-performance-tw-1.3.0 2019-05-16 11:09:53 +00:00
dependabot[bot]
4cf2a5c6c1
Update rubocop-performance requirement from ~> 1.2.0 to ~> 1.3.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.2.0...v1.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-14 07:41:17 +00:00
dependabot[bot]
5977e3d46a
Merge pull request #286 from athityakumar/dependabot/bundler/rubocop-tw-0.69.0 2019-05-14 06:23:57 +00:00
dependabot[bot]
2d82d0d9cf
Update rubocop requirement from ~> 0.68.0 to ~> 0.69.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.68.0...v0.69.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-13 23:13:40 +00:00
dependabot[bot]
fa5f9d7a4b
Merge pull request #283 from athityakumar/dependabot/bundler/rubocop-performance-tw-1.2.0 2019-05-07 06:20:45 +00:00
dependabot[bot]
2d6e3e1335
Update rubocop-performance requirement from ~> 1.1.0 to ~> 1.2.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.1.0...v1.2.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-06 23:12:50 +00:00
dependabot[bot]
0762ab46eb
Merge pull request #281 from athityakumar/dependabot/bundler/rubocop-tw-0.68.0 2019-04-30 06:13:25 +00:00
dependabot[bot]
07b5e280d2
Update rubocop requirement from ~> 0.67.2 to ~> 0.68.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.67.2...v0.68.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-29 23:12:05 +00:00
Claudio Bley
4ffd056c15 travis: Fix deployment condition
When building a tag on travis, the tag name is used as the branch.

By default, only the `master` branch triggers a deployment, so for a version
tag the deployment to rubygems will be skipped.

This commit fixes it, by directly matching on the `TRAVIS_BRANCH` and
`TRAVIS_TAG` variables.
2019-04-09 20:04:39 +02:00
Claudio Bley
41669c94a3 Release version 1.2.0 2019-04-09 18:52:11 +02:00
Claudio Bley
ab6f14b178
Merge pull request #277 from avdv/git-status-dots
Handle git status for `.` and `..` properly
2019-04-09 18:34:06 +02:00
Claudio Bley
cdf1f86ca2 Use rubocop-performance 2019-04-09 18:28:34 +02:00
Claudio Bley
41c274b883 Disable the Style/StderrPuts cop
I do not want to use `warn` since these errors should not be suppressed. And
I always want to use `STDERR`, not `$stderr`.
2019-04-09 18:25:06 +02:00
Claudio Bley
7454814894 Handle git status for . and .. properly
The git status is only computed for the given directory and is stored as
a Hash mapping relative paths to their mode string.

For a directory, the git status is comprised of all the statuses of its files
itself and all its sub directories.

The current directory's prefix is just an empty string matching all files inside
the `@git_status` Hash.

Asking for the status of the parent directory is pointless, we do not compute it
(yet).
2019-04-08 21:47:18 +02:00
dependabot[bot]
2366fa1fde
Merge pull request #276 from athityakumar/dependabot/bundler/rubocop-tw-0.67.2 2019-04-08 10:53:19 +00:00
dependabot[bot]
7271125244
Update rubocop requirement from ~> 0.66.0 to ~> 0.67.2
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.66.0...v0.67.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-05 23:11:39 +00:00
dependabot[bot]
fdacb217b3
Merge pull request #271 from athityakumar/dependabot/bundler/rubocop-tw-0.66.0 2019-03-19 06:06:17 +00:00
dependabot[bot]
8e78408027
Update rubocop requirement from ~> 0.65.0 to ~> 0.66.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.65.0...v0.66.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-18 23:17:00 +00:00
Claudio Bley
207b088b3d
Merge pull request #270 from avdv/fix-specs-exit-coverage
Fix specs exit coverage
2019-03-15 00:04:02 +01:00
Claudio Bley
3a9e95c653 Use RSpec's output matcher instead of capture_output 2019-03-14 23:50:53 +01:00