From 55cab69ec869203f8543e5a9873c9264dc494ac1 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Sun, 5 Feb 2012 15:21:36 -0800 Subject: [PATCH] Fix a dumb bug. Closes #264. --- doc-src/SASS_CHANGELOG.md | 4 ++++ lib/sass/util.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc-src/SASS_CHANGELOG.md b/doc-src/SASS_CHANGELOG.md index 222bc2a8d4..7d4d03f2d2 100644 --- a/doc-src/SASS_CHANGELOG.md +++ b/doc-src/SASS_CHANGELOG.md @@ -3,6 +3,10 @@ * Table of contents {:toc} +## 3.1.14 (Unreleased) + +* Fix a typo that was causing crashes on Ruby 1.9. + ## 3.1.13 * Fix a smattering of subtle bugs that would crop up when using multibyte diff --git a/lib/sass/util.rb b/lib/sass/util.rb index 881c2d2f53..17f9fb9074 100644 --- a/lib/sass/util.rb +++ b/lib/sass/util.rb @@ -228,7 +228,7 @@ def lcs(x, y, &block) # @param hash [Hash] # @return [Array] def hash_to_a(hash) - return has.to_a unless ruby1_8? || defined?(Test::Unit) + return hash.to_a unless ruby1_8? || defined?(Test::Unit) return hash.sort_by {|k, v| k} end