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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f2157a04e11d3d2d1e5dbb21cf04a10c7cb4a74bb20594b7132ddb173affaa3
4
- data.tar.gz: 65030812b200046ce239732987118775b3e4d8f334368d54d96a03f54d83b481
3
+ metadata.gz: d07858a5e2aad9b9633584a1e0b2c06b9a13ad5b69752ef7b4808ed614e7a889
4
+ data.tar.gz: 65f6f0b04deea7b529d136fe6fa3fea72fcfc98cfc0fc8d651863814a4bde162
5
5
  SHA512:
6
- metadata.gz: 296ff3a85e3a7697a2122bdc0765b943b6c60c422391b7e2b5423e87036088a85248c79ca11cdee209f3d25cd2e0b2f558a4744ad74d0c5307ddbe50890eed2b
7
- data.tar.gz: 3b5c8fcb76fac30961b8c636ab1411b77cc0e108f9762c70294da23d18b025589493becc649aec2ed6caae467ba79373e1b34178aca9fca81e90d2a19ca16784
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
@@ -1,5 +1,5 @@
1
1
  class CursesMenu
2
2
 
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
 
5
5
  end
@@ -50,7 +50,13 @@ module CursesMenuTest
50
50
  chars.
51
51
  map do |chr|
52
52
  {
53
- char: (chr & Curses::A_CHARTEXT).chr(Encoding::UTF_8),
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
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: curses_menu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muriel Salvan