gitlab-security_report_schemas 0.1.3.min15.0.0.max15.2.3 → 0.2.0.min15.0.0.max15.2.3

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: d8849b40684ace0f157c2dee225eb0a68719ceb7455f84b4761d0ae1575a34d7
4
- data.tar.gz: e063e0eb1e6dd54abc61755b801840cf19c2a44ee4e692464f44a853b93fbc46
3
+ metadata.gz: 271150a2d4f135e63b03d81a5427c5959ee78d973f3e5bc95179a80139646117
4
+ data.tar.gz: 60d87353b0204205cb4eebe91abd27406270a4db30b8a851ead6f57eb32abd66
5
5
  SHA512:
6
- metadata.gz: 03f6dff6100ca7afbc5ee80148c09cb2b6930950113168c15d57fa78fbb648a5507cc3244f63b097f3628df6872ce6d9a4ab81a64bfa9eb74368058a6ec95783
7
- data.tar.gz: 04e25da6c15f7867744f8cba8822bed49543e97710c8f972d34c405a908466b43d8e339559fc64fe655ffc2621b46fa0d198a684cf16178077566f338a4dbcf9
6
+ metadata.gz: 20cd1ad0acd29db2fbb7c756cbeb859b03a73c8d20bb739d7a5bdaf7fe0e092e54c30df438de829cf0676fc38aede23e674e4202f3f22d8f06992720e4790ee3
7
+ data.tar.gz: c2fca219f2532b949d571a9fc02e462c65a0a6564975ce82874bfac060e207031e86812540e918e09c787faf6ff603a0454d0d7f0709b36f0f3572bdb9503d38
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.7
2
+ TargetRubyVersion: 3.2
3
3
 
4
4
  Style/Alias:
5
5
  EnforcedStyle: prefer_alias_method
data/Gemfile CHANGED
@@ -6,6 +6,7 @@ gemspec
6
6
 
7
7
  gem "git", "~> 1.3"
8
8
  gem "pry"
9
+ gem "racc", "~> 1.8"
9
10
  gem "rake", "~> 13.0"
10
11
  gem "rspec", "~> 3.0"
11
12
  gem "rubocop", "~> 1.21"
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-security_report_schemas (0.1.3.min15.0.0.max15.2.3)
5
- activesupport (>= 6, < 8)
6
- json_schemer (~> 2.3.0)
4
+ gitlab-security_report_schemas (0.2.0.min15.0.0.max15.2.3)
5
+ activesupport (>= 6, < 8.1)
6
+ json_schemer (~> 2.4.0)
7
7
  mutex_m (~> 0.3.0)
8
8
 
9
9
  GEM
@@ -25,7 +25,7 @@ GEM
25
25
  i18n (1.12.0)
26
26
  concurrent-ruby (~> 1.0)
27
27
  json (2.6.2)
28
- json_schemer (2.3.0)
28
+ json_schemer (2.4.0)
29
29
  bigdecimal
30
30
  hana (~> 1.3)
31
31
  regexp_parser (~> 2.0)
@@ -39,6 +39,7 @@ GEM
39
39
  pry (0.14.1)
40
40
  coderay (~> 1.1)
41
41
  method_source (~> 1.0)
42
+ racc (1.8.1)
42
43
  rainbow (3.1.1)
43
44
  rake (13.0.6)
44
45
  rchardet (1.8.0)
@@ -86,6 +87,7 @@ DEPENDENCIES
86
87
  git (~> 1.3)
87
88
  gitlab-security_report_schemas!
88
89
  pry
90
+ racc (~> 1.8)
89
91
  rake (~> 13.0)
90
92
  rspec (~> 3.0)
