Skip to content

Commit

Permalink
update bolognese gem to handle citeproc dates better. #590
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jul 24, 2020
1 parent e35564e commit e582235
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
24 changes: 13 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ 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)
jmespath (~> 1.0)
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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
8 changes: 0 additions & 8 deletions config/initializers/mime_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -58,9 +53,6 @@
else
obj.send(f)
end
rescue TypeError => exception
Raven.extra_context object: obj
Raven.capture_exception(exception)
end
end

Expand Down

0 comments on commit e582235

Please sign in to comment.