• 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

47.06
/app/services/alma/indexer/dump_file_indexer.rb
1
class Alma::Indexer
1✔
2
  class DumpFileIndexer
1✔
3
    attr_reader :dump_file, :solr_url
1✔
4

5
    delegate :index_file, to: :indexer
1✔
6
    def initialize(dump_file, solr_url:)
1✔
7
      @dump_file = dump_file
×
8
      @solr_url = solr_url
×
9
    end
10

11
    def index!
1✔
12
      decompress_file do |file|
×
13
        index_file(file.path)
×
14
      end
15
    end
16

17
    def indexer
1✔
18
      @indexer ||= Alma::Indexer.new(solr_url:)
×
19
    end
20

21
    def decompress_file(&)
1✔
22
      return dump_file.tar_decompress_file(&) if dump_file.path.include?('.tar')
×
23

24
      # SCSB files are only g-zipped.
25
      dump_file.unzip
×
26
      yield File.open(dump_file.path)
×
27
      dump_file.zip
×
28
    end
29
  end
30
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