Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed compatibility with Ruby 1.8.7 by not interning empty strings.

What was happening was *kinds was creating an array resembling [nil] and so kinds = [:latin] was not being evaluated as the array was not .empty?
What I've done is told the array to compact before checking emptiness and also before looping. This resolves the issue.
  • Loading branch information...
1 parent 6ef5d16 commit 74fb4ae2f9aad61dffa41c1569c13de29f804d59 @parndt parndt committed with
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/babosa/identifier.rb
1  lib/babosa/identifier.rb
@@ -113,6 +113,7 @@ def empty?
# @param *args <Symbol>
# @return String
def transliterate!(*kinds)
+ kinds.compact!
kinds = [:latin] if kinds.empty?
kinds.each do |kind|
transliterator = Transliterator.get(kind).instance

0 comments on commit 74fb4ae

Please sign in to comment.
Something went wrong with that request. Please try again.