relaton-bib 0.2.1 → 0.2.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
- SHA256:
3
- metadata.gz: e6cca35266264d2f94d5f4e74fd158e07c97da035e5431b7ac59a011bfbd2abd
4
- data.tar.gz: 6c445e5b5986e599e6fd41f68dbc259846c81a10314b531c9a4110b24b5af945
2
+ SHA1:
3
+ metadata.gz: 802a002af0e620a7852255984b09e22dafa0184a
4
+ data.tar.gz: 2bc4f0a8ef11ee9dd9df71675d5a8bf17a899e90
5
5
  SHA512:
6
- metadata.gz: edd3552fd75fbe76a3bf3092d200792b35651d6fdb4e930b01e31dc7b588421fc71ab5e4bce8f56bc50a79d1ac0503954583408ce3aa3ad7b5154ef269699ab1
7
- data.tar.gz: d984ae35c6c8a66a23a5c02c1553d98c817e6d40ebca211c4f3b3a6b7c4c44cbf37cf913aeb7a9f9ba484d1e2e6c38d0ccaeb2998af616e9662a74f7e2e340f2
6
+ metadata.gz: 7fc9b5a7d2757462b5c8290b915871991bf472c3442f09c4f594ad9cfa286916df19a49ebbc1137f523e63a647894717e6f0448bd72873bf28653b9cd260561a
7
+ data.tar.gz: 548be19d90d0ffee19c931db323bc84c976a07bec89020bc2ea2822b9d4284bacf35c5939089ab1772f4cd098f3d624972de895b084728a5570d87ad736b2e59
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- relaton-bib (0.2.1)
4
+ relaton-bib (0.2.2)
5
5
  addressable
6
6
  nokogiri (~> 1.8.4)
7
7
 
@@ -168,7 +168,7 @@ module RelatonBib
168
168
  # @option contributors [String] :abbreviation
169
169
  # @option contributors [Array<Array<String,Array<String>>>] :roles
170
170
  #
171
- # @param abstract [Array<Hash>]
171
+ # @param abstract [Array<Hash, RelatonBib::FormattedString>]
172
172
  # @option abstract [String] :content
173
173
  # @option abstract [String] :language
174
174
  # @option abstract [String] :script
@@ -77,9 +77,10 @@ module RelatonBib
77
77
  attr_reader :organization
78
78
 
79
79
  # @param organization [RelatonBib::Organization]
80
- def initialize(organization)
80
+ # @param description [Array<RelatonBib::FormattedString>]
81
+ def initialize(organization, description = [])
81
82
  @organization = organization
82
- @description = []
83
+ @description = description
83
84
  end
84
85
 
85
86
  # @params builder [Nokogiri::XML::Builder]
@@ -29,7 +29,7 @@ module RelatonBib
29
29
  # FormattedString.instance_method(:to_xml).bind(status).call builder
30
30
  builder.stage stage
31
31
  builder.substage substage if substage
32
- builder.iteration iteration if iteration
32
+ builder.iteration iteration unless iteration.to_s.empty?
33
33
  end
34
34
  end
35
35
  end
@@ -2,7 +2,6 @@ require "relaton_bib/formatted_string"
2
2
 
3
3
  module RelatonBib
4
4
  class FormattedRef < FormattedString
5
-
6
5
  # @param [Nokogiri::XML::Builder]
7
6
  def to_xml(builder)
8
7
  builder.formattedref { super }
@@ -38,7 +38,7 @@ module RelatonBib
38
38
 
39
39
  # Organization.
40
40
  class Organization < Contributor
41
- # @return [RelatonBib::LocalizedString]
41
+ # @return [Array<RelatonBib::LocalizedString>]
42
42
  attr_reader :name
43
43
 
44
44
  # @return [RelatonBib::LocalizedString]
@@ -54,7 +54,7 @@ module RelatonBib
54
54
  name.is_a?(Hash) ? LocalizedString.new(name[:content], name[:language], name[:script]) : LocalizedString.new(name)
55
55
  end
56
56
 
57
- # @param name [String, Array<String>]
57
+ # @param name [String, Hash, Array<String, Hash>]
58
58
  # @param abbreviation [RelatoBib::LocalizedStrig, String]
59
59
  # @param subdivision [RelatoBib::LocalizedStrig, String]
60
60
  # @param url [String]
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "0.2.1".freeze
2
+ VERSION = "0.2.2".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: 0.2.1
4
+ version: 0.2.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: 2019-06-15 00:00:00.000000000 Z
11
+ date: 2019-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
201
  version: '0'
202
202
  requirements: []
203
203
  rubyforge_project:
204
- rubygems_version: 2.7.6
204
+ rubygems_version: 2.6.12
205
205
  signing_key:
206
206
  specification_version: 4
207
207
  summary: 'RelatonBib: Ruby XMLDOC impementation.'