pubid-iso 0.7.2 → 0.7.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: 1be767645c955bb6ca456984b088d443786947ced66241b01f0ece4e772e37cc
4
- data.tar.gz: ed2de74d63898105105b3edba5afa50c4e0133619c17be50c42c0e2a2c58dc32
3
+ metadata.gz: 994066e91ad11d2b30748ff491bd2324dca970907d61f9995c1990388711d185
4
+ data.tar.gz: c4b9789dac35f4afb63c567f3e2e41a51633b8e7a46af0dc80b6022778d1e616
5
5
  SHA512:
6
- metadata.gz: b9faf9bc67c1995284a1e68cef72f4b52324875c16371f0c0ab37db06a565a2673134931808426edddfaad775db7cc10c586bb3b66f835f56a8a90a8775afb68
7
- data.tar.gz: c97332b884ecfa4f4a363c0a0825d028ca1899405f1d1d133cbd5538baf6683716fb5c5e530ffa4a186b53da6521c6d678308f370755a89e4be40163d90da76a
6
+ metadata.gz: cb7e5d8b073c664ebbfd3ad22e05a415cb932b4c314aeca51164ac1c7c26c1fe4db37c770c63735832251c8e790a1f118a489448bba0d816982bd12c9e7a1364
7
+ data.tar.gz: b82c61a71b57000f7607252b2d92bf999bd143a7aba39e59e515998f96a1c3062aeb4dbf33667d1620b89be536a35c4470f389d968622e731a94bf33f83924e7
@@ -77,7 +77,9 @@ module Pubid::Iso
77
77
  @joint_document = joint_document
78
78
  end
79
79
  end
80
- @tctype = tctype if tctype
80
+ if tctype
81
+ @tctype = tctype.is_a?(Array) ? tctype.map(&:to_s) : tctype.to_s
82
+ end
81
83
  @sctype = sctype.to_s if sctype
82
84
  @wgtype = wgtype.to_s if wgtype
83
85
  @tcnumber = tcnumber.to_s if tcnumber
@@ -95,7 +97,7 @@ module Pubid::Iso
95
97
  @base = base
96
98
  end
97
99
  end
98
- @part = part if part
100
+ @part = part.to_s if part
99
101
  @addendum = addendum if addendum
100
102
  @edition = edition
101
103
  @month = month
@@ -19,6 +19,10 @@ module Pubid::Iso
19
19
  },
20
20
  }.freeze
21
21
 
22
+ def initialize(publisher: nil, **opts)
23
+ super(publisher: publisher, **opts)
24
+ end
25
+
22
26
  def base_has_edition?
23
27
  @base.base.nil? && !@base.edition.nil? || (!@base.base.nil? && !@base.base.edition.nil?)
24
28
  end
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Iso
3
- VERSION = "0.7.2".freeze
3
+ VERSION = "0.7.4".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.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: 2024-01-19 00:00:00.000000000 Z
11
+ date: 2024-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.12'
61
+ version: 1.12.3
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.12'
68
+ version: 1.12.3
69
69
  description: Library to generate, parse and manipulate ISO PubID.
70
70
  email:
71
71
  - open.source@ribose.com