• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / bibdata / b3c4a532-5da0-46f8-9c20-20018605a028

21 Mar 2025 08:11PM UTC coverage: 42.257% (-49.9%) from 92.185%
b3c4a532-5da0-46f8-9c20-20018605a028

push

circleci

sandbergja
Move various gems from the default Gemfile group to a more appropriate group

1599 of 3784 relevant lines covered (42.26%)

2.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

35.71
/app/jobs/import/partner/process_xml_file_job.rb
1
module Import
1✔
2
  module Partner
1✔
3
    class ProcessXmlFileJob
1✔
4
      include Sidekiq::Job
1✔
5
      def perform(dump_id, file)
1✔
6
        scsb_file_dir = ENV.fetch('SCSB_FILE_DIR')
×
7
        filename = File.basename(file)
×
8
        reader = MARC::XMLReader.new(file.to_s, parser: :nokogiri)
×
9
        file_path = "#{scsb_file_dir}/#{filename}"
×
10
        writer = MARC::XMLWriter.new(file_path)
×
11
        reader.map { |record| writer.write(Scsb::PartnerUpdates::Full.process_record(record)) }
×
12
        writer.close
×
13
        Dump.attach_dump_file(dump_id, file_path, :recap_records_full)
×
14
        File.unlink(file) if File.exist?(file)
×
15
      end
16
    end
17
  end
18
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc