relaton-render 0.6.2 → 0.6.3

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: 67568cad7210dff0b205836fc4383d409b5f8b38b49a776a8ed67e2507c8e145
4
- data.tar.gz: fafb18d828ea75cdc786cce531da42c972b2472d3911fdfe92b5428988fcce04
3
+ metadata.gz: ebc09b5ba249f21667afb066c537b845ecb2975f1b7b6ff821ee82deb44c1993
4
+ data.tar.gz: b45b8aa2962240f827e383349ac38f82b136448c1a89b1eddefb643cb09b9762
5
5
  SHA512:
6
- metadata.gz: 759d9da2be9ac7ce34abd03e9458c7ccec8075930061adc6002ebae138cde6f35cb8a6eb714a69bd22d8e134a7c6f08bda1b3f8e722e418ada17fd416e33a7e1
7
- data.tar.gz: 44040060e55e3396c257838f7cf73a6ba85a4b2da203c4d1fd676fd04222051f8e4030ec3f5bd3a2c2093d671d56f13529d16c929ea16861d298b2f7d597ff8a
6
+ metadata.gz: 2de33b5a9ca5e1801e748b4ce4e24719408ef9bddaf098cf036f370efa64f486cc068834e89a03bd239a72f4a5698c4f5899dac2c9e509b6bca19ea0fadb1a53
7
+ data.tar.gz: 3937395483e26150b79d9373f4b816bc6e710e5f7a482792ba399f2c515256e1816c8efa511c765743da98ac7d8e719f02117259b0a4b860e4a8b7ec358cbcff
@@ -13,9 +13,9 @@ date_formats:
13
13
  day_month_year: to_long_s
14
14
  date_time: to_long_s
15
15
  draft: "Entwurf %"
16
- edition_ordinal: "% Aufl."
16
+ edition_ordinal: "% Ausg."
17
17
  ordinal_keys: []
18
- edition: Auflage
18
+ edition: Ausgabe
19
19
  editor:
20
20
  sg: Hrsg.
21
21
  pl: Hrsg.
@@ -44,6 +44,6 @@ size:
44
44
  sg: "% Nr."
45
45
  pl: "% Nr."
46
46
  inflection:
47
- Auflage:
47
+ Ausgabe:
48
48
  gender: f
49
49
 
@@ -115,9 +115,8 @@ module Relaton
115
115
  end
116
116
 
117
117
  def editionformat(edn, num)
118
- return edn unless num || /^\d+$/.match?(edn)
119
-
120
- ret = edition_translate1(num || edn.to_i)
118
+ num || /^\d+$/.match?(edn) or return edn
119
+ ret = edition_translate1(num || edn.to_i) or return edn
121
120
  @r.edition_ordinal.sub(/%(Spellout|Ordinal)?/, ret)
122
121
  end
123
122
 
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Render
3
- VERSION = "0.6.2".freeze
3
+ VERSION = "0.6.3".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-render
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-29 00:00:00.000000000 Z
11
+ date: 2023-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler