Skip to content

Commit

Permalink
update Nokogiri to v1.15 & doctype model
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew2net committed Nov 27, 2023
1 parent a803651 commit 8b237fd
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 50 deletions.
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ item = hit_collection[0].fetch
[source,ruby]
----
item.to_xml
=> "<bibitem id="XEP0001" type="standard" schema-version="v1.2.4">
=> "<bibitem id="XEP0001" type="standard" schema-version="v1.2.5">
<fetched>2023-07-18</fetched>
<title format="text/plain" language="en" script="Latn">XMPP Extension Protocols</title>
...
Expand All @@ -78,7 +78,7 @@ With argument `bibdata: true` it outputs XML wrapped by `bibdata` element and ad
[source,ruby]
----
item.to_xml bibdata: true
=> "<bibdata type="standard" schema-version="v1.2.4">
=> "<bibdata type="standard" schema-version="v1.2.5">
<fetched>2023-07-18</fetched>
<title format="text/plain" language="en" script="Latn">XMPP Extension Protocols</title>
...
Expand Down
14 changes: 7 additions & 7 deletions lib/relaton_xsf/hash_converter.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module RelatonXsf
class HashConverter < RelatonBib::HashConverter
class << self
# @param item_hash [Hash]
# @return [RelatonBib::BibliographicItem]
def bib_item(item_hash)
BibliographicItem.new(**item_hash)
end
module HashConverter
include RelatonBib::HashConverter
extend self
# @param item_hash [Hash]
# @return [RelatonBib::BibliographicItem]
def bib_item(item_hash)
BibliographicItem.new(**item_hash)
end
end
end
2 changes: 1 addition & 1 deletion lib/relaton_xsf/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module RelatonXsf
VERSION = "1.16.2"
VERSION = "1.17.0"
end
2 changes: 1 addition & 1 deletion relaton_xsf.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
# spec.add_dependency "example-gem", "~> 1.0"

spec.add_dependency "mechanize", "~> 2.8.0"
spec.add_dependency "relaton-bib", "~> 1.16.0"
spec.add_dependency "relaton-bib", "~> 1.17.0"
spec.add_dependency "relaton-index", "~> 0.2.0"

# For more information and examples about making a new gem, check out our
Expand Down
6 changes: 3 additions & 3 deletions spec/fixtures/bibdata.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<bibdata type="standard" schema-version="v1.2.4">
<fetched>2023-07-18</fetched>
<bibdata type="standard" schema-version="v1.2.5">
<fetched>2023-11-08</fetched>
<title format="text/plain" language="en" script="Latn">XMPP Extension Protocols</title>
<uri type="src">http://xmpp.org/extensions/xep-0001.html</uri>
<docidentifier type="XEP" primary="true">XEP 0001</docidentifier>
Expand All @@ -14,7 +14,7 @@
<name>
<completename language="en">Peter Saint-Andre</completename>
</name>
<email>xsf@stpeter.im</email>
<email>stpeter@stpeter.im</email>
</person>
</contributor>
<contributor>
Expand Down
70 changes: 34 additions & 36 deletions spec/vcr_cassettes/get_successful.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b237fd

Please sign in to comment.