Commit graph

327 commits

Author SHA1 Message Date
dependabot[bot]
31c3bfaef8 Update rubocop requirement from ~> 0.61.1 to ~> 0.62.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/commits/v0.62.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-04 12:07:54 +01:00
Claudio Bley
c6d1b44e11 travis: Add Ruby 2.6 to build matrix
Ruby 2.6 has been released on 25th Dec 2018.
2018-12-29 17:23:07 +01:00
Claudio Bley
d3541c1afc travis: Only build pushes on master, PRs to master and tags
This avoids duplicate builds for PRs of branches for the origin repository (e.g.
from dependabot).
2018-12-29 17:23:07 +01:00
Claudio Bley
9c266c9fda Make ColorLS::Git a module instead of a class
There is no reason it should inherit from `Core`.
2018-12-29 17:23:07 +01:00
Claudio Bley
306bcd3cbc Fix warning about method redefinement
`lib/colorls/monkeys.rb:26: warning: method redefined; discarding old sum`
2018-12-29 17:13:33 +01:00
Claudio Bley
73e036c939 Fix warning about unintialized instance variable
`warning: instance variable @git_status not initialized`
2018-12-29 16:46:51 +01:00
Claudio Bley
3e53464ddf Enable warnings when running RSpec from rake
- travis: Use rake to run specs to generate warnings.
2018-12-29 16:46:51 +01:00
dependabot[bot]
74c7c9c0a1
Merge pull request #244 from athityakumar/dependabot/bundler/rubocop-tw-0.61.1 2018-12-28 18:01:20 +00:00
Claudio Bley
f0e53937de Fix rubocop warnings 2018-12-28 18:55:57 +01:00
Claudio Bley
6061590a34 Set rubocop target Ruby version to 2.2 2018-12-28 18:55:57 +01:00
dependabot[bot]
ff852e1ea1 Update rubocop requirement from ~> 0.57.2 to ~> 0.61.1
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/commits/v0.61.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-28 18:55:57 +01:00
dependabot[bot]
a0bef84712
Merge pull request #247 from athityakumar/dependabot/bundler/rdoc-tw-6.1 2018-12-28 17:29:49 +00:00
Claudio Bley
4033995a83 spec: Avoid failures when STDOUT is no TTY
When using secret variables in Travis CI, the output gets filtered through a
helper process by default (called `redirect_io` strategy) and hence the `STDOUT`
is no longer a real TTY when running the specs. See [1].

[1]: https://github.com/travis-ci/travis-ci/issues/6018
2018-12-28 18:15:27 +01:00
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