suma 0.1.19 → 0.1.20

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: 6c1d7370c2e26551a0f6c13b354b1cf7c78180bc941a194421948918f35e69bd
4
- data.tar.gz: 80aa2f22309620d3516c2aa65943c5287a9f09c40c797d24f27d34eea3821997
3
+ metadata.gz: 930231a5ca9c90a49c8e52b4a0881e2f93fd87508506872c02e693b9c0b8b25e
4
+ data.tar.gz: 13202f05c7673f950e8d4de87a7088a044db5e0b393cf768889c3c0483baf174
5
5
  SHA512:
6
- metadata.gz: 38a4ea2e865b003787c466a6c49e86b5acee535a2dd218f0f384988392b0c8b8a67f2ef2e28c068a41c1ba97f72417f8b0f11620c41122e86f0c56c78f143caf
7
- data.tar.gz: b61f64d0a8cec12a54ef82ed1ff6c1dab8b45200e155588d78bbb80d80f3468236d48e46c21af83beb911c4983afdadc91e8c35f5bbd92dcad2ad2e70d005299
6
+ metadata.gz: 63c387978764d7bf16fb2b8ea129038dbbf771a360415ddf09254ab14dcf33cdae44166fbdb60439e52026925c7755e4b631985ac0b41d9b2cc43311e3e2374c
7
+ data.tar.gz: 8632ad3a285fa3a970805c7491812f07ed9501268f6cf3ce12fcb2be22b48d30a494e47bfbb40de1f4fe3f4c0e4822f5c2e3978637605f3afac7b2eb28edb8b9
data/.gitignore CHANGED
@@ -9,7 +9,6 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
- .rubocop_todo.yml
13
12
  .rubocop-https---*-yml
14
13
  .ruby-version
15
14
  Gemfile.lock
data/.rubocop.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  inherit_from:
2
- - https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
3
2
  - .rubocop_todo.yml
3
+ - https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
4
4
 
5
5
  plugins:
6
6
  - rubocop-performance
@@ -11,4 +11,9 @@ AllCops:
11
11
  TargetRubyVersion: 3.1
12
12
  NewCops: enable
13
13
  Exclude:
14
+ - 'lib/suma/cli/reformat.rb'
15
+ - 'lib/suma/cli/generate_schemas.rb'
16
+ - 'lib/suma/cli/validate_ascii.rb'
17
+ - 'lib/suma/cli/validate_links.rb'
18
+ - 'lib/suma/cli/extract_terms.rb'
14
19
  - 'vendor/**/*'
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-07-18 02:29:17 UTC using RuboCop version 1.78.0.
3
+ # on 2025-07-18 05:24:45 UTC using RuboCop version 1.78.0.
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
@@ -20,7 +20,7 @@ Gemspec/RequiredRubyVersion:
20
20
  Exclude:
21
21
  - 'suma.gemspec'
22
22
 
23
- # Offense count: 70
23
+ # Offense count: 28
24
24
  # This cop supports safe autocorrection (--autocorrect).
25
25
  # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
26
26
  # URISchemes: http, https
@@ -28,11 +28,7 @@ Layout/LineLength:
28
28
  Exclude:
29
29
  - 'lib/suma/cli.rb'
30
30
  - 'lib/suma/cli/build.rb'
31
- - 'lib/suma/cli/extract_terms.rb'
32
31
  - 'lib/suma/cli/validate.rb'
33
- - 'lib/suma/cli/validate_ascii.rb'
34
- - 'lib/suma/cli/validate_links.rb'
35
- - 'lib/suma/glossarist_extensions.rb'
36
32
  - 'lib/suma/processor.rb'
37
33
  - 'lib/suma/schema_attachment.rb'
38
34
  - 'lib/suma/schema_collection.rb'
@@ -42,83 +38,31 @@ Layout/LineLength:
42
38
  - 'spec/suma/cli/validate_ascii_spec.rb'
43
39
  - 'suma.gemspec'
44
40
 
45
- # Offense count: 2
46
- # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
47
- Lint/DuplicateBranch:
48
- Exclude:
49
- - 'lib/suma/cli/extract_terms.rb'
50
-
51
- # Offense count: 2
41
+ # Offense count: 1
52
42
  Lint/DuplicateMethods:
53
43
  Exclude:
54
- - 'lib/suma/cli/validate_ascii.rb'
55
44
  - 'lib/suma/express_schema.rb'
56
45
 
57
- # Offense count: 25
46
+ # Offense count: 4
58
47
  # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
59
48
  Metrics/AbcSize:
60
49
  Exclude:
61
- - 'lib/suma/cli/extract_terms.rb'
62
- - 'lib/suma/cli/validate_ascii.rb'
63
- - 'lib/suma/cli/validate_links.rb'
64
- - 'lib/suma/glossarist_extensions.rb'
65
50
  - 'lib/suma/schema_attachment.rb'
