Commit graph

198 commits

Author SHA1 Message Date
Athitya Kumar
ff6773546f
Merge pull request #144 from athityakumar/faster-git-status
Faster git status
2017-10-29 05:45:55 +05:30
Athitya Kumar
9c16ad358f
Merge branch 'master' into faster-git-status 2017-10-29 05:43:28 +05:30
Athitya
d0a7bba396 Fixes minor chdir issue 2017-10-29 05:43:15 +05:30
Athitya
7543257c7e Removes require call of git gem 2017-10-29 05:39:40 +05:30
Athitya
9dbe6cde49 Adds rubocop fixes 2017-10-29 05:35:57 +05:30
Athitya
919ddb7c4c Adds colors for git-status 2017-10-29 05:34:25 +05:30
Athitya
0984a529ac Adds custom config coloring support for faster git-status 2017-10-29 05:32:38 +05:30
Athitya
2f3c1dad4f Fixes minor rubocop issues 2017-10-28 23:18:39 +05:30
Athitya
a88598e10e Updates version to 1.0.8 2017-10-28 23:05:20 +05:30
Athitya
086cc05adc Fixes minor facets remanant 2017-10-28 23:04:47 +05:30
Athitya
15c5317b1e Updates version to 1.0.7 2017-10-28 22:56:32 +05:30
Athitya
a6a6fffd64 Removes facets dependency 2017-10-28 22:55:05 +05:30
Athitya
b286f71ef0 Adds rake as runtime dependency and updates to 1.0.6 2017-10-28 22:26:39 +05:30
Athitya
aa6920abdc Updates version to 1.0.5 2017-10-28 22:01:56 +05:30
Athitya Kumar
89f14754be
Merge pull request #142 from athityakumar/change-colors
Change colors
2017-10-28 22:00:23 +05:30
Athitya
5619a5bbf8 Requires monkey patches 2017-10-28 21:58:22 +05:30
Athitya
c9beb097a8 Fixes rubocop issue 2017-10-28 21:36:49 +05:30
Athitya
0501c0b4a2 Adds monkeys.rb, and clean-ups before merging 2017-10-28 21:03:05 +05:30
Athitya
2ea96f1212 Adds support for new inbuilt colors 2017-10-28 20:54:44 +05:30
Athitya
7c6d09c0f7 Fixes --long with --git-status flag combination 2017-10-28 20:10:21 +05:30
Athitya
8e1d16e884 Adds custom config coloring support for git-status 2017-10-28 19:37:51 +05:30
Athitya
1dd794ff23 Adds monkey patch for colorize method 2017-10-28 19:10:10 +05:30
Athitya
aeb3a3950c Switches from colorize to rainbow dependency 2017-10-28 18:21:01 +05:30
Athitya
67d632ffca Updates version to 1.0.4 2017-10-28 16:11:20 +05:30
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