travis-ci
10 of 10 new or added lines in 3 files covered. (100.0%)
3168 of 3239 relevant lines covered (97.81%)
60.04 hits per line
1 |
module Exlibris |
3 all except jruby-9.1.8.0 ✔ |
2 |
module Primo |
3 all except jruby-9.1.8.0 ✔ |
3 |
module WebService |
3 all except jruby-9.1.8.0 ✔ |
4 |
module Client |
3 all except jruby-9.1.8.0 ✔ |
5 |
module SavonClient |
3 all except jruby-9.1.8.0 ✔ |
6 |
require 'savon'
|
3 all except jruby-9.1.8.0 ✔ |
7 |
|
|
8 |
def client |
3 all except jruby-9.1.8.0 ✔ |
9 |
#
|
|
10 |
# We're not using WSDL at the moment, since
|
|
11 |
# we don't want to make an extra HTTP call.
|
|
12 |
#
|
|
13 |
# @client ||= Savon.client(wsdl: wsdl)
|
|
|
@client ||= Savon.client(client_options) |
381 all except jruby-9.1.8.0 ✔ |
15 |
end
|
|
16 |
protected :client
|
3 all except jruby-9.1.8.0 ✔ |
17 |
|
|
|
def client_options |
3 all except jruby-9.1.8.0 ✔ |
19 |
{ |
|
|
proxy: proxy_url,
|
× |
21 |
endpoint: endpoint,
|
|
22 |
namespace: endpoint,
|
|
23 |
log: false, |
|
24 |
log_level: :warn |
|
|
}.delete_if { |k, v| v.blank? } |
2,286 all except jruby-9.1.8.0 ✔ |
26 |
end
|
|
|
private :client_options
|
3 all except jruby-9.1.8.0 ✔ |
28 |
end
|
|
29 |
end
|
|
30 |
end
|
|
31 |
end
|
|
32 |
end
|