Description: Do not use #try
 #try comes from activesupport, so let's just not use it
Bug-Debian: https://bugs.debian.org/759902
Author: Jérémy Bobbio <lunar@debian.org>
Last-Update: 2014-09-01

--- a/spec/haml/magic_translations_spec.rb
+++ b/spec/haml/magic_translations_spec.rb
@@ -8,7 +8,8 @@ require 'gettext/tools'
 # does not turn the encoding back to US-ASCII. Strange issue.
 class String
   def strip_heredoc
-    indent = scan(/^[ \t]*(?=\S)/).min.try(:size) || 0
+    shortest = scan(/^[ \t]*(?=\S)/).min
+    indent = shortest ? shortest.size : 0
     gsub(/^[ \t]{#{indent}}/, '')
   end
 