66
51
  - 'lib/suma/schema_document.rb'
67
52
  - 'lib/suma/thor_ext.rb'
68
53
 
69
- # Offense count: 3
70
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
71
- # AllowedMethods: refine
72
- Metrics/BlockLength:
73
- Max: 64
74
-
75
- # Offense count: 12
54
+ # Offense count: 1
76
55
  # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
77
56
  Metrics/CyclomaticComplexity:
78
57
  Exclude:
79
- - 'lib/suma/cli/extract_terms.rb'
80
- - 'lib/suma/cli/validate_ascii.rb'
81
- - 'lib/suma/cli/validate_links.rb'
82
- - 'lib/suma/glossarist_extensions.rb'
83
58
  - 'lib/suma/thor_ext.rb'
84
59
 
85
- # Offense count: 37
86
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
87
- Metrics/MethodLength:
88
- Max: 107
89
-
90
60
  # Offense count: 4
91
- # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
92
- Metrics/ParameterLists:
93
- Max: 6
94
-
95
- # Offense count: 9
96
- # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
97
- Metrics/PerceivedComplexity:
98
- Exclude:
99
- - 'lib/suma/cli/extract_terms.rb'
100
- - 'lib/suma/cli/validate_ascii.rb'
101
- - 'lib/suma/cli/validate_links.rb'
102
- - 'lib/suma/glossarist_extensions.rb'
103
-
104
- # Offense count: 1
105
- # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros, UseSorbetSigs.
106
- # NamePrefix: is_, has_, have_, does_
107
- # ForbiddenPrefixes: is_, has_, have_, does_
108
- # AllowedMethods: is_a?
109
- # MethodDefinitionMacros: define_method, define_singleton_method
110
- Naming/PredicatePrefix:
111
- Exclude:
112
- - 'spec/**/*'
113
- - 'lib/suma/cli/extract_terms.rb'
114
-
115
- # Offense count: 5
116
61
  # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
117
62
  # SupportedStyles: snake_case, normalcase, non_integer
118
63
  # AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
119
64
  Naming/VariableNumber:
120
65
  Exclude:
121
- - 'lib/suma/cli/validate_ascii.rb'
122
66
  - 'spec/suma/cli/validate_ascii_spec.rb'
123
67
 
124
68
  # Offense count: 1
@@ -135,34 +79,3 @@ RSpec/ExampleLength:
135
79
  # Offense count: 6
136
80
  RSpec/MultipleExpectations:
137
81
  Max: 12
138
-
139
- # Offense count: 2
140
- # This cop supports safe autocorrection (--autocorrect).
141
- # Configuration parameters: AutoCorrect, EnforcedStyle, AllowComments.
142
- # SupportedStyles: empty, nil, both
143
- Style/EmptyElse:
144
- Exclude:
145
- - 'lib/suma/cli/validate_links.rb'
146
- - 'lib/suma/glossarist_extensions.rb'
147
-
148
- # Offense count: 4
149
- # This cop supports safe autocorrection (--autocorrect).
150
- # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, Mode, AllowedMethods, AllowedPatterns.
151
- # SupportedStyles: annotated, template, unannotated
152
- Style/FormatStringToken:
153
- EnforcedStyle: unannotated
154
-
155
- # Offense count: 1
156
- # This cop supports unsafe autocorrection (--autocorrect-all).
157
- # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
158
- # SupportedStyles: predicate, comparison
159
- Style/NumericPredicate:
160
- Exclude:
161
- - 'spec/**/*'
162
- - 'lib/suma/cli/extract_terms.rb'
163
-
164
- # Offense count: 1
165
- # Configuration parameters: Max.
166
- Style/SafeNavigationChainLength:
167
- Exclude:
168
- - 'lib/suma/cli/extract_terms.rb'
@@ -451,7 +451,7 @@ module Suma
451
451
  content.match?(/^\+\s*$/) ||
452
452
  content.match?(/^--\s*$/) ||
453
453
  content.match?(/^\s{2,}/) || # Indented content (continuation)
454
- content.start_with?("which", "that") # Logical continuation
454
+ content.start_with?("which", "where", "that") # Logical continuation
455
455
  end
456
456
 
457
457
  def extract_complete_list(paragraphs, start_index)
@@ -549,7 +549,7 @@ module Suma
549
549
  end
550
550
 
551
551
  # If next_paragraph is a continuation of a paragraph
552
- if next_paragraph&.start_with?("which", "that")
552
+ if next_paragraph&.start_with?("which", "where", "that")
553
553
  return "#{full_paragraph}\n\n#{next_paragraph}"
554
554
  end
555
555
 
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.19"
4
+ VERSION = "0.1.20"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.