rfcxml 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d78bc97fa8b73803d80d88b9e3d69d3ab98ea34b481d45b4844b685943cb518e
4
- data.tar.gz: 144d9c7c64dc113af0764099683f33bc8eb9f3f3e6ae70077ae51e43d2e2891b
3
+ metadata.gz: 503aee54b71c3f54fdb6b0fe202b6b4d444e6b8e9a37f9a764e4fe1c6a579bdb
4
+ data.tar.gz: 320c1c22d864595249496e13b7b65ed1d85c5dc39f9e2d3659a8d21b9189a911
5
5
  SHA512:
6
- metadata.gz: 284650ce2accd2ff0a7d75089dd773dce3126e20dcb3a7c02d600612ee4f7bce134b16662e001c2642dedf2d949018550c6d7db6f3781524747ca8aa87b387b9
7
- data.tar.gz: cee43215ce256f935a1e7986ca1fdfd30de4ac3f44bdd47caf8a5d34ed7fdc7166bb51a3f7db4d993132868e72aeafe255f2c013491c2ccee29c604abed80afc
6
+ metadata.gz: ffb1d8ec0b4fadc8e8935de090d0b4761f5b1a485d0327eaba7262368199fcac2fb49a6aafd019eecdbb0e6bf6436fc428faaef5eb3ce96d9f4a9b84a60145e4
7
+ data.tar.gz: c30eabc921018fbc976275e344c0e95c20607af406ab26c4e5edd0f6d73bae4d03a8b18da099e6d82648797c7b57bb15b9477c45558c84ad9ae23445ff46f1e4
data/.gitignore CHANGED
@@ -12,3 +12,5 @@
12
12
 
13
13
  # rspec failure tracking
14
14
  .rspec_status
15
+
16
+ Gemfile.lock
data/.rubocop.yml CHANGED
@@ -15,3 +15,5 @@ plugins:
15
15
  - rubocop-performance
16
16
  - rubocop-rake
17
17
 
18
+ AllCops:
19
+ TargetRubyVersion: 3.0
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2026-03-19 12:31:01 UTC using RuboCop version 1.85.1.
3
+ # on 2026-04-22 22:54:22 UTC using RuboCop version 1.86.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -11,13 +11,12 @@ Gemspec/RequiredRubyVersion:
11
11
  Exclude:
12
12
  - 'rfcxml.gemspec'
13
13
 
14
- # Offense count: 22
14
+ # Offense count: 20
15
15
  # This cop supports safe autocorrection (--autocorrect).
16
16
  # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
17
17
  # URISchemes: http, https
18
18
  Layout/LineLength:
19
19
  Exclude:
20
- - 'canon_attribute_order_bug.rb'
21
20
  - 'lib/rfcxml/v3/li.rb'
22
21
  - 'lib/rfcxml/v3/rfc.rb'
23
22
  - 'scripts/roundtrip_test.rb'
@@ -60,30 +59,12 @@ Metrics/PerceivedComplexity:
60
59
  - 'lib/rfcxml/v3/rfc.rb'
61
60
  - 'scripts/roundtrip_test.rb'
62
61
 
63
- # Offense count: 1
64
- # This cop supports safe autocorrection (--autocorrect).
65
- # Configuration parameters: EnforcedStyle.
66
- # SupportedStyles: be, be_nil
67
- RSpec/BeNil:
68
- Exclude:
69
- - 'spec/rfcxml_spec.rb'
70
-
71
62
  # Offense count: 1
72
63
  # Configuration parameters: IgnoredMetadata.
73
64
  RSpec/DescribeClass:
74
65
  Exclude:
75
66
  - 'spec/v3/document_creation_spec.rb'
76
67
 
77
- # Offense count: 19
78
- # This cop supports unsafe autocorrection (--autocorrect-all).
79
- # Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
80
- # SupportedStyles: described_class, explicit
81
- RSpec/DescribedClass:
82
- Exclude:
83
- - 'spec/v3/author_spec.rb'
84
- - 'spec/v3/rfc_spec.rb'
85
- - 'spec/v3/section_spec.rb'
86
-
87
68
  # Offense count: 11
