lib/relaton_bipm/data_fetcher.rb in relaton-bipm-1.12.1 vs lib/relaton_bipm/data_fetcher.rb in relaton-bipm-1.12.2

- old
+ new

@@ -23,11 +23,11 @@ # @param [Strin] format format of output files (xml, yaml, bibxml), default: yaml # def self.fetch(source, output: "data", format: "yaml") t1 = Time.now puts "Started at: #{t1}" - FileUtils.mkdir_p output unless Dir.exist? output + FileUtils.mkdir_p output new(output, format).fetch(source) t2 = Time.now puts "Stopped at: #{t2}" puts "Done in: #{(t2 - t1).round} sec." end @@ -38,10 +38,10 @@ # @param [String] source Source name # def fetch(source) case source when "bipm-data-outcomes" then parse_bipm_data_outcomes - when "si-brochure" then parse_si_brochure + when "bipm-si-brochure" then parse_si_brochure end File.write @index_path, @index.to_yaml, encoding: "UTF-8" end #