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: ea219e7fd4daff9f73f0c42ec77c18e72b4b432fbc8b211d51fddac827adcc22
4
- data.tar.gz: a8b9113037ab104b726bfbcf0cd0fc07492cdd343f0c348aadf514ca8b6591e3
3
+ metadata.gz: cb16d70bcdf9de2b0f0102d7b2595b68cfd6685f9d2acc2b5a5e5ee03978dce4
4
+ data.tar.gz: 36daea0b7f715dffee09247a2f8fa72bdaaef978dd1819dee2eaf4cccb12c57c
5
5
  SHA512:
6
- metadata.gz: 2eb61b32eab083097ea5bac2ad0ce0d193b5266b71619beeb5a356febf199efe79fe6080714025a2ee90e892e2bee2b9e1c86838692efe04c703d29fddda9630
7
- data.tar.gz: ab5f9e073dea75c14b5923b678f5cff8453affaa6f2e6928dabc327b9a31ec835c4e0d624a8eb47feb36f9d168d875dc2a20a3f6e6555a6a557c6c02efd4ca4b
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
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Datastruct
4
- VERSION = "0.3.7".freeze
4
+ VERSION = "0.3.8".freeze
5
5
  end
6
6
  end
7
7
  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.7
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-08 00:00:00.000000000 Z
11
+ date: 2025-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor