metanorma-ogc 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
2
  SHA256:
3
- metadata.gz: e0bd89cb314d2b49e831583031e4c25ca7223e8e81a7d6da5f5d9bead7271c86
4
- data.tar.gz: 65b7b7d1e0f029293e903a62d81a4c7d6f0bbc4ea11949d61bf3750e731da4d4
3
+ metadata.gz: c8a2fed09484af3a8339b19d448365f5d84231c07d38d1660938eb0469ea71b0
4
+ data.tar.gz: cfb62366aaf710f5fc4fbaa365cba16258781a62897e9553c43b8c102e09a89c
5
5
  SHA512:
6
- metadata.gz: f8dbe94d3010513ba7fbebf3254a99886fe234f207f6435d8dfa5bb265bf0b83c1bc06bdd6e511de9553481c2e89ef45c465277e142fc844eece9f895a39fa60
7
- data.tar.gz: 5cc85f8a30dbbec1bb209d1f1ddfc83342597d4c510f2ce2cf4db765b65ecc55f932af3ded8b7892370419c70c33d5eaad916a82cc3c64fe92cf109452882cc2
6
+ metadata.gz: e02bb3fca8cb416f59fa4974028bca87535d978b1a7891435e60a406221da1543be4f561f630f22d640fe34f4a006562ad367452ae90d4fda0f0821a9ed1da99
7
+ data.tar.gz: 9d534407f60128f83716910a909cc25a3069b95b77227de803aa0fd718d776576f53d944a0a21238a7ea14795c0a30ed7edb717b90605722537c7471e260fa26
data/Gemfile CHANGED
@@ -1,6 +1,11 @@
1
- source "https://rubygems.org"
2
- git_source(:github) {|repo| "https://github.com/#{repo}" }
1
+ Encoding.default_external = Encoding::UTF_8
2
+ Encoding.default_internal = Encoding::UTF_8
3
3
 
4
- #gem "metanorma-standoc", github: "metanorma/metanorma-standoc"
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
@@ -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
- pub, pub_abbrev = extract_publisher(b)
90
- c = extract_city(b)
91
- y = extract_year(b)
92
- out << "#{pub_abbrev}: " if pub_abbrev
93
- out << bibitem_ref_code(b)
94
- out << ", "
95
- out.i do |i|
96
- iso_title(b)&.children&.each { |n| parse(n, i) }
97
- end
98
- out << ". "
99
- out << pub if pub
100
- out << ", " if pub && c
101
- c&.children&.each { |n| parse(n, out) }
102
- out << " " if (pub || c) && y
103
- out << "(#{y})." if y
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
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  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.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-09-02 00:00:00.000000000 Z
11
+ date: 2019-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor