Skip to content

Commit

Permalink
update extent, locality, & move flavor data under ext in YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew2net committed Dec 13, 2024
1 parent b6dc86d commit 136886c
Show file tree
Hide file tree
Showing 13 changed files with 32,292 additions and 31,480 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ IETF documents may have `src`, `xml`, and `doi` link types.
[source,ruby]
----
item.link
=> [#<RelatonBib::TypedUri:0x00007fe8b287a120 @content=#<Addressable::URI:0x7e4 URI:https://raw.githubusercontent.com/relaton/relaton-data-ietf/master/data/reference.RFC.8341.xml>, @type="xml">,
=> [#<RelatonBib::TypedUri:0x00007fe8b287a120 @content=#<Addressable::URI:0x7e4 URI:https://raw.githubusercontent.com/relaton/relaton-data-rfcs/main/data/reference.RFC.8341.xml>, @type="xml">,
#<RelatonBib::TypedUri:0x00007fe8b2237ec0 @content=#<Addressable::URI:0x7f8 URI:https://www.rfc-editor.org/info/rfc8341>, @type="src">]
----

Expand Down
4 changes: 4 additions & 0 deletions lib/relaton_ietf/ietf_bibliographic_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ def to_hash(embedded: false)
hash
end

def has_ext?
super || stream
end

#
# Render BibXML (RFC)
#
Expand Down
2 changes: 1 addition & 1 deletion lib/relaton_ietf/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RelatonIetf
VERSION = "1.19.0".freeze
VERSION = "1.20.0".freeze
end
2 changes: 1 addition & 1 deletion relaton_ietf.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")

spec.add_dependency "base64"
spec.add_dependency "relaton-bib", "~> 1.19.0"
spec.add_dependency "relaton-bib", "~> 1.20.0"
spec.add_dependency "relaton-index", "~> 0.2.3"
end
4 changes: 2 additions & 2 deletions spec/relaton_ietf/ietf_bibliographic_item_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@

it "to_hash" do
expect(subject.to_hash).to eq(
"docid" => [{ "id" => "RFC 123", "type" => "IETF" }], "doctype" => { "type" => "RFC" },
"ext" => { "schema-version" => "v1.0.1", "stream" => "IETF" },
"docid" => [{ "id" => "RFC 123", "type" => "IETF" }],
"ext" => { "doctype" => { "type" => "RFC" }, "schema-version" => "v1.0.1", "stream" => "IETF" },
"id" => "RFC123", "schema-version" => "v1.2.9"
)
end
Expand Down
30 changes: 15 additions & 15 deletions spec/vcr_cassettes/bcp_47.yml

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

16 changes: 8 additions & 8 deletions spec/vcr_cassettes/fyi_2.yml

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

20 changes: 10 additions & 10 deletions spec/vcr_cassettes/i_d_abarth_cake_01.yml

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

Loading

0 comments on commit 136886c

Please sign in to comment.