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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48f48ae087543c9b2a521a0ee3c062cf6336df6407c89e050f85fe213ccd22a1
4
- data.tar.gz: 52701aa722dd5e759d078fbad77f3856d090cb9485df26ad0888852e3c85c0fd
3
+ metadata.gz: c56349e19d87e6f18a3704f1f1ee4256572485aa3917660803ce6265131a782b
4
+ data.tar.gz: 40baabfdee09da5b4bf2aec91082aacb1ba729bcc2f6b5d89d1e9d784c9997a7
5
5
  SHA512:
6
- metadata.gz: 30ed85c433a45fad6858fbee3fdd57a6fe3e30a4a2e489c258f0e077a43a59c90e25cc04ab97fa0d5960cfc0665a4106c850973d862699379e3369e48653ebd4
7
- data.tar.gz: fa6e95e0c5829daae1ef08d468167ef363013fb4a16453eb377cc7e96a252b47d1097dce2dd108906deb24cd2652f1f1f831738d6cc43754b83aba111ee3952c
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 identifier class (currently always
705
- empty on 2.0.26)
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.model_attributes.keys.map(&:to_s)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pubid
4
- VERSION = "2.0.28"
4
+ VERSION = "2.0.29"
5
5
  end