pubid 2.0.28 → 2.0.29
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/README.adoc +4 -3
- data/lib/pubid/export/flavor_exporter.rb +5 -3
- data/lib/pubid/version.rb +1 -1
- data/lib/tasks/website-data.json +4224 -2412
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c56349e19d87e6f18a3704f1f1ee4256572485aa3917660803ce6265131a782b
|
|
4
|
+
data.tar.gz: 40baabfdee09da5b4bf2aec91082aacb1ba729bcc2f6b5d89d1e9d784c9997a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27ae4a98098399556651770b46bece23f167906b6313050f06a5539ba269809d578442e6b47ace060f03db3fd0f3c63ec553461deb544ddb1051af455a631ef5
|
|
7
|
+
data.tar.gz: fbc0dfbdcb34f5d563071d6d74d5607b2545620d9491a42a8387b4f9da829020f0590c9391057dfbb8147cd28b6dea2056d1952535f6ad48c28891b7129ce673
|
data/README.adoc
CHANGED
|
@@ -645,7 +645,8 @@ The exported JSON follows this structure:
|
|
|
645
645
|
"examples": ["ISO 9001:2015", "ISO/IEC 17031-1:2020", ...]
|
|
646
646
|
}
|
|
647
647
|
],
|
|
648
|
-
"attributes": [
|
|
648
|
+
"attributes": ["_type", "number", "part", "subpart", "stage_iteration",
|
|
649
|
+
"date", "edition", "languages", ...]
|
|
649
650
|
}
|
|
650
651
|
}
|
|
651
652
|
----
|
|
@@ -701,8 +702,8 @@ The exported JSON follows this structure:
|
|
|
701
702
|
|
|
702
703
|
|`attributes`
|
|
703
704
|
|`string[]`
|
|
704
|
-
|Lutaml::Model attribute names on the
|
|
705
|
-
|
|
705
|
+
|Lutaml::Model attribute names declared on the flavor's lead identifier
|
|
706
|
+
class (read through lutaml's class-level `attributes` introspection)
|
|
706
707
|
|
|
707
708
|
|`wrapper_types`
|
|
708
709
|
|`object[]`
|
|
@@ -202,10 +202,12 @@ module Pubid
|
|
|
202
202
|
end
|
|
203
203
|
end
|
|
204
204
|
|
|
205
|
+
# The flavor's declared attribute surface, from lutaml-model's public
|
|
206
|
+
# class-level introspection (`attributes` returns name => Attribute).
|
|
207
|
+
# #720: the previous `model_attributes` call targeted a method that does
|
|
208
|
+
# not exist, so the column was always empty.
|
|
205
209
|
def extract_attributes(klass)
|
|
206
|
-
klass.
|
|
207
|
-
rescue NoMethodError
|
|
208
|
-
[]
|
|
210
|
+
klass.attributes.keys.map(&:to_s)
|
|
209
211
|
end
|
|
210
212
|
|
|
211
213
|
def extract_wrapper_types
|
data/lib/pubid/version.rb
CHANGED