lib/vindetta/transliterator.rb in vindetta-0.7.0 vs lib/vindetta/transliterator.rb in vindetta-0.8.0

- old
+ new

@@ -1,7 +1,7 @@ module Vindetta class Transliterator - MAPPING = '0123456789.ABCDEFGH..JKLMN.P.R..STUVWXYZ'.split('').freeze + MAPPING = "0123456789.ABCDEFGH..JKLMN.P.R..STUVWXYZ".split("").freeze def self.run(character) index = MAPPING.find_index(character) raise Vindetta::InvalidCharacter, character unless index index % 10