isodoc-i18n 1.3.1 → 1.3.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/lib/isodoc/i18n/version.rb +1 -1
- data/lib/isodoc/i18n.rb +4 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a242d0bc7609246ea502ffec35e515457e739c478b25478a01c7ff641dc4523
|
4
|
+
data.tar.gz: 0f89c271766d244f037a0b6c6f40431888c2b6140814ac2b6e4d2906e142b1d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb3f3f3a28b1b8fddd35ff74290ccf62f905ef54d51d62efd4fd8000d2d38a389eb4c78ec02aefd83ab0d1d98aaec462a0138c51257f8548c07f4a4726854c38
|
7
|
+
data.tar.gz: f6dcb2d4c05c630527d02888bf614a0e09396166e2f27437dedc0cc0a619149c6606fe2a8a78ce3c98948d4279ef3bfa224d9c1b18fbb1d38e74d92d280b74db
|
data/lib/isodoc/i18n/version.rb
CHANGED
data/lib/isodoc/i18n.rb
CHANGED
@@ -21,11 +21,12 @@ module IsoDoc
|
|
21
21
|
@c = HTMLEntities.new
|
22
22
|
init_labels(i18nyaml, i18nhash)
|
23
23
|
liquid_init
|
24
|
+
self
|
24
25
|
end
|
25
26
|
|
26
27
|
def liquid_init
|
27
28
|
::IsoDoc::I18n::Liquid.set(self)
|
28
|
-
::Liquid::
|
29
|
+
::Liquid::Environment.default.register_filter(::IsoDoc::I18n::Liquid)
|
29
30
|
end
|
30
31
|
|
31
32
|
def calendar_data
|
@@ -39,6 +40,8 @@ module IsoDoc
|
|
39
40
|
@labels["language"] = @lang
|
40
41
|
@labels["script"] = @script
|
41
42
|
@labels.each_key do |k|
|
43
|
+
methods.include?(k.downcase.to_sym) ||
|
44
|
+
self.class.methods.include?(k.downcase.to_sym) and next
|
42
45
|
self.class.send(:define_method, k.downcase) { get[k] }
|
43
46
|
end
|
44
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isodoc-i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -262,7 +262,7 @@ homepage: https://github.com/metanorma/isodoc-i18n
|
|
262
262
|
licenses:
|
263
263
|
- BSD-2-Clause
|
264
264
|
metadata: {}
|
265
|
-
post_install_message:
|
265
|
+
post_install_message:
|
266
266
|
rdoc_options: []
|
267
267
|
require_paths:
|
268
268
|
- lib
|
@@ -278,7 +278,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
278
278
|
version: '0'
|
279
279
|
requirements: []
|
280
280
|
rubygems_version: 3.3.27
|
281
|
-
signing_key:
|
281
|
+
signing_key:
|
282
282
|
specification_version: 4
|
283
283
|
summary: isodoc-i18n
|
284
284
|
test_files: []
|