Commit graph

174 commits

Author SHA1 Message Date
Claudio Bley
8424e4de27 Use optparse for tab completion (#138) 2017-10-28 16:09:09 +05:30
Athitya Kumar
39a7c8c4d9 Merge pull request #133 from henrebotha/132-add-flag-tests
Add flag tests
2017-10-23 18:57:52 +05:30
Henré Botha
9e41d60956 Disable failing test 2017-10-23 15:25:27 +02:00
Henré Botha
95e5e98d33 Exclude shell scripts from rubocop 2017-10-23 13:24:09 +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
94a1cd6fbc Add rubocop exception 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
3fb6cfdac5 Fix flag in readme 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
Athitya
85fa654870 Fixes minor bug with tab completion and updates version to 1.0.3 2017-10-22 23:52:30 +05:30
Athitya
ae20613f94 Updates version to 1.0.2 2017-10-22 23:46:15 +05:30
Rohit Ner
af734a6bbb Adds support for tab completion (#135)
* added support for tab completion

* minor changes in README

* updated CONTRIBUTING.md and other minor changes

* removed typo
2017-10-22 23:40:36 +05:30
Athitya
b2fa5f18d7 Fixes minor rubocop offense 2017-10-21 02:58:18 +05:30
Athitya
24406eaa67 Updates version to 1.0.0 2017-10-21 02:48:13 +05:30
Athitya
11e00d17bb Adds post-install message in gemspec file 2017-10-21 02:47:32 +05:30
Athitya
41415b6b13 Merge branch 'master' of github.com:athityakumar/colorls 2017-10-21 02:27:36 +05:30
Claudio Bley
bf73fd3462 Fixes flag handling issue introduced in PR #129 (#131)
* Fix handling of `--tree` and `--all` / `--allmost_all` flags

When using `:tree` mode, the `:allmost_all` was always enabled unconditionally.

* Add example for combining short options
2017-10-21 02:26:51 +05:30
Athitya
96dfd12f1a Adds few templates and release policy 2017-10-21 02:24:11 +05:30
Athitya
203873e20f Adds rubygems-tasks for rake release command 2017-10-21 02:14:26 +05:30
Claudio Bley
6d4284cc7a Allows specifying mutual exlusive flags (#129)
* Allow specifying mutual exlusive flags

Warning about flags that seem mutual exclusive prevents using default
flags in Shell aliases which later could be overriden.

When parsing the command line options, the last given option for a
setting (think "mode") or (light vs. dark) counts.

Since colorls errors out when `--tree` is used together with `--all`, the
`--all` option is relaxed to `--almost-all`.

This is exactly how it works for `ls` and e.g. the famous curl tool.

Related to #103, in order to make colorls more compatible to `ls`.

* Fix rubocop error: sort dependencies

```
Offenses:

colorls.gemspec:25:3: C: Gemspec/OrderedDependencies: Dependencies should be sorted in an alphabetical order within their section of the gemspec. Dependency filesize should appear before ruby-terminfo.

  spec.add_runtime_dependency 'filesize'

  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

colorls.gemspec:32:3: C: Gemspec/OrderedDependencies: Dependencies should be sorted in an alphabetical order within their section of the gemspec. Dependency diffy should appear before rubocop.

  spec.add_development_dependency 'diffy'

  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
2017-10-21 00:30:27 +05:30
hirowatari
342abf49f9 Rubocop fixes (#130)
* minor rubocop fixes

* fix FileName namespace
2017-10-21 00:27:17 +05:30
Claudio Bley
a4c6766141 Improves CLI operation with optparse module (#100)
* Revert commit d3e0cd3bb8

The help will be generated automatically.

* Use optparse module for options parsing

Use the `optparse` module instead of open coding the options parsing.

It can automatically generate a help message about available options, can
generate completion code for Bash and Zsh and also supports clubbed flags like
GNU's `getopt`.
2017-10-18 01:16:06 +05:30
Athitya Kumar
50a0db1836 Update PULL_REQUEST_TEMPLATE.md 2017-10-10 20:18:03 +05:30
Igor Souza
db3fd350da Adds a pull request template (#118)
* add pull request template

* update template

* add comments to pr
2017-10-10 20:13:52 +05:30
Athitya Kumar
deced85820 Update COVERAGES.md 2017-10-08 14:02:15 +05:30
Mamonu
cdc2ac27fc Create COVERAGES.md (#126)
* Create COVERAGES.md

* Update COVERAGES.md

* Update COVERAGES.md

* Update COVERAGES.md

* Update COVERAGES.md

* Update COVERAGES.md

* Update COVERAGES.md
2017-10-08 12:39:14 +05:30
Metamist
3af107627b Added clubbed flags and renamed multi-character shorthand arguments (#125)
* Added clubbed flags and renamed multi-character shorthand arguments to not interfere with clubbed flags

* Cleaned up code

* Fixed parsing arguments without dash

* Made -h flag clubbable

* Minor text fixes

* Cleaned up incompatible flags method
2017-10-07 17:28:13 +05:30
Metamist
8dec4115ef Added colorized file stats depending on size (#123)
* Added colorized file stats depending on size

* Removed redundant return

* Syntax improvements
2017-10-07 01:22:35 +05:30
Mariel Frank
fa1f6394d9 Clean up flags.rb code (#122)
* Clean up flags.rb code

* Remove return from flags.rb line 26.

* Fix Rubocop errors, revert most explicit returns, other requested changes.
2017-10-06 23:38:55 +05:30
Metamist
92d59760d6 Fixed date not showing if file is older than 1 hour (#124) 2017-10-06 21:08:51 +05:30
Athitya Kumar
f8962caedc Tries to fix some bugs of PR #119 2017-10-06 20:50:24 +05:30
Athitya Kumar
f904dea239 Merge pull request #121 from igordcsouza/feature/fix_rubocop_offenses
fix all rubocop offenses
2017-10-05 22:55:58 +05:30
Igor da Cunha Souza
9c43ac8e91 fix all rubocop offenses 2017-10-05 10:41:34 -03:00
Athitya Kumar
0411c41aac Merge pull request #119 from igordcsouza/feature/cleaning
Cleaning some code
2017-10-05 18:40:42 +05:30
Igor da Cunha Souza
afa1a7eb00 revert breaking changes 2017-10-05 10:05:41 -03:00
Athitya Kumar
dae9826d18 Merge pull request #120 from lewazo/add_config_files_support
Fixes #86 Add config files support
2017-10-05 09:36:30 +05:30
Athitya Kumar
258c4704d4 Merge pull request #116 from swentling87/gemspec_rubocop_error
Fix Travis CI - Rubocop error #115
2017-10-05 09:31:45 +05:30
Anthony Jean
bc1cd22bc1 Fix relative link in readme 2017-10-04 22:51:10 -04:00
Anthony Jean
3f3e27b98b Add the custom configurations to readme 2017-10-04 22:44:56 -04:00
Anthony Jean
b898af16d5 Add config files support 2017-10-04 22:26:21 -04:00
Igor da Cunha Souza
0d3209e5e3 cleaning 2017-10-04 22:22:34 -03:00
Stephen Wentling
06af7ba5ef Removed utf8 declaration as the default encoding for Ruby is utf8 for v2 forward. 2017-10-04 14:31:37 -07:00
Athitya Kumar
eefcf02bb7 Merge pull request #114 from xdega/patch-1
Fix Typo.
2017-10-05 01:40:36 +05:30
Liam Hockley
302f57ff83 Fix Typo.
Resolves #112
2017-10-04 14:59:14 -05:00
Athitya Kumar
2ad08ad812 Removes awesome badge from README 2017-08-31 15:22:28 +05:30
Athitya
8110212143 Adds minor change to output string indent 2017-08-28 20:38:24 +05:30