suma 0.1.25 → 0.1.26

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: 9fda8e972931c092b7c01d4eaafda7ada9d0f29739d584123b527bf2b5a75075
4
- data.tar.gz: c9efe1f70b118180a770f843a6858b3d73e435349a6148e857516fe603dcb688
3
+ metadata.gz: 13a0618f0faf4d08efb9d7783533cad40d31b5069b20d0107ccf6535ac5dcf7f
4
+ data.tar.gz: c5cf074c3c75091c41828fece24dbef27c07691f8dce321ac4d6ef7f71515640
5
5
  SHA512:
6
- metadata.gz: ce79c333f25940d8a0a201a3ff65d40c68d816581c9cfadecf3900684ff2ca043597203e6d5a2fa728dfcdd0bfe5415ce80923ed385273dc0df0518f3f183631
7
- data.tar.gz: aa335cf0c8669cd27d5d3b7c715c23d16278337b42db554d9971e0fd1b9a3e9d89e056756e1cc5c08d555635059f83a3688691f05763dcc8a1f267425a8f3ddb
6
+ metadata.gz: c9f2807fcfd075246d53741d231b241300410ad847795d0c2575cc4cfc205c22d36c2d1f7c7648432be41e63e3f00ae45472382d4c201230e8eefc5cda4506bc
7
+ data.tar.gz: 189245d32cd54e2fef7090a2f6ee9ab67188265b4ff5ffbb3dd71436ccf832b618f27f2005f97c8bf9ee29db43453063b9b18f4e6f6a4e983ddc5e1c99fa9b53
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-10-15 10:00:06 UTC using RuboCop version 1.81.1.
3
+ # on 2025-10-16 10:57:12 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
@@ -25,6 +25,14 @@ Gemspec/RequiredRubyVersion:
25
25
  Layout/LineLength:
26
26
  Enabled: false
27
27
 
28
+ # Offense count: 1
29
+ # This cop supports safe autocorrection (--autocorrect).
30
+ # Configuration parameters: EnforcedStyle.
31
+ # SupportedStyles: final_newline, final_blank_line
32
+ Layout/TrailingEmptyLines:
33
+ Exclude:
34
+ - 'Gemfile'
35
+
28
36
  # Offense count: 2
29
37
  # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
30
38
  Lint/DuplicateBranch:
@@ -92,10 +100,11 @@ Naming/VariableNumber:
92
100
  - 'spec/suma/cli/export_spec.rb'
93
101
  - 'spec/suma/cli/validate_ascii_spec.rb'
94
102
 
95
- # Offense count: 2
103
+ # Offense count: 3
96
104
  # Configuration parameters: MinSize.
97
105
  Performance/CollectionLiteralInLoop:
98
106
  Exclude:
107
+ - 'spec/suma/cli/compare_spec.rb'
99
108
  - 'spec/suma/cli/export_spec.rb'
100
109
  - 'spec/suma/cli_spec.rb'
101
110
 
@@ -109,7 +118,7 @@ RSpec/ContextWording:
109
118
  # Offense count: 51
110
119
  # Configuration parameters: CountAsOne.
111
120
  RSpec/ExampleLength:
112
- Max: 44
121
+ Max: 61
113
122
 
114
123
  # Offense count: 4
115
124
  # Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
@@ -124,6 +133,12 @@ RSpec/InstanceVariable:
124
133
  Exclude:
125
134
  - 'spec/suma/cli/compare_spec.rb'
126
135
 
136
+ # Offense count: 3
137
+ # This cop supports safe autocorrection (--autocorrect).
138
+ RSpec/IteratedExpectation:
139
+ Exclude:
140
+ - 'spec/suma/cli/compare_spec.rb'
141
+
127
142
  # Offense count: 1
128
143
  # Configuration parameters: EnforcedStyle.
129
144
  # SupportedStyles: have_received, receive
@@ -131,9 +146,9 @@ RSpec/MessageSpies:
131
146
  Exclude:
132
147
  - 'spec/suma/cli/compare_spec.rb'
133
148
 
134
- # Offense count: 46
149
+ # Offense count: 47
135
150
  RSpec/MultipleExpectations:
136
- Max: 12
151
+ Max: 23
137
152
 
138
153
  # Offense count: 1
139
154
  # Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata.
@@ -146,3 +161,11 @@ RSpec/SpecFilePathFormat:
146
161
  RSpec/StubbedMock:
147
162
  Exclude:
148
163
  - 'spec/suma/cli/compare_spec.rb'
