relaton-bib 1.13.3 → 1.13.4

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: ca70214e52f3a00a9388de24a1e07fa6464e0cb23831fd14775ce0e29c929fdf
4
- data.tar.gz: 33cafac4c23e9dc57f102982bffbea20c25420f89471f164a0f875e4e6a74e26
3
+ metadata.gz: b16ceaaf0f86b9834a58c3a39008309f76d26de2347cb21fd2fef40cabc2fb0d
4
+ data.tar.gz: 98348d372d278546dfa04579b80e6f7b1b9fa289ce794c728716cd73b97787e0
5
5
  SHA512:
6
- metadata.gz: d5eb2c4f5b7c13337a0e1f560d69ad140f91ea49405c3a4d876110bcdab32e532043a65187ca5fa6973c6cb0cf0240c285430a58d32338d186da882632194b2d
7
- data.tar.gz: 3fd3d4b199c1c190c4920c7daba0e73979a6e82ee24648a84ab3057e2cee08345db9cc929ba324773a55d0e1fe4160ca5af2320a2e297c52dfcbace78bbcd282
6
+ metadata.gz: 97b3b1e729dfcae82196f3aff635c92a199cdae6ca0fa5c338321ef0f86bc3412212b83a3871c1aae7585e71d9db5bc6c6406327e1a7c43cb1f2ca1524e11ebb
7
+ data.tar.gz: eab637a2d826cfa98d7d1cbda52509d05a59949ef7617ef04e066e1abbe4b9326d9a7313db64495925ee345fb1214f08b2381f66acce9a8b3e5e1a21ce95809d
@@ -145,7 +145,7 @@ module RelatonBib
145
145
  # @param language [Arra<String>]
146
146
  # @param script [Array<String>]
147
147
  # @param docstatus [RelatonBib::DocumentStatus, nil]
148
- # @param edition [RelatonBib::Edition, nil]
148
+ # @param edition [RelatonBib::Edition, String, Integer, Float, nil]
149
149
  # @param version [Array<RelatonBib::BibliographicItem::Version>]
150
150
  # @param biblionote [RelatonBib::BiblioNoteCollection]
151
151
  # @param series [Array<RelatonBib::Series>]
@@ -240,8 +240,9 @@ module RelatonBib
240
240
  @docnumber = args[:docnumber]
241
241
  @edition = case args[:edition]
242
242
  when Hash then Edition.new(**args[:edition])
243
- when String then Edition.new(content: args[:edition])
244
- else args[:edition]
243
+ when String, Integer, Float
244
+ Edition.new(content: args[:edition].to_s)
245
+ when Edition then args[:edition]
245
246
  end
246
247
  @version = args.fetch :version, []
247
248
  @biblionote = args.fetch :biblionote, BiblioNoteCollection.new([])
@@ -9,12 +9,12 @@ module RelatonBib
9
9
  #
10
10
  # Initialize edition.
11
11
  #
12
- # @param [String] content edition
13
- # @param [String, nil] number number
12
+ # @param [String, Integer, Float] content edition
13
+ # @param [String, Integer, Float, nil] number number
14
14
  #
15
15
  def initialize(content:, number: nil)
16
- @content = content
17
- @number = number
16
+ @content = content.to_s
17
+ @number = number&.to_s
18
18
  end
19
19
 
20
20
  #
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "1.13.3".freeze
2
+ VERSION = "1.13.4".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.3
4
+ version: 1.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-15 00:00:00.000000000 Z
11
+ date: 2022-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug