relaton-iso-bib 1.19.0 → 1.19.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d11075e07bb8d16a20b5a1c9f980a858d8650f6cc249f34e92f33ad4ddd45e05
4
- data.tar.gz: e74a8835551db834aa32e77eb64053f748f77b86537d9a9106d7781a24af0921
3
+ metadata.gz: 860f3d81266f83e7f0a1d83d9f2e6a46ace0756beb111b220cf594396d0dc279
4
+ data.tar.gz: 7d0370c90d4b736d2639c50ac4911de82979ee1030e8ae195ea365af6d85d372
5
5
  SHA512:
6
- metadata.gz: 970553f2568402967d1cea211101d388eef52201d193ef292c0a5d5c356e2aa490d1ef3a0c065dc1dc1ffbccb5f619d10da8cd024dadf18064cc4b30ce6fcd11
7
- data.tar.gz: c0383507f0765c6f57e34218bde7d20e840b9a6a4236344a1a9eefd2a47a882fc4891e03815787f928f72ed5753632d09ebd8147b247ed0043e750043100b168
6
+ metadata.gz: bd2746def404ebe7c6f9048567f1f27a48ddb133f4e02b3092a7e5fec809ebc9c1e006c7a6a1a49df5820dde94faf72d334356932d1e948bc38bc514860adafd
7
+ data.tar.gz: 49d5bfe5dd54eee4cb279cd3a200b3efa4efefb7b77a6c8198dd2802f6e2507478f82c95c82911db439830cb25a458edd6b7b8810116ea54b369ffee114888ac
@@ -3,7 +3,7 @@ module RelatonIsoBib
3
3
  DOCTYPES = %w[
4
4
  international-standard technical-specification technical-report
5
5
  publicly-available-specification international-workshop-agreement guide
6
- recommendation amendment technical-corrigendum directive committee-document
6
+ recommendation amendment technical-corrigendum directive committee-document addendum
7
7
  ].freeze
8
8
 
9
9
  #
@@ -15,7 +15,7 @@ module RelatonIsoBib
15
15
  attr_reader :structuredidentifier
16
16
 
17
17
  # @return [String, nil]
18
- attr_reader :stagename
18
+ attr_reader :stagename, :price_code
19
19
 
20
20
  # @!attribute [r] subdoctype
21
21
  # @return [RelatonIsoBib::DocumentType]
@@ -56,6 +56,7 @@ module RelatonIsoBib
56
56
  # @param stagename [String, nil]
57
57
  # @param fast_track [Boolean, nil]
58
58
  # @param title [Array<Hash, RelatonBib::TypedTitleString>, RelatonBib::TypedTitleStringCollection]
59
+ # @param price_code [String, nil]
59
60
  #
60
61
  # @param editorialgroup [Hash, RelatonIsoBib::EditorialGroup]
61
62
  # @option workgrpup [String] :name
@@ -135,6 +136,7 @@ module RelatonIsoBib
135
136
  @stagename = args[:stagename]
136
137
  @id_attribute = true
137
138
  @fast_track = args[:fast_track]
139
+ @price_code = args[:price_code] if args.key? :price_code # @TODO: remove `if` when all users update relaton-iec
138
140
  end
139
141
 
140
142
  #
@@ -170,6 +172,7 @@ module RelatonIsoBib
170
172
  structuredidentifier&.to_xml b
171
173
  b.stagename stagename if stagename
172
174
  b.send("fast-track", fast_track) unless fast_track.nil?
175
+ b.send("price-code", price_code) if price_code
173
176
  end
174
177
  ext["schema-version"] = ext_schema unless opts[:embedded]
175
178
  end
@@ -191,6 +194,7 @@ module RelatonIsoBib
191
194
  hash["horizontal"] = horizontal unless horizontal.nil?
192
195
  hash["stagename"] = stagename if stagename
193
196
  hash["fast_track"] = fast_track unless fast_track.nil?
197
+ hash["price_code"] = price_code if price_code
194
198
  hash
195
199
  end
196
200
 
@@ -1,3 +1,3 @@
1
1
  module RelatonIsoBib
2
- VERSION = "1.19.0".freeze
2
+ VERSION = "1.19.2".freeze
3
3
  end
@@ -17,6 +17,7 @@ module RelatonIsoBib
17
17
  data[:horizontal] = hrzt.text == "true" if hrzt
18
18
  data[:stagename] = ext.at("./stagename")&.text
19
19
  data[:fast_track] = ext.at("./fast-track")&.text
20
+ data[:price_code] = ext.at("./price-code")&.text
20
21
  data
21
22
  end
22
23
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iso-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.0
4
+ version: 1.19.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-03 00:00:00.000000000 Z
11
+ date: 2024-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: isoics