metanorma-plugin-datastruct 0.3.7 → 0.3.8
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb16d70bcdf9de2b0f0102d7b2595b68cfd6685f9d2acc2b5a5e5ee03978dce4
|
4
|
+
data.tar.gz: 36daea0b7f715dffee09247a2f8fa72bdaaef978dd1819dee2eaf4cccb12c57c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57e4a1b9a54cfd46031df6d9106bc0f4fdcde8579f750a8c0a8ff48de8c947078640d8a4c126bb15a9d68347c6f545e71ab9595947539d9b4058c0d694d2c9a9
|
7
|
+
data.tar.gz: 7057a4777722a52932a9e2dae5a223ceb9d2e9a0e6041def91c515c99fbf4da2bfd42da7c35101d702817cd554cbf01096f6dc710be751758a2a88b8b6cc103c
|
@@ -50,6 +50,11 @@ module Metanorma
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def load_content_from_file(resolved_file_path)
|
53
|
+
unless File.exist?(resolved_file_path)
|
54
|
+
::Metanorma::Util.log(
|
55
|
+
"Failed to load content from file: #{resolved_file_path}", :error)
|
56
|
+
end
|
57
|
+
|
53
58
|
if json_file?(resolved_file_path)
|
54
59
|
json_content_from_file(resolved_file_path)
|
55
60
|
else
|
@@ -7,7 +7,7 @@ module Metanorma
|
|
7
7
|
module CustomFilters
|
8
8
|
include ::Metanorma::Plugin::Datastruct::Content
|
9
9
|
|
10
|
-
def loadfile(path, parent_folder)
|
10
|
+
def loadfile(path, parent_folder = ".")
|
11
11
|
resolved_file_path = File.expand_path(path, parent_folder)
|
12
12
|
load_content_from_file(resolved_file_path)
|
13
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-plugin-datastruct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|