lib/buckaruby/iban.rb in buckaruby-1.0.0 vs lib/buckaruby/iban.rb in buckaruby-1.0.1

- old
+ new

@@ -17,9 +17,9 @@ account_identification = bank_code + account_number.rjust(10, '0') country_code_added = account_identification + country_code all_numbers = country_code_added.gsub(/[A-Z]/) { |p| (p.respond_to?(:ord) ? p.ord : p[0]) - 55 } + '00' verification_number = (98 - (all_numbers.to_i % 97)).to_s.rjust(2, '0') - return country_code + verification_number + account_identification + country_code + verification_number + account_identification end end end