relaton-bib 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Gemfile.lock +1 -1
- data/lib/relaton_bib/bibliographic_item.rb +1 -1
- data/lib/relaton_bib/contributor.rb +3 -2
- data/lib/relaton_bib/document_status.rb +1 -1
- data/lib/relaton_bib/formatted_ref.rb +0 -1
- data/lib/relaton_bib/organization.rb +2 -2
- data/lib/relaton_bib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 802a002af0e620a7852255984b09e22dafa0184a
|
|
4
|
+
data.tar.gz: 2bc4f0a8ef11ee9dd9df71675d5a8bf17a899e90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7fc9b5a7d2757462b5c8290b915871991bf472c3442f09c4f594ad9cfa286916df19a49ebbc1137f523e63a647894717e6f0448bd72873bf28653b9cd260561a
|
|
7
|
+
data.tar.gz: 548be19d90d0ffee19c931db323bc84c976a07bec89020bc2ea2822b9d4284bacf35c5939089ab1772f4cd098f3d624972de895b084728a5570d87ad736b2e59
|
data/Gemfile.lock
CHANGED
|
@@ -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
|
-
|
|
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
|
|
32
|
+
builder.iteration iteration unless iteration.to_s.empty?
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
end
|
|
@@ -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]
|
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: 0.2.
|
|
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-
|
|
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.
|
|
204
|
+
rubygems_version: 2.6.12
|
|
205
205
|
signing_key:
|
|
206
206
|
specification_version: 4
|
|
207
207
|
summary: 'RelatonBib: Ruby XMLDOC impementation.'
|