88
69
  # Configuration parameters: CountAsOne.
89
70
  RSpec/ExampleLength:
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in genericode.gemspec
6
6
  gemspec
7
7
 
8
- gem "canon", github: "ronaldtse/canon", branch: "fix/empty-attribute-value"
8
+ gem "canon"
9
9
  gem "lutaml-model", github: "lutaml/lutaml-model", ref: "main"
10
10
  gem "nokogiri"
11
11
  gem "rake", "~> 13.0"
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Rfcxml
6
6
  module V3
7
7
  class Annotation < Lutaml::Model::Serializable
8
- attribute :content, :string
8
+ attribute :content, :string, collection: true
9
9
  attribute :bcp14, Bcp14, collection: true
10
10
  attribute :cref, Cref, collection: true
11
11
  attribute :em, Em, collection: true
data/lib/rfcxml/v3/dd.rb CHANGED
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Rfcxml
6
6
  module V3
7
7
  class Dd < Lutaml::Model::Serializable
8
- attribute :content, :string
8
+ attribute :content, :string, collection: true
9
9
  attribute :anchor, :string
10
10
  attribute :pn, :string
11
11
  attribute :artset, Artset, collection: true
data/lib/rfcxml/v3/li.rb CHANGED
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Rfcxml
6
6
  module V3
7
7
  class Li < Lutaml::Model::Serializable
8
- attribute :content, :string
8
+ attribute :content, :string, collection: true
9
9
  attribute :anchor, :string
10
10
  attribute :pn, :string
11
11
  attribute :artset, Artset, collection: true
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Rfcxml
6
6
  module V3
7
7
  class Name < Lutaml::Model::Serializable
8
- attribute :content, :string
8
+ attribute :content, :string, collection: true
9
9
  attribute :slugified_name, :string
10
10
  attribute :bcp14, Bcp14, collection: true
11
11
  attribute :br, Br, collection: true
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Rfcxml
6
6
  module V3
7
7
  class Organization < Lutaml::Model::Serializable
8
- attribute :content, :string
8
+ attribute :content, :string, collection: true
9
9
  attribute :abbrev, :string
10
10
  attribute :ascii, :string
11
11
  attribute :ascii_abbrev, :string
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Rfcxml
6
6
  module V3
7
7
  class Sourcecode < Lutaml::Model::Serializable
8
- attribute :content, :string
8
+ attribute :content, :string, collection: true
9
9
  attribute :anchor, :string
10
10
  attribute :pn, :string
11
11
  attribute :name, :string
data/lib/rfcxml/v3/td.rb CHANGED
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Rfcxml
6
6
  module V3
7
7
  class Td < Lutaml::Model::Serializable
8
- attribute :content, :string
8
+ attribute :content, :string, collection: true
9
9
  attribute :anchor, :string
10
10
  attribute :colspan, :string
11
11
  attribute :rowspan, :string
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Rfcxml
6
6
  module V3
7
7
  class Text < Lutaml::Model::Serializable
8
- attribute :content, :string
8
+ attribute :content, :string, collection: true
9
9
  attribute :anchor, :string
10
10
  attribute :pn, :string
11
11
  attribute :hang_text, :string
data/lib/rfcxml/v3/tr.rb CHANGED
@@ -12,7 +12,6 @@ module Rfcxml
12
12
  xml do
13
13
  element "tr"
14
14
  ordered
15
- mixed_content
16
15
 
17
16
  map_attribute "anchor", to: :anchor
18
17
  map_element "td", to: :td
@@ -5,7 +5,7 @@ require "lutaml/model"
5
5
  module Rfcxml
6
6
  module V3
7
7
  class Xref < Lutaml::Model::Serializable
8
- attribute :content, :string
8
+ attribute :content, :string, collection: true
9
9
  attribute :target, :string
10
10
  attribute :pageno, :string, default: -> { "false" }
11
11
  attribute :format, :string, default: -> { "default" }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rfcxml
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfcxml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-03-20 00:00:00.000000000 Z
11
+ date: 2026-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model