curses_menu 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/curses_menu/version.rb +1 -1
- data/spec/curses_menu_test.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d07858a5e2aad9b9633584a1e0b2c06b9a13ad5b69752ef7b4808ed614e7a889
|
4
|
+
data.tar.gz: 65f6f0b04deea7b529d136fe6fa3fea72fcfc98cfc0fc8d651863814a4bde162
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f322978d91a509bf1696d1da056f65a7dc097bf65e61ebf46194c1bc555dad59caadadd8cca9f2c5b8bf4aea87a0d086a22555b8084e06c6a15c56c5a9ccd3f3
|
7
|
+
data.tar.gz: 744ed073c7e764068f3b97a528255371b70dedd99c1d164e4cc2f8981069dfd8e1ec5c606df74f3b4df00c232d3995cd31037c53401fc7bc092b1e6313da596a
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# [v0.0.5](https://github.com/Muriel-Salvan/curses_menu/compare/v0.0.4...v0.0.5) (2021-08-18 11:48:24)
|
2
|
+
|
3
|
+
### Patches
|
4
|
+
|
5
|
+
* [[Hotfix] Add Windows support](https://github.com/Muriel-Salvan/curses_menu/commit/b47b51a79988363c0e292987fe4a97dd6f05c6d8)
|
6
|
+
|
1
7
|
# [v0.0.4](https://github.com/Muriel-Salvan/curses_menu/compare/v0.0.3...v0.0.4) (2021-08-18 10:25:59)
|
2
8
|
|
3
9
|
### Patches
|
data/lib/curses_menu/version.rb
CHANGED
data/spec/curses_menu_test.rb
CHANGED
@@ -50,7 +50,13 @@ module CursesMenuTest
|
|
50
50
|
chars.
|
51
51
|
map do |chr|
|
52
52
|
{
|
53
|
-
char:
|
53
|
+
char: begin
|
54
|
+
(chr & Curses::A_CHARTEXT).chr(Encoding::UTF_8)
|
55
|
+
rescue RangeError
|
56
|
+
# On Windows curses returns wrong encoded characters.
|
57
|
+
# In this case we just force an ASCII version of it.
|
58
|
+
(chr & 255).chr(Encoding::UTF_8)
|
59
|
+
end,
|
54
60
|
color: color_pairs[chr & Curses::A_COLOR] || chr & Curses::A_COLOR,
|
55
61
|
attributes: chr & Curses::A_ATTRIBUTES
|
56
62
|
}
|