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 +4 -4
- data/lib/relaton_bib/bibliographic_item.rb +4 -3
- data/lib/relaton_bib/edition.rb +4 -4
- data/lib/relaton_bib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b16ceaaf0f86b9834a58c3a39008309f76d26de2347cb21fd2fef40cabc2fb0d
|
4
|
+
data.tar.gz: 98348d372d278546dfa04579b80e6f7b1b9fa289ce794c728716cd73b97787e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
244
|
-
|
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([])
|
data/lib/relaton_bib/edition.rb
CHANGED
@@ -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
|
#
|
data/lib/relaton_bib/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|