pubid 2.0.0.pre.alpha.54 → 2.0.0.pre.alpha.55

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.
@@ -1118,9 +1118,14 @@ module Pubid
1118
1118
  printed_attrs[:year] = attributes[:year]
1119
1119
  printed_attrs[:month] = attributes[:month]
1120
1120
  elsif parsed[:draft_month]
1121
- # The date trails the draft itself ("D8, June 2010"); keep it
1122
- # inside the draft so the code stays date-less.
1123
- printed_draft = "#{printed_draft}, #{extract_value(parsed[:draft_month])} " "#{extract_value(parsed[:draft_year])}"
1121
+ # The date trails the draft itself ("D31, Aug 2010"): the
1122
+ # normalization ledger strips the ordinal draft on the
1123
+ # printed joint face and surfaces the date as the printed
1124
+ # date ("11073-10418 D13, January 2011" ->
1125
+ # "11073.10418, January 2011") -- composing it back into the
1126
+ # draft emitted "/D, Aug 2010" remnants.
1127
+ printed_attrs[:year] = extract_value(parsed[:draft_year])
1128
+ printed_attrs[:month] = extract_value(parsed[:draft_month])
1124
1129
  end
1125
1130
  printed_attrs[:code] = printed_code
1126
1131
  printed_attrs[:draft] = printed_draft if printed_draft
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.0.pre.alpha.54"
4
+ VERSION = "2.0.0.pre.alpha.55"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.alpha.54
4
+ version: 2.0.0.pre.alpha.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.