push
circleci
2 of 7 new or added lines in 2 files covered. (28.57%)
2467 existing lines in 97 files now uncovered.1089 of 3854 relevant lines covered (28.26%)
0.29 hits per line
1 |
class AlmaAdapter |
1✔ |
2 |
class Connector |
1✔ |
3 |
class << self |
1✔ |
4 |
def base_path |
1✔ |
UNCOV
5
|
"#{region}/almaws/v1"
|
× |
6 |
end
|
|
7 |
|
|
8 |
def users_path |
1✔ |
UNCOV
9
|
"#{base_path}/users"
|
× |
10 |
end
|
|
11 |
|
|
12 |
# ExLibris Alma region
|
|
13 |
def region |
1✔ |
UNCOV
14
|
Rails.configuration.alma[:region] |
× |
15 |
end
|
|
16 |
|
|
17 |
def url |
1✔ |
UNCOV
18
|
URI::HTTPS.build(host: region) |
× |
19 |
end
|
|
20 |
|
|
21 |
# Exlibris Alma connection
|
|
22 |
def connection |
1✔ |
UNCOV
23
|
Faraday.new(url: "#{url}/almaws/v1") do |builder| |
× |
UNCOV
24
|
builder.adapter Faraday.default_adapter
|
× |
UNCOV
25
|
builder.response :logger
|
× |
UNCOV
26
|
builder.request :url_encoded
|
× |
27 |
end
|
|
28 |
end
|
|
29 |
end
|
|
30 |
end
|
|
31 |
end
|