metanorma-ogc 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 +4 -4
- data/Gemfile +8 -3
- data/lib/isodoc/ogc/biblio.rb +17 -16
- data/lib/metanorma/ogc/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: c8a2fed09484af3a8339b19d448365f5d84231c07d38d1660938eb0469ea71b0
|
|
4
|
+
data.tar.gz: cfb62366aaf710f5fc4fbaa365cba16258781a62897e9553c43b8c102e09a89c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e02bb3fca8cb416f59fa4974028bca87535d978b1a7891435e60a406221da1543be4f561f630f22d640fe34f4a006562ad367452ae90d4fda0f0821a9ed1da99
|
|
7
|
+
data.tar.gz: 9d534407f60128f83716910a909cc25a3069b95b77227de803aa0fd718d776576f53d944a0a21238a7ea14795c0a30ed7edb717b90605722537c7471e260fa26
|
data/Gemfile
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Encoding.default_external = Encoding::UTF_8
|
|
2
|
+
Encoding.default_internal = Encoding::UTF_8
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
source "https://rubygems.org"
|
|
5
|
+
git_source(:github) { |repo| "https://github.com/#{repo}" }
|
|
5
6
|
|
|
6
7
|
gemspec
|
|
8
|
+
|
|
9
|
+
if File.exist? 'Gemfile.devel'
|
|
10
|
+
eval File.read('Gemfile.devel'), nil, 'Gemfile.devel' # rubocop:disable Security/Eval
|
|
11
|
+
end
|
data/lib/isodoc/ogc/biblio.rb
CHANGED
|
@@ -11,8 +11,9 @@ module IsoDoc
|
|
|
11
11
|
def nonstd_bibitem(list, b, ordinal, bibliography)
|
|
12
12
|
list.p **attr_code(iso_bibitem_entry_attrs(b, bibliography)) do |r|
|
|
13
13
|
id = bibitem_ref_code(b)
|
|
14
|
+
identifier = render_identifier(id)
|
|
14
15
|
if bibliography
|
|
15
|
-
ref_entry_code(r, ordinal, id)
|
|
16
|
+
ref_entry_code(r, ordinal, identifier, id)
|
|
16
17
|
end
|
|
17
18
|
reference_format(b, r)
|
|
18
19
|
end
|
|
@@ -86,21 +87,21 @@ module IsoDoc
|
|
|
86
87
|
if ftitle = b.at(ns("./formattedref"))
|
|
87
88
|
ftitle&.children&.each { |n| parse(n, out) }
|
|
88
89
|
else
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
90
|
+
pub, pub_abbrev = extract_publisher(b)
|
|
91
|
+
c = extract_city(b)
|
|
92
|
+
y = extract_year(b)
|
|
93
|
+
out << "#{pub_abbrev}: " if pub_abbrev
|
|
94
|
+
out << render_identifier(bibitem_ref_code(b))
|
|
95
|
+
out << ", "
|
|
96
|
+
out.i do |i|
|
|
97
|
+
iso_title(b)&.children&.each { |n| parse(n, i) }
|
|
98
|
+
end
|
|
99
|
+
out << ". "
|
|
100
|
+
out << pub if pub
|
|
101
|
+
out << ", " if pub && c
|
|
102
|
+
c&.children&.each { |n| parse(n, out) }
|
|
103
|
+
out << " " if (pub || c) && y
|
|
104
|
+
out << "(#{y})." if y
|
|
104
105
|
end
|
|
105
106
|
end
|
|
106
107
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-ogc
|
|
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-09-
|
|
11
|
+
date: 2019-09-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|