rcurses 3.6 → 3.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb34e80e138fc392c1e3afe3cf1310432786c1450410dae5cd427921e5922545
4
- data.tar.gz: 052200eff4543ef3cab4e41ac1bf9dbdb3bfc4bb30b57eb65d1f946f723a93e2
3
+ metadata.gz: feb03695cdc5b1501c957f7ce52814bdb1dc063368b69baa8c65b92fb3317bcc
4
+ data.tar.gz: ca957a0062c4a038284ceade63f15638ca51ed7b3df122f9f4a95ed241a721aa
5
5
  SHA512:
6
- metadata.gz: 3d42c393098673e0bba719d182c7ebc58e781abf52e72b743263de2f6e7255fdbf5579a82f75e9f0d689d3b721b2606b2c2617ad5a8f48e17795abc1d87acad8
7
- data.tar.gz: 01f0f00498a92374dfd1083450daadd5b7298e7e68dcf2bc498ed87cb85d5aeed86166c7fa3e6843edc21a9b8d983e8ba5b3bbfae938e4f410e26628b05a3984
6
+ metadata.gz: c170a9abeb98b00ec9f2169040777d3c66e9bd48c316b8a4a35f73bbe527b6642a885b61767416de2c9508fad562f835c6d0798f3da40807ae369d4fa8c19621
7
+ data.tar.gz: 678c593ca2e6c09ba5bd8be5faf5d93516849400c259b2d3cae9c180ed08d082b3c4604f2f73aa4e2741195b5a705aee8ddaa9269bb588b49ee7453403917c2a
data/lib/rcurses.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  # Web_site: http://isene.com/
6
6
  # Github: https://github.com/isene/rcurses
7
7
  # License: Public domain
8
- # Version: 3.6: Better clean_ansi
8
+ # Version: 3.6.1: Minor fix to clean_ansi
9
9
 
10
10
  require 'io/console' # Basic gem for rcurses
11
11
  require 'io/wait' # stdin handling
@@ -36,7 +36,7 @@ class String
36
36
 
37
37
  def clean_ansi
38
38
  # Remove a leading and trailing reset code if present, fixing extra \e[0m introduced by some commands
39
- self.gsub(/\A\e\[0m/, '').gsub(/\e\[0m\z/, '')
39
+ self.gsub(/\e\[0m(?=\e\[38;5)/, '').gsub(/\A\e\[0m/, '').gsub(/\e\[0m\z/, '')
40
40
  end
41
41
 
42
42
  def pure
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcurses
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.6'
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -29,7 +29,7 @@ description: 'Create curses applications for the terminal easier than ever. Crea
29
29
  up text (in panes or anywhere in the terminal) in bold, italic, underline, reverse
30
30
  color, blink and in any 256 terminal colors for foreground and background. Use a
31
31
  simple editor to let users edit text in panes. Left, right or center align text
32
- in panes. Cursor movement around the terminal. New in 3.6: Better clean_ansi.'
32
+ in panes. Cursor movement around the terminal. New in 3.6.1: Minor fix to clean_ansi.'
33
33
  email: g@isene.com
34
34
  executables: []
35
35
  extensions: []