Commit graph

545 commits

Author SHA1 Message Date
Claudio Bley
019158c63c Prepare release 1.4.3 2020-12-07 23:22:34 +01:00
Claudio Bley
64a42c105d
Merge pull request #417 from t-mangoe/add-option-o-g
add -o and -g options.
2020-12-07 22:54:17 +01:00
Claudio Bley
175f2dc225
Correct description of -G -l check 2020-12-07 21:32:13 +01:00
t-mangoe
0d0a1d96ca add -G option 2020-12-05 09:14:12 +09:00
dependabot-preview[bot]
a3a895e60d
Merge pull request #423 from athityakumar/dependabot/bundler/rubocop-tw-1.5.0 2020-12-02 07:29:32 +00:00
dependabot-preview[bot]
c1511ef8ab
Update rubocop requirement from ~> 1.4.2 to ~> 1.5.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/compare/v1.4.2...v1.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-01 23:12:24 +00:00
dependabot-preview[bot]
e6d28dcdf8
Merge pull request #422 from athityakumar/dependabot/bundler/simplecov-tw-0.20.0 2020-12-01 07:38:25 +00:00
dependabot-preview[bot]
a1861cdf49
Update simplecov requirement from ~> 0.19.0 to ~> 0.20.0
Updates the requirements on [simplecov](https://github.com/simplecov-ruby/simplecov) to permit the latest version.
- [Release notes](https://github.com/simplecov-ruby/simplecov/releases)
- [Changelog](https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.md)
- [Commits](https://github.com/simplecov-ruby/simplecov/compare/v0.19.0...v0.20.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-30 23:12:49 +00:00
dependabot-preview[bot]
fe7eba103e
Merge pull request #421 from athityakumar/dependabot/bundler/rubocop-tw-1.4.2 2020-11-26 09:33:59 +00:00
Claudio Bley
1795844679 Fix rubocop offense about redundant argument for String#split
```
lib/colorls/core.rb:213:14: C: Style/RedundantArgument: Argument ' ' is
redundant because it is implied by default.
      size = Filesize.from("#{filesize} B").pretty.split(' ')
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
2020-11-26 09:07:58 +01:00
dependabot-preview[bot]
7239efcf04
Update rubocop requirement from ~> 1.3.0 to ~> 1.4.2
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/compare/v1.3.0...v1.4.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-25 23:19:42 +00:00
Claudio Bley
dccc52b6fd
Merge pull request #419 from avdv/fix-416 2020-11-23 08:29:37 +01:00
Claudio Bley
67ee23069c Take display width of characters into account
Some Unicode characters, e.g. chinese, consume more space when displayed on a terminal
than a single roman character. To avoid alignment issues, try to determine the width
using the unicode-display_width gem.
2020-11-22 21:29:51 +01:00
dependabot-preview[bot]
11c8302815 Update rubocop-performance requirement from ~> 1.8.0 to ~> 1.9.0
Updates the requirements on [rubocop-performance](https://github.com/rubocop-hq/rubocop-performance) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop-performance/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop-performance/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop-performance/compare/v1.8.0...v1.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-22 21:19:04 +01:00
t-mangoe
39be15c6aa add -o and -g options. 2020-11-21 10:17:32 +09:00
dependabot-preview[bot]
d7f8ee4d6c
Merge pull request #415 from athityakumar/dependabot/bundler/rubocop-performance-tw-1.9.0 2020-11-17 11:10:34 +00:00
dependabot-preview[bot]
a56515e749
Update rubocop-performance requirement from ~> 1.8.0 to ~> 1.9.0
Updates the requirements on [rubocop-performance](https://github.com/rubocop-hq/rubocop-performance) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop-performance/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop-performance/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop-performance/compare/v1.8.0...v1.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-16 23:12:57 +00:00
dependabot-preview[bot]
2cd24813f7
Merge pull request #413 from athityakumar/dependabot/bundler/rubocop-tw-1.3.0 2020-11-13 07:39:53 +00:00
dependabot-preview[bot]
ba2307b1c2
Update rubocop requirement from ~> 1.2.0 to ~> 1.3.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/compare/v1.2.0...v1.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-12 23:13:26 +00:00
dependabot-preview[bot]
85a18fa26f
Merge pull request #412 from athityakumar/dependabot/bundler/rubocop-rspec-tw-2.0 2020-11-07 07:22:00 +00:00
dependabot-preview[bot]
842a603d0c
Update rubocop-rspec requirement from ~> 1.27 to ~> 2.0
Updates the requirements on [rubocop-rspec](https://github.com/rubocop-hq/rubocop-rspec) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop-rspec/compare/v1.27.0...v2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-06 23:12:08 +00:00
dependabot-preview[bot]
7851665655
Merge pull request #411 from athityakumar/dependabot/bundler/rubocop-tw-1.2.0 2020-11-06 09:46:46 +00:00
dependabot-preview[bot]
b40c44ba1f
Update rubocop requirement from ~> 1.1.0 to ~> 1.2.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/compare/v1.1.0...v1.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-05 23:11:56 +00:00
Claudio Bley
b59484fbce
Merge pull request #409 from avdv/refactor-cleanup 2020-11-02 10:34:18 +01:00
Claudio Bley
81dfa058af travis: Fix bundler deprecation warning
```
The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set path vendor/bundle`, and stop using this flag
```
2020-11-02 08:45:07 +01:00
Claudio Bley
6c697cdb9e Remove symbolize_keys monkey method on Hash
Usage in a single place does not really warrant a monkey patch and it
can be replaced with `transform_keys!` easily.
2020-11-02 08:45:07 +01:00
Claudio Bley
a59258b749 Clean up monkey patches
* delete `#remove` method
* remove `#delete_prefix` spec, it was only used for Ruby < 2.5 (see 86cfa2f5cf)
* add specifications for `#colorize` and `#uniq`
2020-11-02 08:45:07 +01:00
dependabot-preview[bot]
dc12307f19
Merge pull request #407 from athityakumar/dependabot/bundler/rubocop-tw-1.1.0 2020-10-31 21:29:31 +00:00
Claudio Bley
12e3b67d56 Fix Lint/EmptyBlock offense 2020-10-31 22:19:37 +01:00
Claudio Bley
a7006a5fd3
Merge pull request #408 from avdv/fix-invalid-encoding
Ensure to use `file_encoding` for arguments
2020-10-31 22:07:19 +01:00
Claudio Bley
8035deaab0 Ensure to use file_encoding for arguments
Fixes #377
2020-10-31 21:54:45 +01:00
dependabot-preview[bot]
6769f1e8cc
Update rubocop requirement from ~> 0.93.1 to ~> 1.1.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/compare/v0.93.1...v1.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-29 23:13:06 +00:00
Claudio Bley
041963a409
Merge pull request #405 from t-mangoe/make-executables-bold
make executables bold
2020-10-23 10:45:26 +02:00
t-mangoe
9992218ea4 make executables bold 2020-10-17 15:15:39 +09:00
dependabot-preview[bot]
a591f98f81
Merge pull request #403 from athityakumar/dependabot/bundler/rubocop-tw-0.93.1 2020-10-13 05:47:15 +00:00
dependabot-preview[bot]
9ac728d9b8
Update rubocop requirement from ~> 0.92.0 to ~> 0.93.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/compare/v0.92.0...v0.93.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-12 23:12:10 +00:00
Claudio Bley
6f9bc84ff5
Merge pull request #401 from avdv/fix-windows 2020-10-09 18:42:27 +02:00
Claudio Bley
d4110e4ac7 Officially support Windows
On Windows, MRI Ruby uses the `FindFirstFileW` et. al. kind of functions with
wide character paths and constantly converts from multi-byte to wide character
encoding back and forth when calling any methods on `File` or `Dir`.

This means that when using `Encoding::ASCII_8BIT` for reading directory entries,
that this does not round trip properly, if a file name contains unicode
characters. That is because Ruby assumes the path string is encoded in Windows
Codepage 1252[1].

* skip symlink test if files were checked out from git as textual symlinks on
  Windows
* use UTF-8 encoding on Windows, since this properly round-trips between
  multi-byte and wide character encoding
* travis: windows job no longer is allowed to fail

[1]: 946cd6c534/win32/file.c (L131-L134)
2020-10-09 18:26:50 +02:00
Claudio Bley
3fd9081b88 travis: Fix job configuration for windows
* call `bundle clean` before caching
* explicitely specify path for `bundle install`
* create a `--msys2--` file as a marker to skip msys2 & ridk install
2020-10-09 18:26:50 +02:00
Claudio Bley
905b0e8584 travis: Use 'spec' folder for --tree to reduce output 2020-10-09 18:26:50 +02:00
Claudio Bley
035bcec412 Merge pull request #397 from t-mangoe/set_error_code
Set exit status code when specified path doesn't exist
2020-10-07 10:01:29 +02:00
t-mangoe
64b1891c2c Set exit status code when specified path doesn't exist
Similar to GNU ls, status code `2` is reported if an argument given on the
command line does not exist.

Close #397
2020-10-07 09:58:01 +02:00
Claudio Bley
756b34a991
Merge pull request #400 from avdv/osx-build
Add osx to build matrix
2020-09-26 21:52:22 +02:00
Claudio Bley
e05e771bdc Add osx to build matrix 2020-09-26 21:28:53 +02:00
Claudio Bley
87c48e444d
Merge pull request #358 from avdv/windows-build
Add Windows to build matrix
2020-09-26 11:16:24 +02:00
Claudio Bley
61e19dfded Add Windows to build matrix 2020-09-26 11:03:12 +02:00
dependabot-preview[bot]
21cf5d4574
Merge pull request #399 from athityakumar/dependabot/bundler/rubocop-tw-0.92.0 2020-09-26 06:12:07 +00:00
dependabot-preview[bot]
e66ee3d5ad
Update rubocop requirement from ~> 0.91.0 to ~> 0.92.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/compare/v0.91.0...v0.92.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-25 23:13:08 +00:00
Igor Victor
6279a3deac
Add Truffleruby head to CI (#393)
Co-authored-by: Claudio Bley <claudio.bley@gmail.com>
2020-09-25 13:35:23 +02:00
Claudio Bley
0265519a02
Merge pull request #396 from DasCodes/patch-1
Updated fontFamily for HyperJS users in instructions
2020-09-20 08:03:34 +02:00