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 +4 -4
- data/.rubocop_todo.yml +9 -4
- data/Gemfile +1 -0
- data/lib/suma/collection_manifest.rb +3 -3
- data/lib/suma/express_schema.rb +2 -1
- data/lib/suma/version.rb +1 -1
- data/suma.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e48ff476d65e79fed1e67ed14aced4a49332640c2cd5765545237eae6b59d57
|
|
4
|
+
data.tar.gz: 89ce2271fd741533638b798cdeca99c2b4dbc30ba827c2f8c3bf342ab71b3aa5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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-
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
@@ -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
|
|
data/lib/suma/express_schema.rb
CHANGED
|
@@ -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
|
-
|
|
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
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.
|
|
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:
|
|
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: '
|
|
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: '
|
|
74
|
+
version: '2.3'
|
|
75
75
|
- !ruby/object:Gem::Dependency
|
|
76
76
|
name: plurimath
|
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|