Commit graph

75 commits

Author SHA1 Message Date
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
c78bf3bd73 Add SimpleCov code coverage tool
See [SimpleCov](https://github.com/colszowka/simplecov).
2018-01-11 11:32:44 +01:00
Claudio Bley
038c15f53c Interprete path with trailing slash as a directory 2018-01-02 11:02:36 +01:00
Alex
1cd2029126 Create yaml class and add class methods. Move specs to appropriate folder. Fix method calls. Move flags spec to appropriate folder for rubocop 2017-11-07 19:22:37 -05:00
Alex
7aec4fda94 Add rubocop-rspec as a dev dependency. Fix non-directory changing fixes 2017-11-07 19:22:37 -05:00
Matthew Vincent
ba257b970b Add support for sorting by size
* add `--sort=size` flag
* add `-S` flag
* adjust `.travis.yml` to check the new flags
2017-11-07 22:38:42 +01:00
Claudio Bley
25b21c442a Add support for reverse sorting
Re-assign the `-r` short option from `--report` to `--reverse` and mention this
change in the post install message.
2017-11-07 22:38:42 +01:00
Claudio Bley
dcf5951167 Add test for --sort=time 2017-11-07 22:38:42 +01:00
Claudio Bley
d48f545344 Sort output by default and re-enable test
When not using any sort options, sort the output by name.

This is in line with what `ls` does, too.

Revert "Disable failing test"

This reverts commit 9e41d60956.
2017-11-01 09:07:34 +01:00
Henré Botha
9e41d60956 Disable failing test 2017-10-23 15:25:27 +02:00
Henré Botha
c866b12d8c Reduce redundancy in flag tests 2017-10-22 23:01:23 +02:00
Henré Botha
30ac4ac7ba Capture STDOUT for testing 2017-10-22 23:01:23 +02:00
Henré Botha
e88a786a13 Use rspec-its 2017-10-22 23:01:23 +02:00
Henré Botha
ca6c073252 Add specs for remaining flags 2017-10-22 23:01:23 +02:00
Henré Botha
ece9260855 Add specs for type & sorting flags 2017-10-22 23:01:23 +02:00
Henré Botha
a79673078a Add specs for --all & --report flags 2017-10-22 23:01:23 +02:00
Henré Botha
3b783382f5 Consolidate test files 2017-10-22 23:01:23 +02:00
Claudio Bley
438aed19bd Fix long listing of files as arguments
The elements in `@contents` should only ever be names of directory entries.
Otherwise erroneous paths will be constructed with `@input/@content_entry`.

* add check to ensure that long listing prints information about `.hidden-file`

Fixes #104.
2017-08-21 08:42:02 +02:00
Claudio Bley
6fa9ca2112 Only filter hidden files when listing a directory
* add `.hidden-file` to fixtures
* add check that `.hidden-file` is found to .travis.yml

Fixes #101.
2017-08-18 08:41:47 +02:00
Oskar
1565333cb8 Adds symlink display for -l (#77) 2017-07-12 20:15:23 +05:30
Ace Dimasuhid
d62da43586 Adds -A flag, edits -a flag (#75)
Changes:

* Add -A | --almost-all flag

* Update functionality for -a | --all
2017-07-11 16:08:29 +05:30
Ace Dimasuhid
b8fac358c6 Cleans up YAML specs (#64) 2017-07-10 16:43:39 +05:30
Ace Dimasuhid
67f29c278f Update file_aliases.yaml to reflect sorted version 2017-07-10 00:13:14 +08:00
Ace Dimasuhid
8a8473e73a Add Specs for Yaml files
* Add spec/support folder

* Add YamlSortChecker to check if yaml files are sorted

* Add Diffy as a development dependency

* Add spec file for all yaml config files for sorting
2017-07-09 23:57:12 +08:00
Athitya
f993755f0e Adds ruby gem skeleton 2017-07-05 19:53:11 +05:30