Commit graph

390 commits

Author SHA1 Message Date
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
Claudio Bley
c0d9266378 Fix spec failures due to calling exit 2019-03-14 23:37:55 +01:00
Claudio Bley
5b7b583733
Merge pull request #269 from avdv/ignore-h-option
Add `--human-readable` option for compatibility with GNU ls
2019-03-14 15:28:34 +01:00
Claudio Bley
6d6d121553 Add --human-readable option for compatibility with GNU ls
* make `-h` an alias for `--human-readable`
* both options are simply ignored when used with an argument or another option
* running `colorls -h` still shows the help text since just as before
2019-03-14 14:48:19 +01:00
Claudio Bley
3fb904614d
Merge pull request #268 from avdv/git-prefix
Improve git status handling

Close #265
2019-03-12 11:25:17 +01:00
Claudio Bley
c92b5c59a4 Fix git status reporting for file arguments 2019-03-11 23:42:38 +01:00
Claudio Bley
6f500722d0 Add String#delete_prefix method for Ruby < 2.5 2019-03-11 23:17:52 +01:00
Claudio Bley
b5caa35de5 Compute git status relative to the actual directory
Using the `--show-prefix` option for `git ref-parse` simplifies determining the
status for the child items.

Previsouly, `File.realdirpath` was used to determine an absolute path, but this
method returns a path without symlinks. This caused status to be reported about
the link target instead of the symlink.
2019-03-11 23:17:52 +01:00
Claudio Bley
1c5f5a0292
Merge pull request #261 from avdv/alpha-releases
Create prereleases on rubygems.
2019-02-26 22:06:05 +01:00
Claudio Bley
e945c3ae7d Publish prereleases to rubygems
By default `gem list` only shows proper releases, use `gem list -r --pre` in
order to list prereleases too.

Use `gem install colorls --pre` to install a prerelease.

See [here](https://guides.rubygems.org/patterns/#prerelease-gems) for details.
2019-02-26 21:57:25 +01:00
Claudio Bley
b354c01031 travis: Automatically deploy to rubygems 2019-02-26 21:42:09 +01:00
dependabot[bot]
2deb4411e5
Merge pull request #258 from athityakumar/dependabot/bundler/rubocop-tw-0.65.0 2019-02-20 19:43:17 +00:00
dependabot[bot]
bafe6e2731
Update rubocop requirement from ~> 0.64.0 to ~> 0.65.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.64.0...v0.65.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 23:15:34 +00:00
dependabot[bot]
65a3f2dfba
Merge pull request #257 from athityakumar/dependabot/bundler/rubocop-tw-0.64.0 2019-02-11 23:20:05 +00:00