summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Edward Gray II <james@grayproductions.net>2015-04-19 12:05:30 -0500
committerJames Edward Gray II <james@grayproductions.net>2015-04-19 12:05:30 -0500
commit578c74bc52f25525bb3b9152b551631f8d2c1f13 (patch)
tree900ec091aa34305ed34a53714d99c9523bd68f4d
parent9cb50142f88d33741ca29c18887b0f474ccb0afb (diff)
parent936056b17fe7b126b6ba0b0338dd48c3d61e7a1a (diff)
downloadhighline-578c74bc52f25525bb3b9152b551631f8d2c1f13.tar.gz
Merge pull request #139 from abinoam/issue_138v1.7.2
Issue #138
-rw-r--r--Changelog.md5
-rwxr-xr-xlib/highline/system_extensions.rb2
-rw-r--r--lib/highline/version.rb2
3 files changed, 7 insertions, 2 deletions
diff --git a/Changelog.md b/Changelog.md
index 9a58217..49e533e 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
diff --git a/lib/highline/system_extensions.rb b/lib/highline/system_extensions.rb
index 888d348..c36af70 100755
--- a/lib/highline/system_extensions.rb
+++ b/lib/highline/system_extensions.rb
@@ -225,7 +225,7 @@ class HighLine
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
diff --git a/lib/highline/version.rb b/lib/highline/version.rb
index d01247e..618c4cd 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