circleci
0 of 21 new or added lines in 1 file covered. (0.0%)
3493 of 3809 relevant lines covered (91.7%)
382.42 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
NEW
|
module BibdataRs |
× |
NEW
|
module Theses |
× |
NEW
|
class Fetcher |
× |
NEW
|
def self.env_config |
× |
NEW
|
Rails.application.config_for Rails.root.join('config/dspace.yml') |
× |
NEW
|
end
|
× |
9 |
|
|
NEW
|
def self.default_server |
× |
NEW
|
env_config['server']
|
× |
NEW
|
end
|
× |
13 |
|
|
NEW
|
def self.default_community |
× |
NEW
|
env_config['community']
|
× |
NEW
|
end
|
× |
17 |
|
|
NEW
|
def self.default_rest_limit |
× |
NEW
|
env_config['rest_limit']
|
× |
NEW
|
end
|
× |
21 |
|
|
22 |
##
|
|
23 |
# Get a json representation of all thesis collections and write it as JSON to
|
|
24 |
# a cache file.
|
|
NEW
|
def self.write_all_collections_to_cache |
× |
NEW
|
BibdataRs::Theses.all_documents_as_solr(default_server, default_community, default_rest_limit) |
× |
NEW
|
end
|
× |
NEW
|
end
|
× |
NEW
|
end
|
× |
NEW
|
end
|
× |