Commit graph

314 commits

Author SHA1 Message Date
dependabot[bot]
dde0195ec0
Update rdoc requirement from ~> 5.1 to ~> 6.1
Updates the requirements on [rdoc](https://github.com/ruby/rdoc) to permit the latest version.
- [Release notes](https://github.com/ruby/rdoc/releases)
- [Changelog](https://github.com/ruby/rdoc/blob/master/History.rdoc)
- [Commits](https://github.com/ruby/rdoc/commits/v6.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-28 15:34:53 +00:00
Claudio Bley
6e5a0825d8
Merge pull request #248 from avdv/codecov
Report code coverage to codecov.io
2018-12-28 16:32:50 +01:00
Claudio Bley
9d7d48d48f Report code coverage to codecov.io 2018-12-28 16:28:21 +01:00
Claudio Bley
f0ff45e69d
Merge pull request #245 from avdv/drop-ruby-2.1
Drop support for Ruby 2.1
2018-12-09 09:29:19 +01:00
Claudio Bley
9c8a93565e Drop support for Ruby 2.1
It reached EOL already and rubocop > 0.60 no longer supports it.
2018-12-09 09:23:52 +01:00
Claudio Bley
421284ffb1
Merge pull request #239 from JustinHallquist/add-forwardable-dep
add forwardable dependency
2018-11-20 17:56:53 +01:00
Justin Hallquist
54bafa03f0 add forwardable dependency 2018-11-20 08:38:25 -08:00
Claudio Bley
7a9ea25808
Merge pull request #229 from avdv/socket-chardev-blockdev
Add support for special files
2018-11-12 08:23:51 +01:00
Claudio Bley
ab419d2ce6
Merge pull request #228 from avdv/add-format-option
Add `--format` and `-x` options
2018-10-23 11:57:00 +02:00
Claudio Bley
5d6fe50edd Remove _keys arrays from Core, use key? instead
Instead of searching through an Array, it is much better querying a Hash for a
key.
2018-10-21 23:27:38 +02:00
Claudio Bley
4a0ece2908 Add support for special files
Like sockets, character and block devices.
2018-10-21 23:14:21 +02:00
Claudio Bley
71e8ca2320
Merge pull request #201 from avdv/faster-travis
Faster Travis builds
2018-10-20 15:53:48 +02:00
Claudio Bley
ffa8e86a52 Use latest Ruby release per minor version 2018-10-20 14:10:25 +02:00
Claudio Bley
6bb67f19f2 Fix build failure on rake install
```
$ rake install
rake aborted!
Gem::LoadError: You have already activated rake 12.3.0, but your Gemfile requires rake 12.3.1. Prepending `bundle exec` to your command may solve this.d
```

* use `bundle exec rake install` instead as suggested
* generate binstubs with bundler and prepend `bin/` to `PATH`
2018-10-20 14:05:39 +02:00
Claudio Bley
8ccda1c539 Add rdoc to dev dependencies 2018-10-20 14:05:39 +02:00
Claudio Bley
01148a90ac Cache installed bundle on Travis to speed up builds 2018-10-20 13:38:26 +02:00
Claudio Bley
63dc465fc6 Remove install section from .travis.yml
According to the docs[1], "bundle install" is done automatically.

[1]: https://docs.travis-ci.com/user/languages/ruby/#Bundler
2018-10-20 13:38:26 +02:00
Claudio Bley
f3e9186ee2 Add --format and -x options
Both are also supported by GNU ls, although currently not all formats are
supported.

This change lays ground for implementing column based formatting and also
supports using a pager with colorls keeping the formatting intact:

`colorls --color -x | less --tabs=4 -RFX`
2018-10-20 10:50:30 +02:00
Claudio Bley
9276698c5f
Merge pull request #227 from avdv/add-color-option
Add `--color` option
2018-10-20 00:13:45 +02:00
Claudio Bley
6b972de57d Add --color option
This option works the same as for GNU ls, although if not specified colorization
is on by default (the `auto` mode).

Using `--color` is equivalent to `--color=always`.
2018-10-20 00:01:31 +02:00
Claudio Bley
81a899ea25
Merge pull request #226 from athityakumar/dependabot/bundler/test/rainbow-gte-2.2-and-lt-4.0
Update rainbow requirement from ~> 2.2 to >= 2.2, < 4.0
2018-10-18 18:34:44 +02:00
Claudio Bley
de0a704a0d
Merge pull request #224 from jmks/fix_alignment_for_file_size
Fix #190 alignment for file sizes
2018-10-15 10:31:37 +02:00
Jason Schweier
7bb0f564d5 Fix alignment for file sizes
File size can be up to 1023 B/KiB/etc.
The simplest solution is to allow 4 characters for alignment.
2018-10-13 14:49:48 -04:00
Athitya Kumar
2fb280c940
Merge pull request #218 from rjhilgefort/user-contrib-section
User Contributed Alias Setups Section
2018-10-06 12:55:24 +05:30
Claudio Bley
da6241bb3c
Merge pull request #219 from dilekuzulmez/contributors
Added CONTRIBUTORS.md
2018-10-06 09:22:21 +02:00
Claudio Bley
3b36d36b0b
Merge pull request #222 from avdv/fix-220
Check whether Etc.getpwuid/getgrid returns nil
2018-10-05 23:15:20 +02:00
Claudio Bley
8eb0089fc5 Fix spec failure due to big directory size on travis
Listing the fixtures folder sorting by size, expected the files at the beginning
followed by the `symlinks` folder. But on travis, the folder is 4KiB which is
larger than any one of the files.

Keep the folder first by adding the `--group-directories-first` flag.
2018-10-05 22:43:15 +02:00
Claudio Bley
127eb510cd Check whether Etc.getpwuid/getgrid returns nil
On Microsoft Windows, the File.Stat information always has the `uid` and `gid`
set to `0`. Also, the Etc functions simply return `nil`.

Fixes #220.
2018-10-05 22:15:02 +02:00
Dilek Üzülmez
301d287630 Added CONTRIBUTORS.md 2018-10-03 14:45:41 +03:00
Rob Hilgefort
71825c7b5f Added section for user contributed alias setups, added @rjhilgefort 2018-09-28 14:44:34 -04:00
Claudio Bley
737bd9417a
Merge pull request #212 from danielhdz56/master
update readme with correct font name
2018-08-20 20:15:41 +02:00
Daniel Hernandez
5caf44df55 update readme with correct font name 2018-08-20 09:30:55 -05:00
Claudio Bley
6066ac629d
Merge pull request #211 from avdv/fix-205-handle-optparse-errors
Fix #205: Handle optparse errors gracefully
2018-08-20 08:04:21 +02:00
Claudio Bley
b2bbdbb413 Update man page 2018-08-20 08:01:53 +02:00
Claudio Bley
126d8ba164 Fix #205: Handle optparse errors gracefully 2018-08-20 08:00:46 +02:00
Claudio Bley
f78c561c52
Merge pull request #210 from avdv/hyperlinks
Add `--hyperlink` option, fix #194
2018-08-17 23:56:30 +02:00
Claudio Bley
5459986332 Fix warning in gemspec
```
colorls.gemspec:5: warning: already initialized constant ColorLS::POST_INSTALL_MESSAGE
/home/claudio/src/colorls/colorls.gemspec:5: warning: previous definition of POST_INSTALL_MESSAGE was here
```
2018-08-17 23:00:55 +02:00
Claudio Bley
8428efa010 Add --hyperlink option
This generates `file://` links using ANSI escape sequences which opens the
given file using the default application for the file type on your system.

A terminal emulator supporting hyperlinks is required, otherwise the links
will be ignored.
2018-08-17 23:00:55 +02:00
Claudio Bley
d940588d9c
Merge pull request #198 from avdv/fix-197
Fix #197: Take setuid, setgid and sticky bit into account
2018-08-17 18:58:47 +02:00
Claudio Bley
e9944d5f39 Fix #197: Take setuid, setgid and sticky bit into account
These special permission bits should cause the executable bit in the current
group to be replaced with an uppercase letter if the executable bit itself is
*not* set, with a lower case character otherwise.
2018-08-17 18:04:15 +02:00
dependabot[bot]
de3e36c299
Update rainbow requirement from ~> 2.2 to >= 2.2, < 4.0
Updates the requirements on [rainbow](https://github.com/sickill/rainbow) to permit the latest version.
- [Release notes](https://github.com/sickill/rainbow/releases)
- [Changelog](https://github.com/sickill/rainbow/blob/master/Changelog.md)
- [Commits](https://github.com/sickill/rainbow/commits/v3.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-08-13 21:28:41 +00:00
Claudio Bley
d93cd2c308 Fix warning in gemspec
```
colorls.gemspec:5: warning: already initialized constant ColorLS::POST_INSTALL_MESSAGE
/home/claudio/src/colorls/colorls.gemspec:5: warning: previous definition of POST_INSTALL_MESSAGE was here
```
2018-08-13 23:22:53 +02:00
Claudio Bley
159649ab65
Merge pull request #200 from avdv/sort-by-extension
Add `-X` / `--sort=extension` flags
2018-08-12 18:33:04 +02:00
Claudio Bley
eb9a499426
Merge pull request #195 from mashehu/add-docker
added icon for Dockerfiles
2018-08-12 18:01:42 +02:00
Claudio Bley
1b71184fac Fix rubocop offense Metrics/LineLength: Line is too long 2018-08-12 16:22:27 +02:00
Claudio Bley
c35ad864c3 Regenerate zsh completion file and man page 2018-08-12 16:22:27 +02:00
Claudio Bley
1389d9d8fa Require date in Rakefile to avoid error
```
NameError: uninitialized constant Date
```
2018-08-12 16:22:27 +02:00
Claudio Bley
f979ce281c spec: Use multi-line regex mode for matching
This avoids test failures on small terminals (e.g. on Travis) when multiple
lines are generated.
2018-08-12 16:22:27 +02:00
Claudio Bley
012aeb8493 Add -X / --sort=extension flags
This allows the listing to be sorted alphabetically by file extension.

Fixes #199.
2018-08-12 16:22:27 +02:00
Claudio Bley
6cecaf4654
Merge pull request #169 from avdv/fix-open-ended-dependencies
Avoid open-ended dependencies
2018-08-12 08:19:00 +02:00