164
+
165
+ # Offense count: 1
166
+ # This cop supports unsafe autocorrection (--autocorrect-all).
167
+ # Configuration parameters: AllowedReceivers.
168
+ # AllowedReceivers: Thread.current
169
+ Style/HashEachMethods:
170
+ Exclude:
171
+ - 'spec/suma/cli/compare_spec.rb'
data/README.adoc CHANGED
@@ -720,7 +720,7 @@ Parameters:
720
720
 
721
721
  Options:
722
722
 
723
- `--version=VERSION`, `-v VERSION`:: (required) Version number for this change edition
723
+ `--version=VERSION`, `-v VERSION`:: (required) Version number for this change version
724
724
  `--output=PATH`, `-o PATH`:: Output Change YAML file path (default: `{schema}.changes.yaml` in trial schema directory)
725
725
  `--mode=MODE`:: Schema comparison mode: `resource` or `module` (default: `resource`)
726
726
  `--trial-stepmod=PATH`:: Override auto-detected trial repository root
@@ -750,8 +750,8 @@ The command:
750
750
  * Auto-detects git repository roots from schema file paths
751
751
  * Uses detected roots as stepmod paths for eengine
752
752
  * Generates or updates `.changes.yaml` file in the trial schema directory
753
- * **Replaces** existing change edition if the version already exists
754
- * **Adds** new change edition if the version is different
753
+ * **Replaces** existing change version if the version already exists
754
+ * **Adds** new change version if the version is different
755
755
 
756
756
  ==== Requirements
757
757
 
@@ -806,7 +806,7 @@ The command generates EXPRESS Changes YAML files in the ISO 10303 format:
806
806
  ----
807
807
  ---
808
808
  schema: support_resource_schema
809
- editions:
809
+ versions:
810
810
  - version: '2'
811
811
  description: 'TYPE text: Underlying Type changed'
812
812
  modifications:
@@ -32,7 +32,7 @@ module Suma
32
32
  desc: "Output Change YAML file path " \
33
33
  "(default: {schema}.changes.yaml in trial schema directory)"
34
34
  option :version, type: :string, aliases: "-v", required: true,
35
- desc: "Version number for this change edition"
35
+ desc: "Version number for this change version"
36
36
  option :mode, type: :string, default: "resource",
37
37
  enum: ["resource", "module"],
38
38
  desc: "Schema comparison mode"
@@ -165,15 +165,15 @@ module Suma
165
165
 
166
166
  # Determine what action was taken
167
167
  if existing_schema
168
- existing_edition = existing_schema.editions.find do |ed|
168
+ existing_version = existing_schema.versions.find do |ed|
169
169
  ed.version == options[:version]
170
170
  end
171
171
 
172
172
  say "Change YAML file updated: #{output_path}", :green
173
- if existing_edition
173
+ if existing_version
174
174
  say " Replaced existing version #{options[:version]}", :green
175
175
  else
176
- say " Added version #{options[:version]} to change editions",
176
+ say " Added version #{options[:version]} to change versions",
177
177
  :green
178
178
  end
179
179
  else
data/lib/suma/cli.rb CHANGED
@@ -79,7 +79,7 @@ module Suma
79
79
  option :output, type: :string, aliases: "-o",
80
80
  desc: "Output Change YAML file path"
81
81
  option :version, type: :string, aliases: "-v", required: true,
82
- desc: "Version number for this change edition"
82
+ desc: "Version number for this change version"
83
83
  option :mode, type: :string, default: "resource",
84
84
  desc: "Schema comparison mode (resource/module)"
85
85
  option :trial_stepmod, type: :string,
@@ -14,7 +14,7 @@ module Suma
14
14
 
15
15
  # Convert the eengine XML to a ChangeSchema
16
16
  #
17
- # @param version [String] Version number for this change edition
17
+ # @param version [String] Version number for this change version
18
18
  # @param existing_change_schema [Expressir::Changes::SchemaChange, nil]
19
19
  # Existing schema to append to, or nil to create new
20
20
  # @return [Expressir::Changes::SchemaChange] The updated change schema
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.1.25"
4
+ VERSION = "0.1.26"
5
5
  end
data/suma.gemspec CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
33
33
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
34
34
  spec.require_paths = ["lib"]
35
35
 
36
- spec.add_dependency "expressir", "~> 2.1"
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
39
  spec.add_dependency "metanorma-cli"
metadata CHANGED
@@ -1,19 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.25
4
+ version: 0.1.26
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-10-15 00:00:00.000000000 Z
11
+ date: 2025-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: expressir
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 2.1.29
17
20
  - - "~>"
18
21
  - !ruby/object:Gem::Version
19
22
  version: '2.1'
@@ -21,6 +24,9 @@ dependencies:
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 2.1.29
24
30
  - - "~>"
25
31
  - !ruby/object:Gem::Version
26
32
  version: '2.1'