Commit graph

534 commits

Author SHA1 Message Date
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
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
DasCodes
c67674874a
Updated fontFamily for HyperJS users in instructions
The font family in #2 installation instruction for `HyperJS` users should be `"Hack Nerd Font"` not `"Hack Regular Nerd"`.
2020-09-20 06:36:23 +05:30
dependabot-preview[bot]
1dae294224
Merge pull request #394 from athityakumar/dependabot/bundler/rubocop-tw-0.91.0 2020-09-16 08:40:51 +00:00
dependabot-preview[bot]
449d5ad663
Update rubocop requirement from ~> 0.90.0 to ~> 0.91.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.90.0...v0.91.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-15 23:11:55 +00:00
Simon Tarchichi
f20d5daf0d
Add instructions to install font for hyperjs users (#375)
[skip ci]
2020-09-08 17:10:06 +02:00
Claudio Bley
965eb6130d
Merge pull request #392 from avdv/fix-unrecognized
Fix unrecognized files count and colorization
2020-09-07 21:22:11 +02:00
Claudio Bley
52b8c3489d Fix unrecognized files count and colorization
A *file* is assigned a generic icon / glyph in `files.yaml`, so looking up
`:file` in the corresponding hash always succeeds, but `:file` is also used as
the fallback key if a file's extension is not recognized.

First determining the color and group of a given file before falling back to
the `:file` key fixes this issue.
2020-09-07 20:38:42 +02:00
dependabot-preview[bot]
c36ed1a78b
Merge pull request #390 from athityakumar/dependabot/bundler/rubocop-performance-tw-1.8.0 2020-09-06 18:00:44 +00:00
dependabot-preview[bot]
0e946da1e1
Update rubocop-performance requirement from ~> 1.7.0 to ~> 1.8.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.7.0...v1.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-04 23:12:12 +00:00
Claudio Bley
662ff02e34
Merge pull request #388 from athityakumar/dependabot/bundler/rubocop-tw-0.90.0 2020-09-03 23:26:12 +02:00
Claudio Bley
2a0c840da1 Update manpage 2020-09-03 23:21:37 +02:00
Claudio Bley
8379ba64db Fix newly reported offenses
* Style/MultilineWhenThen: Do not use then for multiline when statement
* Style/StringConcatenation: Prefer string interpolation to string concatenation
* Style/OptionalBooleanParameter: Use keyword arguments when defining method with boolean argument
* Style/GlobalStdStream: Use $stderr instead of STDERR
* Style/GlobalStdStream: Use $stdout instead of STDOUT
2020-09-03 23:18:18 +02:00