From 195ea5a1500e586e84c3caf2c8a67fc64fc18ec2 Mon Sep 17 00:00:00 2001 From: Fission Xuiptz Date: Sat, 21 Feb 2015 19:55:30 +1000 Subject: [PATCH 1/3] Reversed IO.console.winsize values IO.console.winsize returns [ rows, columns ], but terminal_size should return [ columns, rows ] --- lib/highline/system_extensions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/highline/system_extensions.rb b/lib/highline/system_extensions.rb index 888d348c..c36af708 100755 --- a/lib/highline/system_extensions.rb +++ b/lib/highline/system_extensions.rb @@ -225,7 +225,7 @@ def restore_mode def terminal_size begin require "io/console" - winsize = IO.console.winsize rescue nil + winsize = IO.console.winsize.reverse rescue nil return winsize if winsize rescue LoadError end From 59c590b816fa993e2a91067973f421e73df11cab Mon Sep 17 00:00:00 2001 From: Abinoam Praxedes Marques Jr Date: Sun, 19 Apr 2015 00:41:04 -0300 Subject: [PATCH 2/3] Update VERSION to 1.7.2 --- lib/highline/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/highline/version.rb b/lib/highline/version.rb index d01247e1..618c4cd1 100644 --- a/lib/highline/version.rb +++ b/lib/highline/version.rb @@ -1,4 +1,4 @@ class HighLine # The version of the installed library. - VERSION = "1.7.1".freeze + VERSION = "1.7.2".freeze end From 936056b17fe7b126b6ba0b0338dd48c3d61e7a1a Mon Sep 17 00:00:00 2001 From: Abinoam Praxedes Marques Jr Date: Sun, 19 Apr 2015 07:28:51 -0300 Subject: [PATCH 3/3] Update Changelog.md for 1.7.2 --- Changelog.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Changelog.md b/Changelog.md index 9a582178..49e533e5 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,11 @@ Below is a complete listing of changes for each revision of HighLine. +### 1.7.2 / 2015-04-19 + +#### Bug fixes +* Fix #138 (a regression of #131). PR #139. + ### 1.7.1 / 2015-02-24 #### Enhancements