From e5822359893f614069b469acfbf592bb21e09329 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Fri, 24 Jul 2020 12:11:18 +0200 Subject: [PATCH] update bolognese gem to handle citeproc dates better. #590 --- Gemfile.lock | 24 +++++++++++++----------- config/initializers/mime_types.rb | 8 -------- 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 26b86577f..69b301f10 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -60,8 +60,8 @@ GEM audited (4.9.0) activerecord (>= 4.2, < 6.1) aws-eventstream (1.1.0) - aws-partitions (1.342.0) - aws-sdk-core (3.104.0) + aws-partitions (1.345.0) + aws-sdk-core (3.104.3) aws-eventstream (~> 1, >= 1.0.2) aws-partitions (~> 1, >= 1.239.0) aws-sigv4 (~> 1.1) @@ -69,8 +69,8 @@ GEM aws-sdk-kms (1.36.0) aws-sdk-core (~> 3, >= 3.99.0) aws-sigv4 (~> 1.1) - aws-sdk-s3 (1.74.0) - aws-sdk-core (~> 3, >= 3.102.1) + aws-sdk-s3 (1.75.0) + aws-sdk-core (~> 3, >= 3.104.1) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.1) aws-sdk-sqs (1.30.0) @@ -80,7 +80,7 @@ GEM aws-eventstream (~> 1, >= 1.0.2) base32-url (0.5) batch-loader (1.5.0) - bcrypt (3.1.13) + bcrypt (3.1.15) benchmark-perf (0.4.0) benchmark-trend (0.2.0) benchmark_methods (0.7) @@ -102,7 +102,7 @@ GEM latex-decode (~> 0.0) binding_of_caller (0.8.0) debug_inspector (>= 0.0.1) - bolognese (1.8.1) + bolognese (1.8.2) activesupport (>= 4.2.5) benchmark_methods (~> 0.7) bibtex-ruby (>= 5.1.0) @@ -127,7 +127,7 @@ GEM rdf-rdfxml (~> 3.1) rdf-turtle (~> 3.1) thor (~> 1.0, >= 1.0.1) - bootsnap (1.4.6) + bootsnap (1.4.7) msgpack (~> 1.0) builder (3.2.4) bullet (6.1.0) @@ -188,8 +188,9 @@ GEM domain_name (0.5.20190701) unf (>= 0.0.5, < 1.0.0) dotenv (2.7.6) - ebnf (1.2.0) + ebnf (2.1.0) rdf (~> 3.1) + scanf (~> 1.0) sxp (~> 1.1) edtf (3.0.5) activesupport (>= 3.0, < 7.0) @@ -262,7 +263,7 @@ GEM htmlentities (4.3.4) http-cookie (1.0.3) domain_name (~> 0.5) - i18n (1.8.3) + i18n (1.8.5) concurrent-ruby (~> 1.0) i18n_data (0.8.0) iso-639 (0.3.5) @@ -438,8 +439,8 @@ GEM rdf (~> 3.1) rdf-rdfa (~> 3.1) rdf-xsd (~> 3.1) - rdf-turtle (3.1.1) - ebnf (~> 1.2) + rdf-turtle (3.1.2) + ebnf (~> 2.0) rdf (~> 3.1, >= 3.1.2) rdf-vocab (3.1.7) rdf (~> 3.1, >= 3.1.2) @@ -497,6 +498,7 @@ GEM ruby-progressbar (1.10.1) ruby_dep (1.5.0) safe_yaml (1.0.5) + scanf (1.0.0) seedbank (0.5.0) rake (>= 10.0) sentry-raven (2.13.0) diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb index 960dd6f0c..62be2f100 100644 --- a/config/initializers/mime_types.rb +++ b/config/initializers/mime_types.rb @@ -37,11 +37,6 @@ o.locale = options[:locale] || "en-US" o.citation end.join("\n\n") - rescue TypeError => exception - Raven.extra_context object: obj - Raven.capture_exception(exception) - - "An error occurred." rescue CSL::ParseError # unknown style and/or location Array.wrap(obj).map do |o| o.style = "apa" @@ -58,9 +53,6 @@ else obj.send(f) end - rescue TypeError => exception - Raven.extra_context object: obj - Raven.capture_exception(exception) end end