diff options
author | James Edward Gray II <james@grayproductions.net> | 2015-09-22 18:19:19 -0500 |
---|---|---|
committer | James Edward Gray II <james@grayproductions.net> | 2015-09-22 18:19:19 -0500 |
commit | 215c646a75f4e5cb3b390e85c7a7efab53a40609 (patch) | |
tree | 2c04b7e53ae976db91f8fceb502df778f79c43b5 | |
parent | 9978eea175296410975f757c07f9e1b3d51868cf (diff) | |
parent | 9fd38d152873f6d2d5bf762d667459115ee13aff (diff) | |
download | highline-215c646a75f4e5cb3b390e85c7a7efab53a40609.tar.gz |
Merge pull request #160 from abinoam/1-7-stablev1.7.7
Fix #159 - Make HighLine::Question to coerce its question argument into a String
-rw-r--r-- | Changelog.md | 3 | ||||
-rwxr-xr-x | lib/highline/question.rb | 2 | ||||
-rw-r--r-- | lib/highline/version.rb | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/Changelog.md b/Changelog.md index bd62891..4b35780 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,9 @@ Below is a complete listing of changes for each revision of HighLine. +### 1.7.7 / 2015-09-22 +* Make HighLine::Question coerce its question argument into a String. (@97-109-107 and Abinoam P. Marques Jr. (@abinoam), #159, PR #160) + ### 1.7.6 / 2015-09-17 * Fix a typo in a var name affecting solaris. (Danek Duvall (@dhduvall) and Abinoam P. Marques Jr. (@abinoam), #155, PR #156) diff --git a/lib/highline/question.rb b/lib/highline/question.rb index fa8445a..7084584 100755 --- a/lib/highline/question.rb +++ b/lib/highline/question.rb @@ -31,7 +31,7 @@ class HighLine # def initialize( question, answer_type ) # initialize instance data - @question = question.dup + @question = String(question).dup @answer_type = answer_type @completion = @answer_type diff --git a/lib/highline/version.rb b/lib/highline/version.rb index 2495415..796065d 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.6".freeze + VERSION = "1.7.7".freeze end |