edoxen 0.1.1 → 0.3.0
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 +4 -4
- data/.rubocop_todo.yml +202 -40
- data/CLAUDE.md +220 -0
- data/README.adoc +150 -206
- data/edoxen.gemspec +7 -1
- data/exe/edoxen +6 -0
- data/lib/edoxen/_metadata.rb.deprecated +57 -0
- data/lib/edoxen/action.rb +4 -52
- data/lib/edoxen/approval.rb +5 -25
- data/lib/edoxen/cli.rb +156 -0
- data/lib/edoxen/consideration.rb +5 -36
- data/lib/edoxen/enums.rb +43 -0
- data/lib/edoxen/error.rb +7 -0
- data/lib/edoxen/localization.rb +30 -0
- data/lib/edoxen/{meeting_identfier.rb → meeting_identifier.rb} +2 -6
- data/lib/edoxen/resolution.rb +24 -51
- data/lib/edoxen/resolution_collection.rb +3 -13
- data/lib/edoxen/resolution_date.rb +13 -30
- data/lib/edoxen/resolution_metadata.rb +26 -0
- data/lib/edoxen/resolution_relation.rb +17 -0
- data/lib/edoxen/resolution_set.rb +17 -0
- data/lib/edoxen/schema_validator.rb +211 -0
- data/lib/edoxen/source_url.rb +18 -0
- data/lib/edoxen/structured_identifier.rb +6 -9
- data/lib/edoxen/url.rb +16 -0
- data/lib/edoxen/version.rb +1 -1
- data/lib/edoxen.rb +36 -18
- data/schema/edoxen.yaml +308 -212
- metadata +52 -13
- data/lib/edoxen/resolution_relationship.rb +0 -51
- data/lib/edoxen/subject_body.rb +0 -20
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# class ResolutionRelation {
|
|
4
|
-
# source: StructuredIdentifier (Resolution)
|
|
5
|
-
# destination: StructuredIdentifier (Resolution)
|
|
6
|
-
# type: ResolutionRelationType
|
|
7
|
-
# }
|
|
8
|
-
|
|
9
|
-
# enum ResolutionRelationType {
|
|
10
|
-
# annexOf {
|
|
11
|
-
# This resolution is an annex to the target resolution.
|
|
12
|
-
# }
|
|
13
|
-
|
|
14
|
-
# hasAnnex {
|
|
15
|
-
# The target resolution is an annex of the source resolution.
|
|
16
|
-
# }
|
|
17
|
-
|
|
18
|
-
# updates {
|
|
19
|
-
# This resolution updates the target resolution.
|
|
20
|
-
# }
|
|
21
|
-
|
|
22
|
-
# refines {
|
|
23
|
-
# This resolution refines the target resolution.
|
|
24
|
-
# }
|
|
25
|
-
|
|
26
|
-
# replaces/obsoletes {
|
|
27
|
-
# This resolution replaces/obsoletes the target resolution.
|
|
28
|
-
# }
|
|
29
|
-
|
|
30
|
-
# considers {
|
|
31
|
-
# This resolution is made in consideration of the target resolution.
|
|
32
|
-
# }
|
|
33
|
-
# }
|
|
34
|
-
|
|
35
|
-
require "lutaml/model"
|
|
36
|
-
|
|
37
|
-
module Edoxen
|
|
38
|
-
class ResolutionRelationship < Lutaml::Model::Serializable
|
|
39
|
-
RESOLUTION_RELATIONSHIP_ENUM = %w[annexOf hasAnnex updates refines replaces obsoletes considers].freeze
|
|
40
|
-
|
|
41
|
-
attribute :source, :string
|
|
42
|
-
attribute :destination, :string
|
|
43
|
-
attribute :type, :string, values: RESOLUTION_RELATIONSHIP_ENUM
|
|
44
|
-
|
|
45
|
-
key_value do
|
|
46
|
-
map "source", to: :source
|
|
47
|
-
map "destination", to: :destination
|
|
48
|
-
map "type", to: :type
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
data/lib/edoxen/subject_body.rb
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# SubjectBody {
|
|
4
|
-
# name
|
|
5
|
-
# address
|
|
6
|
-
# etc.
|
|
7
|
-
# }
|
|
8
|
-
require "lutaml/model"
|
|
9
|
-
|
|
10
|
-
module Edoxen
|
|
11
|
-
class SubjectBody < Lutaml::Model::Serializable
|
|
12
|
-
attribute :name, :string
|
|
13
|
-
attribute :address, :string
|
|
14
|
-
|
|
15
|
-
key_value do
|
|
16
|
-
map "name", to: :name
|
|
17
|
-
map "address", to: :address
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|