Claudio Bley
547df90359
Auto-correct rubocop offenses
2022-05-30 20:47:58 +02:00
dependabot[bot]
511c62fb33
Update rubocop-rspec requirement from ~> 2.10.0 to ~> 2.11.1
...
Updates the requirements on [rubocop-rspec](https://github.com/rubocop/rubocop-rspec ) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases )
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v2.10.0...v2.11.1 )
---
updated-dependencies:
- dependency-name: rubocop-rspec
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-27 08:02:49 +00:00
Claudio Bley
7a3b83692a
Merge pull request #531 from athityakumar/dependabot/bundler/rubocop-tw-1.30.0
...
Update rubocop requirement from ~> 1.29.1 to ~> 1.30.0
2022-05-27 10:01:56 +02:00
dependabot[bot]
7f95bb5a9e
Update rubocop requirement from ~> 1.29.1 to ~> 1.30.0
...
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop ) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.29.1...v1.30.0 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-27 07:16:46 +00:00
Claudio Bley
babea61a14
Merge pull request #530 from athityakumar/dependabot/bundler/rubocop-performance-tw-1.14.0
...
Update rubocop-performance requirement from ~> 1.13.0 to ~> 1.14.0
2022-05-27 09:16:02 +02:00
dependabot[bot]
2e75139987
Update rubocop-performance requirement from ~> 1.13.0 to ~> 1.14.0
...
Updates the requirements on [rubocop-performance](https://github.com/rubocop/rubocop-performance ) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-performance/releases )
- [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-performance/compare/v1.13.0...v1.14.0 )
---
updated-dependencies:
- dependency-name: rubocop-performance
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-24 23:27:12 +00:00
Claudio Bley
b99e937006
Merge pull request #526 from athityakumar/dependabot/bundler/rubocop-tw-1.29.1
2022-05-13 21:53:45 +02:00
Claudio Bley
3ffea2976a
Correct Style/OpenStructUse offenses
...
Replace with `Struct`, or use `instance_double` in tests.
2022-05-13 21:47:03 +02:00
Claudio Bley
ca9bb97e08
Auto-correct rubocop offenses
2022-05-13 19:18:45 +02:00
dependabot[bot]
1c64706f2e
Update rubocop requirement from ~> 1.22.0 to ~> 1.29.1
...
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop ) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.22.0...v1.29.1 )
---
updated-dependencies:
- dependency-name: rubocop
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-12 23:10:12 +00:00
Claudio Bley
0123267b0f
Merge pull request #521 from athityakumar/fix-issue-517
2022-04-30 09:20:32 +02:00
Claudio Bley
60cf569776
Pass a null device instead of explicitly closing stderr
...
When calling git any error messages should be suppressed (e.g. if an directory
is not inside a git repository).
Closing the stderr output when calling `IO.popen` works fine on POSIX systems,
but on Windows it does not and spits out a warning for every invocation:
```
git.rb:44: warning: cannot close fd before spawn
```
Fixes #517 .
2022-04-30 09:13:56 +02:00
Claudio Bley
c7aa167952
Merge pull request #519 from athityakumar/ci-on-windows
2022-04-29 16:14:46 +02:00
Claudio Bley
8c73bd074c
Explicitly use bash (for Windows)
2022-04-29 16:08:35 +02:00
Claudio Bley
6d8e229cb3
Fix "shows the file in the linked directory" test on Windows
...
When running on Windows this test failed with:
```
Failures:
1) ColorLS::Flags symlinked directory with trailing separator shows the file in the linked directory
Failure/Error: expect { subject }.to output(/yaml_sort_checker.rb/).to_stdout
expected block to output /yaml_sort_checker.rb/ to stdout, but output " Supportlink \n"
Diff:
@@ -1 +1 @@
-/yaml_sort_checker.rb/
+ Supportlink
# ./spec/color_ls/flags_spec.rb:329:in `block (3 levels) in <top (required)>'
```
This is due to the different handling of paths to a symlink with a trailing
slash / backslash.
`File.lstat(x).directory?` returns
OS | x | value
----------------------------
Windows | symlink\ | false
Windows | symlink | false
Linux | symlink/ | true
Linux | symlink | false
This could be fixed in colorls by handling a trailing (back)slash specifically,
but I am unsure whether that is the right thing to do on Windows.
2022-04-29 15:58:03 +02:00
Claudio Bley
7a88177ede
CI: Add windows-latest
to job matrix
2022-04-29 15:58:03 +02:00
Claudio Bley
00cd57c040
Release version 1.4.6
2022-04-29 15:58:03 +02:00
Claudio Bley
c7f3ac890b
Merge pull request #516 from athityakumar/dependabot/bundler/rubocop-rspec-tw-2.10.0
...
Update rubocop-rspec requirement from ~> 2.9.0 to ~> 2.10.0
2022-04-26 22:09:29 +02:00
Claudio Bley
ef86bcf66e
Fix rubocop offense for RSpec/VerifiedDoubleReference
...
RSpec/VerifiedDoubleReference: Use a constant class reference for verified doubles.
2022-04-26 22:06:50 +02:00
dependabot[bot]
cee7e14608
Update rubocop-rspec requirement from ~> 2.9.0 to ~> 2.10.0
...
Updates the requirements on [rubocop-rspec](https://github.com/rubocop/rubocop-rspec ) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases )
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v2.9.0...v2.10.0 )
---
updated-dependencies:
- dependency-name: rubocop-rspec
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-19 23:11:33 +00:00
Claudio Bley
90ed878213
Release version 1.4.6
2022-04-13 21:46:18 +02:00
Claudio Bley
13b1441f88
Merge pull request #514 from athityakumar/fix-hyperlink-non-ascii
2022-04-13 21:35:20 +02:00
Claudio Bley
0c6928dce2
Refactor hyperlink handling in fetch_string
2022-04-13 21:24:30 +02:00
Claudio Bley
b8589c30fe
Use FileInfo#show for the hyperlink text
...
Fixes #513
2022-04-13 21:08:47 +02:00
Claudio Bley
cadb9b9558
CI: Run ruby workflow also on tag creation
2022-04-04 22:42:01 +02:00
Claudio Bley
2d2d43de27
Prepare release 1.4.5
2022-04-04 22:16:03 +02:00
Claudio Bley
729a6e06c8
Merge pull request #511 from avdv/fix-test-failure
2022-04-04 22:05:58 +02:00
Claudio Bley
dbdcd142a0
Fix --inode
check
...
The range of inodes is roughly 2 to 2^32 (depending on the filesystem).
The test failed on CI, since the inode number was a 6-digit number.
2022-04-04 21:52:22 +02:00
Claudio Bley
88fc35e02f
Integrate Release Drafter
2022-04-04 21:28:27 +02:00
Claudio Bley
ce46ab1e87
Merge pull request #499 from t-mangoe/no-hardlinks
2022-03-27 19:24:13 +02:00
Claudio Bley
a7cb1cc385
Add colorls -l --no-hardlinks
call to checks
2022-03-27 19:10:12 +02:00
Claudio Bley
5a62fedc1a
Print newlines after test summary
2022-03-27 19:09:26 +02:00
t-mangoe
462fa61bc5
fix rubocop error
2022-03-26 16:32:54 +09:00
t-mangoe
67459d0ef9
Merge branch 'master' into no-hardlinks
2022-03-26 16:25:05 +09:00
Claudio Bley
d4e1f1c80a
Merge pull request #505 from avdv/publish-to-rubygems
2022-03-21 09:15:06 +01:00
Claudio Bley
d5691d69c0
Fix arguments of with --inode flag
check
2022-03-21 09:09:01 +01:00
Claudio Bley
f9dd1b44ef
CI: Publish to RubyGems
2022-03-21 09:09:01 +01:00
Claudio Bley
61050314de
Do not add .github files to gem
2022-03-21 09:03:21 +01:00
Claudio Bley
7100c41703
Remove man page and zsh completion file
...
The files are automatically generated, but using rake's `file` task does not
work correctly when the files are checked into the repo since the timestamps are
updated independently of the commit time.
Removing them ensures that these files are always freshly generated before
building the gem and thus are always up-to-date which was often not the case in
the past.
2022-03-21 09:03:21 +01:00
Claudio Bley
092e25a83b
Merge pull request #506 from goar5670/add-inode
2022-03-20 22:20:17 +01:00
goar5670
cd394c0feb
Fix different inode number lengths
2022-03-20 21:24:07 +03:00
Claudio Bley
697577c487
Merge pull request #507 from avdv/ci-main-branch
2022-03-20 08:18:37 +01:00
Claudio Bley
61782997ca
CI: Run workflow on push/pull_request to "main"
...
The default branch has been renamed (see #504 ) and this needs to change too.
2022-03-20 08:12:26 +01:00
goar5670
c1469a4196
Cover the new --inode flag with tests
2022-03-20 02:33:01 +03:00
goar5670
eb2656a219
Fix rubocop offenses
2022-03-20 02:18:02 +03:00
goar5670
57feb07032
Add colors for inode text
2022-03-20 01:55:50 +03:00
goar5670
fb102b1700
Account for git status and inode in item widths
2022-03-20 01:55:33 +03:00
goar5670
793cd20cc8
Add basic --inode flag
2022-03-20 01:54:58 +03:00
Claudio Bley
0b61d733de
Merge pull request #478 from athityakumar/fix-461
2022-03-19 09:27:05 +01:00
Claudio Bley
a3b94311ec
Allow git status to be different for items in directories
...
If a directory was reported with a concrete status by git, it was
assumed that all files below this directory would have the same status.
This is not the case were git ignore files are applied to some files
in subdirectories.
Fixes #461 .
2022-03-19 09:20:03 +01:00