From 54120ff42bc4e96f0e1d9d1b83613c086638c94d Mon Sep 17 00:00:00 2001 From: viehlieb Date: Tue, 7 Feb 2023 17:26:51 +0100 Subject: [PATCH] rename dnb_xml to odin --- lib/foodsoft_article_import.rb | 6 +++--- lib/foodsoft_article_import/{dnb_xml.rb => odin.rb} | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename lib/foodsoft_article_import/{dnb_xml.rb => odin.rb} (99%) diff --git a/lib/foodsoft_article_import.rb b/lib/foodsoft_article_import.rb index c08cf2e..a2fa255 100644 --- a/lib/foodsoft_article_import.rb +++ b/lib/foodsoft_article_import.rb @@ -6,7 +6,7 @@ require 'active_support/core_ext/hash/keys' require_relative 'foodsoft_article_import/bioromeo' require_relative 'foodsoft_article_import/bnn' require_relative 'foodsoft_article_import/utf8_encoder' -require_relative 'foodsoft_article_import/dnb_xml' +require_relative 'foodsoft_article_import/odin' require_relative 'foodsoft_article_import/foodsoft' module FoodsoftArticleImport @@ -23,8 +23,8 @@ module FoodsoftArticleImport @@file_formats ||= { 'bnn' => FoodsoftArticleImport::Bnn, 'foodsoft' => FoodsoftArticleImport::Foodsoft, - 'dnb_xml' => FoodsoftArticleImport::DnbXml, - 'odin' => FoodsoftArticleImport::DnbXml, + 'dnb_xml' => FoodsoftArticleImport::Odin, + 'odin' => FoodsoftArticleImport::Odin, 'bioromeo' => FoodsoftArticleImport::Bioromeo, }.freeze end diff --git a/lib/foodsoft_article_import/dnb_xml.rb b/lib/foodsoft_article_import/odin.rb similarity index 99% rename from lib/foodsoft_article_import/dnb_xml.rb rename to lib/foodsoft_article_import/odin.rb index c5e2f11..bb9992d 100644 --- a/lib/foodsoft_article_import/dnb_xml.rb +++ b/lib/foodsoft_article_import/odin.rb @@ -7,7 +7,7 @@ require 'nokogiri' module FoodsoftArticleImport - class DnbXml + class Odin NAME = "De Nieuwe Band (XML)" OUTLIST = true