From ed49ba77e4cc93d633cd7cba770f55672ee8c1aa Mon Sep 17 00:00:00 2001 From: Jessie Keck Date: Tue, 10 Oct 2017 13:56:05 -0700 Subject: [PATCH] Update ebsco-eds gem. --- Gemfile.lock | 2 +- app/models/eds/session.rb | 29 +++++++++++++++-------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index d85b97814..acff09274 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -181,7 +181,7 @@ GEM docile (1.1.5) dot-properties (0.1.3) dotenv (2.2.1) - ebsco-eds (0.3.15.pre) + ebsco-eds (0.3.19.pre) activesupport (~> 5.0) bibtex-ruby (~> 4.0) citeproc (>= 1.0.4, < 2.0) diff --git a/app/models/eds/session.rb b/app/models/eds/session.rb index eaf92b89c..9813cede7 100644 --- a/app/models/eds/session.rb +++ b/app/models/eds/session.rb @@ -19,20 +19,21 @@ def object def session_options { - guest: eds_params[:guest], - session_token: eds_params[:session_token], - caller: eds_params[:caller], - user: Settings.EDS_USER, - pass: Settings.EDS_PASS, - profile: Settings.EDS_PROFILE, - use_cache: Settings.EDS_CACHE, - eds_cache_dir: Settings.EDS_CACHE_DIR, - timeout: Settings.EDS_TIMEOUT, - open_timeout: Settings.EDS_OPEN_TIMEOUT, - api_hosts_list: Settings.EDS_HOSTS, - debug: Settings.EDS_DEBUG, - log: File.join(Settings.EDS_LOGDIR, 'faraday.log'), - decode_sanitize_html: true + guest: eds_params[:guest], + session_token: eds_params[:session_token], + caller: eds_params[:caller], + user: Settings.EDS_USER, + pass: Settings.EDS_PASS, + profile: Settings.EDS_PROFILE, + use_cache: Settings.EDS_CACHE, + eds_cache_dir: Settings.EDS_CACHE_DIR, + timeout: Settings.EDS_TIMEOUT, + open_timeout: Settings.EDS_OPEN_TIMEOUT, + api_hosts_list: Settings.EDS_HOSTS, + debug: Settings.EDS_DEBUG, + log: File.join(Settings.EDS_LOGDIR, 'faraday.log'), + decode_sanitize_html: true, + recover_from_bad_source_type: true } end end