91
93
  rubocop (~> 1.21)
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![pipeline status](https://gitlab.com/gitlab-org/ruby/gems/gitlab-security_report_schemas/badges/main/pipeline.svg)](https://gitlab.com/gitlab-org/ruby/gems/gitlab-security_report_schemas/-/commits/main)
2
- [![coverage report](https://gitlab.com/gitlab-org/ruby/gems/gitlab-security_report_schemas/badges/main/coverage.svg)](https://gitlab.com/gitlab-org/ruby/gems/gitlab-security_report_schemas/-/commits/main)
2
+ [![coverage report](https://gitlab.com/gitlab-org/ruby/gems/gitlab-security_report_schemas/badges/main/coverage.svg)](https://gitlab.com/gitlab-org/ruby/gems/gitlab-security_report_schemas/-/commits/main)
3
3
  [![Latest Release](https://gitlab.com/gitlab-org/ruby/gems/gitlab-security_report_schemas/-/badges/release.svg)](https://gitlab.com/gitlab-org/ruby/gems/gitlab-security_report_schemas/-/releases)
4
4
 
5
5
  # Gitlab::SecurityReportSchemas
@@ -27,7 +27,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
27
27
  ### Ruby interface
28
28
 
29
29
  ```ruby
30
- require "security_report_schemas"
30
+ require 'gitlab/security_report_schemas'
31
31
 
32
32
  file_path = "path_of_the_report_file"
33
33
  report_content = File.read(file_path)
data/gem_version CHANGED
@@ -1 +1 @@
1
- 0.1.3.min15.0.0.max15.2.3
1
+ 0.2.0.min15.0.0.max15.2.3
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
 
10
10
  spec.summary = "Ruby gem for GitLab security report JSON schemas"
11
11
  spec.homepage = "https://gitlab.com/gitlab-org/ruby/gems/gitlab-security_report_schemas"
12
- spec.required_ruby_version = ">= 2.7.0"
12
+ spec.required_ruby_version = ">= 3.2.0"
13
13
 
14
14
  spec.metadata["homepage_uri"] = spec.homepage
15
15
 
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
29
29
  spec.require_paths = ["lib"]
30
30
 
31
- spec.add_dependency "activesupport", ">= 6", "< 8"
32
- spec.add_dependency "json_schemer", "~> 2.3.0"
31
+ spec.add_dependency "activesupport", ">= 6", "< 8.1"
32
+ spec.add_dependency "json_schemer", "~> 2.4.0"
33
33
  spec.add_dependency "mutex_m", "~> 0.3.0"
34
34
  end
@@ -8,7 +8,7 @@ module Gitlab
8
8
  class IntegrityChecker
9
9
  # Represents the schema file located on GitLab.com
10
10
  class RemoteFile < AbstractFile
11
- SCHEMA_FILE_NAME_REGEX = %r{./+(?<version>\d+\.\d+\.\d+)/(?<file_name>.+-report-format\.json)$}.freeze
11
+ SCHEMA_FILE_NAME_REGEX = %r{./+(?<version>\d+\.\d+\.\d+)/(?<file_name>.+-report-format\.json)$}
12
12
 
13
13
  private
14
14
 
@@ -21,7 +21,7 @@ module Gitlab
21
21
  end
22
22
 
23
23
  def schema_url
24
- format(schema_project_raw_url, version: version, schema_file_name: schema_file_name)
24
+ format(schema_project_raw_url, version:, schema_file_name:)
25
25
  end
26
26
 
27
27
  def version
@@ -4,7 +4,7 @@ module Gitlab
4
4
  module SecurityReportSchemas
5
5
  # Value class to encapsulate schemaVer related logic
6
6
  class SchemaVer
7
- VALID_SCHEMA_FORMAT = /\d+\.\d+\.\d+/.freeze
7
+ VALID_SCHEMA_FORMAT = /\d+\.\d+\.\d+/
8
8
 
9
9
  class InvalidSchemaVersion < StandardError; end
10
10
 
@@ -64,7 +64,7 @@ module Gitlab
64
64
  def formatted_message(template, supported_versions)
65
65
  format(template,
66
66
  version: schema_ver_version,
67
- report_type: report_type,
67
+ report_type:,
68
68
  supported_versions: supported_versions.map(&:to_s))
69
69
  end
70
70
 
@@ -5,15 +5,15 @@ module Gitlab
5
5
  # Represents the version of the gem
6
6
  class Version
7
7
  VERSION_SPEC = "%<gem_version>s.min%<min_schema>s.max%<max_schema>s"
8
- GEM_VERSION = "0.1.3"
8
+ GEM_VERSION = "0.2.0"
9
9
  MISSING_SCHEMA_VERSION = "0.0.0"
10
10
 
11
11
  class << self
12
12
  def to_s
13
13
  format(VERSION_SPEC,
14
14
  gem_version: GEM_VERSION,
15
- min_schema: min_schema,
16
- max_schema: max_schema)
15
+ min_schema:,
16
+ max_schema:)
17
17
  end
18
18
 
19
19
  def min_schema
@@ -13,7 +13,7 @@ module Gitlab
13
13
  module SecurityReportSchemas
14
14
  class Error < StandardError; end
15
15
 
16
- SCHEMA_PATH_REGEX = %r{.+schemas/(\d+\.\d+\.\d+)$}.freeze
16
+ SCHEMA_PATH_REGEX = %r{.+schemas/(\d+\.\d+\.\d+)$}
17
17
 
18
18
  class << self
19
19
  # Returns the list of schema versions available including the deprecated ones.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-security_report_schemas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3.min15.0.0.max15.2.3
4
+ version: 0.2.0.min15.0.0.max15.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-18 00:00:00.000000000 Z
11
+ date: 2025-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '6'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '8'
22
+ version: '8.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,21 +29,21 @@ dependencies:
29
29
  version: '6'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '8'
32
+ version: '8.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: json_schemer
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 2.3.0
39
+ version: 2.4.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 2.3.0
46
+ version: 2.4.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: mutex_m
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -220,14 +220,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
220
220
  requirements:
221
221
  - - ">="
222
222
  - !ruby/object:Gem::Version
223
- version: 2.7.0
223
+ version: 3.2.0
224
224
  required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  requirements:
226
226
  - - ">"
227
227
  - !ruby/object:Gem::Version
228
228
  version: 1.3.1
229
229
  requirements: []
230
- rubygems_version: 3.3.27
230
+ rubygems_version: 3.4.19
231
231
  signing_key:
232
232
  specification_version: 4
233
233
  summary: Ruby gem for GitLab security report JSON schemas