lib/ibandit.rb in ibandit-0.11.22 vs lib/ibandit.rb in ibandit-0.11.23
- old
+ new
@@ -12,12 +12,12 @@
require "ibandit/pseudo_iban_assembler"
require "ibandit/pseudo_iban_splitter"
require "ibandit/local_details_cleaner"
require "ibandit/check_digit"
-I18n.load_path += Dir[File.expand_path("../config/locales/*.{rb,yml}",
- __dir__)]
+I18n.load_path += Dir[File.expand_path("../../config/locales/*.{rb,yml}",
+ __FILE__)]
module Ibandit
class << self
attr_accessor :bic_finder, :modulus_checker
@@ -26,10 +26,10 @@
@bic_finder.call(country_code, national_id)
end
def structures
@structures ||= YAML.load_file(
- File.expand_path("../data/structures.yml", __dir__),
+ File.expand_path("../../data/structures.yml", __FILE__),
)
end
def translate(key, options = {})
I18n.translate(key, { scope: [:ibandit] }.merge(options))