metanorma-generic 1.11.1 → 1.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: 68780e456b59524a58f5943a2f611eb77eb8609d71d67d0fd03493845bd77a26
4
- data.tar.gz: d80def3233b10b107eae9159b981755486555782962d5ab48ef8dfbd5f476e53
3
+ metadata.gz: 97de85e9d88318cf3718865280ca5e855bce23377442c9316d0dc9923227e63e
4
+ data.tar.gz: a46b6d97a7be1e38c57092d8789451d5a7851f2f0e617ab88dfe3ec16e6615ac
5
5
  SHA512:
6
- metadata.gz: 2e583a0c09780c638708932e53c6d625f291650ad66cbc0c15aad3eb8fce7f1bc728e6503b7b2c7c531558da48fd305c4575541255f501cfd68a391ab775fd17
7
- data.tar.gz: 0c937c51fc767624d6c05d2d74e409a8128b4c45d57da929bed48cf301be47b5897ecff6632219bb1532b785cce3cf707686568f42e9b6c2651ea65db27cd6a5
6
+ metadata.gz: 5e80f83a0195978fe797dede990db71f346540d7e11b5ee4b5f54bda2d2790127aaa7e665b77d906048334d9195bd4cb7b698259c64b331c0af0d0f55f5c7f74
7
+ data.tar.gz: 4cd866cb0d250759e77d89ef7b91a3ceb380e79f6e04e9ef74d0d0b76c94cfb15f09ad206b2a184540ade1fee7cc10163898389eb17caddc5f120321329f4316
@@ -1796,6 +1796,20 @@
1796
1796
  <data type="ID"/>
1797
1797
  </attribute>
1798
1798
  </optional>
1799
+ <optional>
1800
+ <attribute name="language"/>
1801
+ </optional>
1802
+ <optional>
1803
+ <attribute name="script"/>
1804
+ </optional>
1805
+ <optional>
1806
+ <attribute name="tag"/>
1807
+ </optional>
1808
+ <optional>
1809
+ <attribute name="multilingual-rendering">
1810
+ <ref name="MultilingualRenderingType"/>
1811
+ </attribute>
1812
+ </optional>
1799
1813
  <oneOrMore>
1800
1814
  <ref name="preferred"/>
1801
1815
  </oneOrMore>
@@ -16,7 +16,6 @@ $('#toggle').on('click', function(){
16
16
  else {
17
17
  $('nav').show();
18
18
  $('nav').animate({ 'left': '0px' }, 'slow');
19
- $('.container').animate({ 'padding-left': '360px' }, 'slow');
20
19
  }
21
20
  });
22
21
  </script>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Generic
3
- VERSION = "1.11.1".freeze
3
+ VERSION = "1.11.2".freeze
4
4
  end
5
5
  end
@@ -4,7 +4,7 @@ require "forwardable"
4
4
  require "yaml"
5
5
 
6
6
  module Metanorma
7
- module Generic
7
+ module Generic # rubocop:disable Style/MutableConstant
8
8
  ORGANIZATION_NAME_SHORT = "Acme"
9
9
  ORGANIZATION_NAME_LONG = "Acme Corp."
10
10
  DOCUMENT_NAMESPACE = "https://www.metanorma.org/ns/generic"
@@ -63,23 +63,10 @@ module Metanorma
63
63
  ].freeze
64
64
 
65
65
  def filepath_attrs
66
- %i[
67
- i18nyaml
68
- boilerplate
69
- logo_path
70
- logo_paths
71
- header
72
- htmlcoverpage
73
- htmlintropage
74
- htmlstylesheet
75
- scripts
76
- scripts_pdf
77
- standardstylesheet
78
- validate_rng_file
79
- wordcoverpage
80
- wordintropage
81
- wordstylesheet
82
- ]
66
+ %i[i18nyaml boilerplate logo_path logo_paths header
67
+ htmlcoverpage htmlintropage htmlstylesheet scripts scripts_pdf
68
+ standardstylesheet validate_rng_file wordcoverpage wordintropage
69
+ wordstylesheet]
83
70
  end
84
71
 
85
72
  attr_accessor(*CONFIG_ATTRS)
@@ -88,7 +75,7 @@ module Metanorma
88
75
  attr_accessor :_file
89
76
  end
90
77
 
91
- def self.inherited(klass)
78
+ def self.inherited(klass) # rubocop:disable Lint/MissingSuper
92
79
  klass._file = caller_locations(1..1).first.absolute_path
93
80
  end
94
81
 
@@ -115,7 +102,8 @@ module Metanorma
115
102
 
116
103
  def set_default_values_from_yaml_file(config_file)
117
104
  root_path = File.dirname(self.class::_file || __FILE__)
118
- default_config_options = YAML.load(File.read(config_file))
105
+ default_config_options =
106
+ YAML.safe_load(File.read(config_file, encoding: "UTF-8"))
119
107
  if default_config_options["doctypes"].is_a? Array
120
108
  default_config_options["doctypes"] =
121
109
  default_config_options["doctypes"].each_with_object({}) do |k, m|
@@ -133,7 +121,7 @@ module Metanorma
133
121
  end
134
122
 
135
123
  def blank?(val)
136
- val.nil? || val.respond_to?(:empty?) && val.empty?
124
+ val.nil? || (val.respond_to?(:empty?) && val.empty?)
137
125
  end
138
126
 
139
127
  def absolute_path(value, root_path)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-generic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.1
4
+ version: 1.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: 2021-11-29 00:00:00.000000000 Z
11
+ date: 2021-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
267
  - !ruby/object:Gem::Version
268
268
  version: '0'
269
269
  requirements: []
270
- rubygems_version: 3.2.22
270
+ rubygems_version: 3.2.32
271
271
  signing_key:
272
272
  specification_version: 4
273
273
  summary: Metanorma template gem for customisation.