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 +4 -4
- data/.rubocop.yml +1 -1
- data/Gemfile +1 -0
- data/Gemfile.lock +6 -4
- data/README.md +2 -2
- data/gem_version +1 -1
- data/gitlab-security_report_schemas.gemspec +3 -3
- data/lib/gitlab/security_report_schemas/cli/schema_checker/remote_file.rb +2 -2
- data/lib/gitlab/security_report_schemas/schema_ver.rb +1 -1
- data/lib/gitlab/security_report_schemas/validator.rb +1 -1
- data/lib/gitlab/security_report_schemas/version.rb +3 -3
- data/lib/gitlab/security_report_schemas.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 271150a2d4f135e63b03d81a5427c5959ee78d973f3e5bc95179a80139646117
|
|
4
|
+
data.tar.gz: 60d87353b0204205cb4eebe91abd27406270a4db30b8a851ead6f57eb32abd66
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 20cd1ad0acd29db2fbb7c756cbeb859b03a73c8d20bb739d7a5bdaf7fe0e092e54c30df438de829cf0676fc38aede23e674e4202f3f22d8f06992720e4790ee3
|
|
7
|
+
data.tar.gz: c2fca219f2532b949d571a9fc02e462c65a0a6564975ce82874bfac060e207031e86812540e918e09c787faf6ff603a0454d0d7f0709b36f0f3572bdb9503d38
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
gitlab-security_report_schemas (0.
|
|
5
|
-
activesupport (>= 6, < 8)
|
|
6
|
-
json_schemer (~> 2.
|
|
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.
|
|
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
|
[](https://gitlab.com/gitlab-org/ruby/gems/gitlab-security_report_schemas/-/commits/main)
|
|
2
|
-
[](https://gitlab.com/gitlab-org/ruby/gems/gitlab-security_report_schemas/-/commits/main)
|
|
2
|
+
[](https://gitlab.com/gitlab-org/ruby/gems/gitlab-security_report_schemas/-/commits/main)
|
|
3
3
|
[](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
|
|
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
|
+
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.
|
|
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.
|
|
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)$}
|
|
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
|
|
24
|
+
format(schema_project_raw_url, version:, schema_file_name:)
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def version
|
|
@@ -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.
|
|
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
|
|
16
|
-
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+)$}
|
|
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.
|
|
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-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|