lib/ibandit.rb in ibandit-1.7.1 vs lib/ibandit.rb in ibandit-1.8.0
- old
+ new
@@ -28,11 +28,12 @@
@bic_finder.call(country_code, national_id)
end
def structures
- @structures ||= YAML.load_file(
- File.expand_path("../data/structures.yml", __dir__),
+ @structures ||= YAML.safe_load(
+ Pathname.new(__dir__).join("../data/structures.yml").read,
+ permitted_classes: [Range, Symbol],
)
end
def translate(key, options = {})
I18n.translate(key, scope: [:ibandit], **options)