metanorma / pubid-iso

Implementation of ISO pubid
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

URGENT! TR type is nil in #to_h output #247

Closed andrew2net closed 7 months ago

andrew2net commented 7 months ago

> pubid = Pubid::Iso::Identifier.parse("ISO/TR 11071-2:1996")
=> #<Pubid::Iso::Identifier::TechnicalReport:0x0000000115a06cc8 @edition=nil, @number="11071"@7, @part="2"@13, @publisher="ISO", @year=1996>

> hash = pubid.to_h
=> {:publisher=>"ISO", :number=>"11071"@7, :year=>1996, :part=>"2"@13, :edition=>nil, :type=>nil}

> hash[:type]
=> nil
mico commented 7 months ago

fixed in #249