scabox_sdk 1.0.1 → 1.0.2.pre.rc.0
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/lib/scabox_sdk/scanner.rb +2 -2
- data/spec/scabox_sdk/scanner_spec.rb +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4857aa2993c3772ff92fd0f2156ebfd2ff11925bcf948511713736dfeed7eeb7
|
4
|
+
data.tar.gz: eddb08f56e9f323b48d695082d8d998c7fdfe64d66966451850b591512a49d18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5d2827aae23fb3f9395bff05f4ef4380582e5965911b3e90316f61b3efdada1db3207bc2aa0767e74674dff2d05ab5e555d229ce8eed12a47047d8dedbedef4
|
7
|
+
data.tar.gz: 84bb11fbac19b24c13796dd8340179300d5e88650f0fa46620750595a9063a4a494bad12fbe0e99539368dc27b52ca0a427d88653dfb87736cfb275a1d90b018
|
data/lib/scabox_sdk/scanner.rb
CHANGED
@@ -85,7 +85,7 @@ module ScaBox
|
|
85
85
|
issue[:cve].sort.join(":")
|
86
86
|
]
|
87
87
|
|
88
|
-
issue[:
|
88
|
+
issue[:hash_issue] = Digest::SHA256.hexdigest(hash_data.join(':'))
|
89
89
|
@issues << issue
|
90
90
|
end
|
91
91
|
|
@@ -153,7 +153,7 @@ module ScaBox
|
|
153
153
|
#pp i
|
154
154
|
#puts "\n\n"
|
155
155
|
|
156
|
-
output << "Hash:
|
156
|
+
output << "Hash Issue: #{i[:hash_issue]}\n"
|
157
157
|
output << "Plugin: #{i[:plugin]}\n"
|
158
158
|
output << "Path: #{i[:path]}\n"
|
159
159
|
output << "Component: #{i[:component]}\n"
|
@@ -115,8 +115,8 @@ RSpec.describe 'Scanner' do
|
|
115
115
|
expect(scanner.issues[0][:solution]).to eq 'solution'
|
116
116
|
end
|
117
117
|
|
118
|
-
it "@issues[0][:
|
119
|
-
expect(scanner.issues[0][:
|
118
|
+
it "@issues[0][:hash_issue] == 'e4634c7ab84ffe3a5ea189729f9b5a1763d527bf540d0512e87e5871045f7b4f'" do
|
119
|
+
expect(scanner.issues[0][:hash_issue]).to eq 'e4634c7ab84ffe3a5ea189729f9b5a1763d527bf540d0512e87e5871045f7b4f'
|
120
120
|
end
|
121
121
|
|
122
122
|
end
|
@@ -183,7 +183,7 @@ RSpec.describe 'Scanner' do
|
|
183
183
|
|
184
184
|
before do
|
185
185
|
issue = {
|
186
|
-
|
186
|
+
hash_issue: 'aaaaaaaaaaaaaaaaaaaaaa',
|
187
187
|
plugin: 'plugin',
|
188
188
|
path: 'lololol',
|
189
189
|
component: 'xxx',
|
@@ -204,7 +204,7 @@ RSpec.describe 'Scanner' do
|
|
204
204
|
sep = "=" * 100
|
205
205
|
output = ''
|
206
206
|
|
207
|
-
output << "Hash:
|
207
|
+
output << "Hash Issue: aaaaaaaaaaaaaaaaaaaaaa\n"
|
208
208
|
output << "Plugin: plugin\n"
|
209
209
|
output << "Path: lololol\n"
|
210
210
|
output << "Component: xxx\n"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scabox_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2.pre.rc.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rd
|
@@ -73,11 +73,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '2.4'
|
74
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- - "
|
76
|
+
- - ">"
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
78
|
+
version: 1.3.1
|
79
79
|
requirements: []
|
80
|
-
rubygems_version: 3.0.3
|
80
|
+
rubygems_version: 3.0.3.1
|
81
81
|
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: SCABox SDK
|