rufio 0.90.0 → 0.90.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -3
- data/lib/rufio/terminal_ui.rb +1 -1
- data/lib/rufio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd49ffece8a5770afb544c9b8ab5af6a0eba85accad094f7c19c892ae56107fa
|
|
4
|
+
data.tar.gz: 0b40bdff2394bfc08902a488be62f141705625ed54304a1c90ae7dc32bcb35a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f1d67a559eb62f96ec5b6011ed546b6c7686a1e6299b937f9df31fc862ab3be35dc20c0e7c4b878c22c210578bcf2b82acf968757ac0b04c0a8873b89fcd427
|
|
7
|
+
data.tar.gz: cd96a42f6032304e441397b5f5ea1a304ef15656725f80f277c920c2b2ac43f530fea462abba5b7a9170609a969e052c1db4c8d84ae7747e68c5b49608b1ea2e
|
data/CHANGELOG.md
CHANGED
|
@@ -5,12 +5,19 @@ All notable changes to rufio will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.90.1] - 2026-03-28
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Windows: `STD_INPUT_HANDLE` bignum error**: Passing `0xFFFFFFF6` (unsigned 32-bit) to `Fiddle::TYPE_INT` (signed 32-bit) raised `bignum too big to convert into 'long'`; changed to the equivalent signed value `-10`
|
|
12
|
+
|
|
8
13
|
## [0.90.0] - 2026-03-22
|
|
9
14
|
|
|
10
15
|
### Added
|
|
11
|
-
-
|
|
12
|
-
- UTF-8
|
|
13
|
-
-
|
|
16
|
+
- **Multibyte character input support (Japanese and other languages)**: Command mode (`:`) and filter mode now accept multibyte characters such as Japanese
|
|
17
|
+
- `MultibyteInputReader` class introduced to read UTF-8 multibyte sequences as a single character, replacing the previous `read_nonblock(1)` single-byte approach that caused mojibake
|
|
18
|
+
- Supports 1–4 byte UTF-8 sequences: ASCII, 2-byte (Latin extensions), 3-byte (Hiragana, Katakana, Kanji, etc.), 4-byte (emoji, etc.)
|
|
19
|
+
- ESC key (`0x1B`) remains in the ASCII range and does not trigger extra byte reads, avoiding conflicts with ESC sequence handling
|
|
20
|
+
- Invalid or incomplete byte sequences are safely discarded (returns `nil`)
|
|
14
21
|
|
|
15
22
|
## [0.83.1] - 2026-03-20
|
|
16
23
|
|
data/lib/rufio/terminal_ui.rb
CHANGED
|
@@ -220,7 +220,7 @@ module Rufio
|
|
|
220
220
|
@win32_kernel32['GetNumberOfConsoleInputEvents'],
|
|
221
221
|
[Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP], Fiddle::TYPE_INT
|
|
222
222
|
)
|
|
223
|
-
handle = @win32_get_std_handle.call(
|
|
223
|
+
handle = @win32_get_std_handle.call(-10) # STD_INPUT_HANDLE = (DWORD)(-10)
|
|
224
224
|
count_ptr = Fiddle::Pointer.malloc(4)
|
|
225
225
|
@win32_get_num_events.call(handle, count_ptr)
|
|
226
226
|
count_ptr[0, 4].unpack1('L') > 0
|
data/lib/rufio/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rufio
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.90.
|
|
4
|
+
version: 0.90.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- masisz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: io-console
|