suma 0.2.2 → 0.2.4

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: e902246136c35ed32e6e71e792164b0582ee3612ba0e9bdf185c84f1000a5f40
4
- data.tar.gz: b2793475b6863c62f791aee2b6fa2851e6e6e8b04155271bacf8eaa92f879749
3
+ metadata.gz: 0e48ff476d65e79fed1e67ed14aced4a49332640c2cd5765545237eae6b59d57
4
+ data.tar.gz: 89ce2271fd741533638b798cdeca99c2b4dbc30ba827c2f8c3bf342ab71b3aa5
5
5
  SHA512:
6
- metadata.gz: e0854a1e32d238a03ee0887b1de2c11c525d5be4e621cee77b94213b7fd10d1de9d46b5ec5eb1d6858ca822bebd04d3c26dc2fde3c97019d057bf83d70d27607
7
- data.tar.gz: abef015ecde9b9141ea5eb67d16cdfdbbb3c0d4560daecea23e9ebc9ecbb50f45bf1377c2c8d674aa15bb21fce3fe00c7628bb413325d11488174572734b80c8
6
+ metadata.gz: 8f139509f972a2700345efe36f8d76709f1338e27447771ec3de966bd7a21c5c6a5c0c3e765162efeba53a102e29517b038d446c7b98c058fd9a7f793b7cdbef
7
+ data.tar.gz: 65256ed59b74ff76fd7710ce308049c3972e0bdc4a4698de02e090a85a66ddfaf5e4c5e90864ecef9e134de922c0b96534d05488759cd4cce8ec08bfe54deb4e
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2025-12-11 03:58:36 UTC using RuboCop version 1.81.1.
3
+ # on 2025-12-18 05:29:37 UTC using RuboCop version 1.81.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -18,7 +18,7 @@ Gemspec/RequiredRubyVersion:
18
18
  Exclude:
19
19
  - 'suma.gemspec'
20
20
 
21
- # Offense count: 81
21
+ # Offense count: 82
22
22
  # This cop supports safe autocorrection (--autocorrect).
23
23
  # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
24
24
  # URISchemes: http, https
@@ -106,7 +106,7 @@ RSpec/ContextWording:
106
106
  Exclude:
107
107
  - 'spec/suma/cli/export_spec.rb'
108
108
 
109
- # Offense count: 48
109
+ # Offense count: 64
110
110
  # Configuration parameters: CountAsOne.
111
111
  RSpec/ExampleLength:
112
112
  Max: 61
@@ -137,10 +137,15 @@ RSpec/MessageSpies:
137
137
  Exclude:
138
138
  - 'spec/suma/cli/compare_spec.rb'
139
139
 
140
- # Offense count: 43
140
+ # Offense count: 47
141
141
  RSpec/MultipleExpectations:
142
142
  Max: 23
143
143
 
144
+ # Offense count: 3
145
+ # Configuration parameters: AllowedGroups.
146
+ RSpec/NestedGroups:
147
+ Max: 4
148
+
144
149
  # Offense count: 1
145
150
  # Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata.
146
151
  RSpec/SpecFilePathFormat:
data/Gemfile CHANGED
@@ -8,6 +8,7 @@ gemspec
8
8
  gem "canon"
9
9
  gem "metanorma-standoc"
10
10
  gem "nokogiri"
11
+ gem "openssl", "~> 3.0"
11
12
  gem "rake"
12
13
  gem "rspec"
13
14
  gem "rubocop"
@@ -88,7 +88,7 @@ module Suma
88
88
  # have it showing up in output.
89
89
  self.index = false
90
90
 
91
- [self, added_collection_manifest]
91
+ [self, added_collection_manifest(schema_output_path)]
92
92
  end
93
93
 
94
94
  def remove_schemas_only_sources
@@ -111,7 +111,7 @@ module Suma
111
111
  end
112
112
  end
113
113
 
114
- def added_collection_manifest
114
+ def added_collection_manifest(schema_output_path)
115
115
  doc = CollectionConfig.from_file(file)
116
116
  doc_id = doc.bibdata.id
117
117
 
@@ -126,7 +126,7 @@ module Suma
126
126
  CollectionManifest.new(
127
127
  title: doc_id,
128
128
  type: "document",
129
- entry: entries,
129
+ entry: entries(schema_output_path),
130
130
  ),
131
131
  ]
132
132
 
@@ -55,7 +55,8 @@ module Suma
55
55
  else
56
56
  # For manifest schemas, preserve directory structure
57
57
  # Note: @output_path already contains the category (resources/modules)
58
- File.join(@output_path, @id, File.basename(@path))
58
+ parent_dir = File.basename(File.dirname(@path))
59
+ File.join(@output_path, parent_dir, File.basename(@path))
59
60
  end
60
61
  end
61
62
 
data/lib/suma/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Suma
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.4"
5
5
  end
data/suma.gemspec CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
36
36
  spec.add_dependency "expressir", ">= 2.1.29", "~> 2.1"
37
37
  spec.add_dependency "glossarist", "~> 2.3.7"
38
38
  spec.add_dependency "lutaml-model", "~> 0.7"
39
- spec.add_dependency "metanorma"
39
+ spec.add_dependency "metanorma", "~> 2.3"
40
40
  spec.add_dependency "plurimath"
41
41
  spec.add_dependency "ruby-progressbar"
42
42
  spec.add_dependency "rubyzip", "~> 2.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
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-12-11 00:00:00.000000000 Z
11
+ date: 2026-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: expressir
@@ -62,16 +62,16 @@ dependencies:
62
62
  name: metanorma
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - ">="
65
+ - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0'
67
+ version: '2.3'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ">="
72
+ - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '0'
74
+ version: '2.3'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: plurimath
77
77
  requirement: !ruby/object:Gem::Requirement