metanorma-un 0.11.1 → 0.11.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: 4bb7f5e0507e6121b00bb9c0a77de939bef65ffd3d0430abefb46a9755989f1e
4
- data.tar.gz: 1fbf3cc1f9e13c7b349f6dc5964f005247f17a6df0cf016e6af1d35c29929df2
3
+ metadata.gz: 1886fa5b4a8b28ee3d773906df0606fc3140d3cd46bc88dda86e98350cc3989f
4
+ data.tar.gz: 90fc685cbe2537386029cffa32748eeee91bd92af6a82d6ef840b914e98a8633
5
5
  SHA512:
6
- metadata.gz: 466ee743e3a9cfac771aa8f25419b9032e12f0de5a7141da4ed5f138b769ec1840f6fb0110c8dc5b80b3acbcc9ad489b4f00a4d363b4d4742e5b71f691511b43
7
- data.tar.gz: 5a1175c0a0049a6e3c24bd3044297bd11506f9ebe3fb60b06e8a76e36449081cde0ea33219a30ec5a1a6373b4080e99db3b2492e137e63f4716ec244561626e7
6
+ metadata.gz: f7fb941bd310fb2bda0c359d16137cda769db64f54723912ac78abffc5810cdf489eb9b3285516b51a0af8682df3522a098190ed7ba2b75955406e24e5b0adc5
7
+ data.tar.gz: 2e5d861bd1a4c8741c9fae0286d578e617423817a1eca4829b536db00411d79953a84a04efdcd5e2a3bd21204cafd6feed08ca2ab9bb52698e7ced002bf812d4
@@ -34,8 +34,7 @@ module IsoDoc
34
34
  end
35
35
 
36
36
  def is_plenary?(docxml)
37
- doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
38
- return true if %w(plenary agenda budgetary).include?(doctype)
37
+ return true if %w(plenary agenda budgetary).include?(@doctype)
39
38
  return true if docxml&.at(ns("//bibdata/ext/session/*"))
40
39
 
41
40
  false
@@ -14,11 +14,11 @@ module IsoDoc
14
14
  end
15
15
 
16
16
  def pdf_stylesheet(docxml)
17
- case doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text
17
+ case @doctype
18
18
  when "plenary", "agenda", "budgetary"
19
19
  "un.plenary.xsl"
20
20
  else
21
- docxml&.at(ns("//bibdata/ext/session/*")) ?
21
+ docxml.at(ns("//bibdata/ext/session/*")) ?
22
22
  "un.plenary-attachment.xsl" : "un.recommendation.xsl"
23
23
  end
24
24
  end
@@ -192,8 +192,7 @@ module Metanorma
192
192
  end
193
193
 
194
194
  def para_to_clause(xmldoc)
195
- doctype = xmldoc&.at("//bibdata/ext/doctype")&.text
196
- %w(plenary agenda budgetary).include?(doctype) or
195
+ %w(plenary agenda budgetary).include?(@doctype) or
197
196
  para_to_clause1(xmldoc)
198
197
  end
199
198
 
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module UN
3
- VERSION = "0.11.1".freeze
3
+ VERSION = "0.11.2".freeze
4
4
  end
5
5
  end
data/metanorma-un.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency "roman-numerals"
32
32
  spec.add_dependency "twitter_cldr"
33
33
 
34
- spec.add_dependency "metanorma-standoc", "~> 2.5.4"
34
+ spec.add_dependency "metanorma-standoc", "~> 2.6.0"
35
35
 
36
36
  spec.add_development_dependency "debug"
37
37
  spec.add_development_dependency "equivalent-xml", "~> 0.6"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-un
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.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: 2023-08-28 00:00:00.000000000 Z
11
+ date: 2023-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.5.4
61
+ version: 2.6.0
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: 2.5.4
68
+ version: 2.6.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: debug
71
71
  requirement: !ruby/object:Gem::Requirement