This PR resolves the error reported in ticket #396 by updating the print presenter to use .try(:first) which resolves by returning nil without failing if the requested element does not have the method .first, i.e. is empty or nil
Additional Changes:
Updated the print template to include the Google Analytics tracking script for the print page as well as importing shared header content for unification of presentation
Minor tweaks to the Makefile to remove duplicate variables (SHORTNAME) as well as introducing new targets for check and local for streamlined development tasks, alongside removing incorrect and erroneous commands where applicable
Reorganised .gitignore file to improve readability as well as added comments to group and explain rule application
Removed duplicated rubocop command
Reorganised gemfile to create test specific group and lock gem versions to current version of Ruby in use
Minor Rubocop fixes including preventing rubocop from parsing the bin/s-query file which is used to resolve the fallback location for the Apache Jena Fuseki s-query file added in this commit
Updated deployment.yml to change dev-infrastructure branch name to dev following branch cleanup
This PR resolves the error reported in ticket #396 by updating the print presenter to use
.try(:first)
which resolves by returningnil
without failing if the requested element does not have the method.first
, i.e. is empty or nilAdditional Changes:
SHORTNAME
) as well as introducing new targets forcheck
andlocal
for streamlined development tasks, alongside removing incorrect and erroneous commands where applicablebin/s-query
file which is used to resolve the fallback location for the Apache Jena Fuseki s-query file added in this commitdev-infrastructure
branch name todev
following branch cleanup