diff options
author | 2024-07-15 18:55:03 +0200 | |
---|---|---|
committer | 2024-07-21 17:04:29 +0200 | |
commit | 85269a81072305197635f349612e71f294a52363 (patch) | |
tree | 65916e94881446ae8ca94ce4745f9e6aefef3243 /dev-ruby | |
parent | dev-ruby/asciidoctor: remove unused patch(es) (diff) | |
download | gentoo-85269a81072305197635f349612e71f294a52363.tar.gz gentoo-85269a81072305197635f349612e71f294a52363.tar.bz2 gentoo-85269a81072305197635f349612e71f294a52363.zip |
dev-ruby/tty-screen: remove unused patch(es)
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/tty-screen/files/tty-screen-0.8.1-ioctl-test.patch | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/dev-ruby/tty-screen/files/tty-screen-0.8.1-ioctl-test.patch b/dev-ruby/tty-screen/files/tty-screen-0.8.1-ioctl-test.patch deleted file mode 100644 index 0933f1f611b0..000000000000 --- a/dev-ruby/tty-screen/files/tty-screen-0.8.1-ioctl-test.patch +++ /dev/null @@ -1,55 +0,0 @@ -From dba351b178ae06b56985cc77a291918a0fc4aff4 Mon Sep 17 00:00:00 2001 -From: Piotr Murach <pmurach@gmail.com> -Date: Mon, 16 Aug 2021 22:13:27 +0200 -Subject: [PATCH] Fix ioctl call test to stub terminal size encoding for - big-endian systems - -Fixes #13 ---- - CHANGELOG.md | 6 ++++++ - spec/unit/screen_spec.rb | 8 +++++++- - 2 files changed, 13 insertions(+), 1 deletion(-) - -diff --git a/CHANGELOG.md b/CHANGELOG.md -index 91dd6ab..0f369bd 100644 ---- a/CHANGELOG.md -+++ b/CHANGELOG.md -@@ -1,5 +1,10 @@ - # Change log - -+## [v0.8.2] - unreleased -+ -+### Fixed -+* Fix ioctl call test to stub terminal size encoding for big-endian systems -+ - ## [v0.8.1] - 2020-07-17 - - ### Fixed -@@ -136,6 +141,7 @@ - ### Fixed - * Fix bug with screen detection from_io_console by @luxflux - -+[v0.8.2]: https://github.com/piotrmurach/tty-screen/compare/v0.8.1...v0.8.2 - [v0.8.1]: https://github.com/piotrmurach/tty-screen/compare/v0.8.0...v0.8.1 - [v0.8.0]: https://github.com/piotrmurach/tty-screen/compare/v0.7.1...v0.8.0 - [v0.7.1]: https://github.com/piotrmurach/tty-screen/compare/v0.7.0...v0.7.1 -diff --git a/spec/unit/screen_spec.rb b/spec/unit/screen_spec.rb -index 3666a3c..de78ff3 100644 ---- a/spec/unit/screen_spec.rb -+++ b/spec/unit/screen_spec.rb -@@ -6,8 +6,14 @@ def winsize - [100, 200] - end - -+ def big_endian? -+ [1].pack("S") == [1].pack("n") -+ end -+ - def ioctl(control, buf) -- buf.replace("3\x00\xD3\x00\xF2\x04\xCA\x02\x00") -+ little_endian = "3\x00\xD3\x00\xF2\x04\xCA\x02\x00" -+ big_endian = "\x003\x00\xD3\x04\xF2\x02\xCA" -+ buf.replace(big_endian? ? big_endian : little_endian) - 0 - end - end |