Skip to content

Commit

Permalink
Memoize list; bump to version 0.5.14
Browse files Browse the repository at this point in the history
  • Loading branch information
derrekc committed Nov 7, 2023
1 parent 6aadf57 commit 7f50249
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.13
0.5.14
4 changes: 3 additions & 1 deletion lib/marc_to_argot/macros/duke/urls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ def add_duke_proxy(href, type, ctx)
# Domains or substrings for URLs that are not proxied but are
# nevertheless restricted to Duke affiliates (via Shib/SSO)
def unproxied_restricted
return @unproxyed_restricted if defined? @unproxied_restricted

yaml_data = YAML.load_file(File.expand_path('../../../data/duke/unproxied_restricted.yml', __dir__))
yaml_data['domains_and_urls']
@unproxied_restricted = yaml_data['domains_and_urls']
end

def url_restricted?(href, type)
Expand Down

0 comments on commit 7f50249

Please sign in to comment.