cvss-suite 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ea284092d41dfe479cb616872fe7ec5a21df942
4
- data.tar.gz: ad6f1417558619068e54d1e310d1b3f7a496bad7
3
+ metadata.gz: f65c055a337563e4d6dac9ac1fc6b2c24cc8a1bd
4
+ data.tar.gz: 6745e53e091dc59faca1dc989c6a3143d92642ed
5
5
  SHA512:
6
- metadata.gz: 89b23a2086ef76bf0e5858dac1bea67a3f0f5d3fb37cfc7e134bfbdd9e949faecdb7126e5191a0d74c1408f19d3d07db5b8ada00fc40bbe89f417911e952a9ae
7
- data.tar.gz: 0cf55d0f5e3dbee3fccecdffdeef10b6668c644f5105e3338ce7c9100a726632103928be666bad16169e1d621ef59331c73e548681310934dd95172fe648da32
6
+ metadata.gz: 5f0c82b93c73a27aa95e99cce2b91e4e21b705ab6f8a3b9e01a91d362f6345139e5a19c0ca5500443cc36e1bd1c6573d6fd215a6a54b418e57564177240d7e6b
7
+ data.tar.gz: b038ee7f994edfbeb6997eb46c28e221b64000ad0f0380937956bc69228743bfffb7f7fa502a12f23fd89a031d074b95f45101c7fa8f778de68bfe76311c4269
@@ -11,51 +11,51 @@ Gem::Specification.new do |spec|
11
11
  spec.email = ["oliver.hamboerger@siemens.com"]
12
12
 
13
13
  spec.summary = %q{Ruby gem for processing cvss vectors.}
14
- spec.description = %q{This Ruby gem helps you to process the vector of the Common Vulnerability Scoring System (https://www.first.org/cvss/specification-document).
15
- Besides calculating the Base, Temporal and Environmental Score, you are able to extract the selected option.
14
+ spec.description = %q{This Ruby gem helps you to process the vector of the Common Vulnerability Scoring System (https://www.first.org/cvss/specification-document).\n
15
+ Besides calculating the Base, Temporal and Environmental Score, you are able to extract the selected option.\n\n
16
16
 
17
- Homepage is still in progress and will be published soon (along with full documentation).
17
+ Homepage is still in progress and will be published soon (along with full documentation).\n
18
18
 
19
- ## Usage
19
+ ## Usage\n\n
20
20
 
21
- ```ruby
22
- require 'cvss_suite'
21
+ ```ruby\n
22
+ require 'cvss_suite'\n\n
23
23
 
24
- cvss = CvssSuite.new('AV:A/AC:M/Au:S/C:P/I:P/A:P/E:POC/RL:TF/RC:UC/CDP:L/TD:M/CR:M/IR:M/AR:M')
24
+ cvss = CvssSuite.new('AV:A/AC:M/Au:S/C:P/I:P/A:P/E:POC/RL:TF/RC:UC/CDP:L/TD:M/CR:M/IR:M/AR:M')\n\n
25
25
 
26
- vector = cvss.vector # 'AV:A/AC:M/Au:S/C:P/I:P/A:P/E:POC/RL:TF/RC:UC/CDP:L/TD:M/CR:M/IR:M/AR:M'
27
- version = cvss.version # 2
26
+ vector = cvss.vector # 'AV:A/AC:M/Au:S/C:P/I:P/A:P/E:POC/RL:TF/RC:UC/CDP:L/TD:M/CR:M/IR:M/AR:M'\n
27
+ version = cvss.version # 2\n\n
28
28
 
29
- # Scores
30
- base_score = cvss.base_score # 4.9
31
- temporal_score = cvss.temporal_score # 3.6
32
- environmental_score = cvss.environmental_score # 3.2
33
- overall_score = cvss.overall_score # 3.2
29
+ # Scores\n
30
+ base_score = cvss.base_score # 4.9\n
31
+ temporal_score = cvss.temporal_score # 3.6\n
32
+ environmental_score = cvss.environmental_score # 3.2\n
33
+ overall_score = cvss.overall_score # 3.2\n\n
34
34
 
35
- # Available options
36
- access_vector = cvss.base.access_vector.name # 'Access Vector'
37
- remediation_level = cvss.temporal.remediation_level.name # 'Remediation Level'
35
+ # Available options\n
36
+ access_vector = cvss.base.access_vector.name # 'Access Vector'\n
37
+ remediation_level = cvss.temporal.remediation_level.name # 'Remediation Level'\n\n
38
38
 
39
- access_vector.choices.each do |choice|
40
- choice[:name] # 'Local', 'Adjacent Network', 'Network'
41
- choice[:abbreviation] # 'L', 'A', 'N'
42
- choice[:selected] # false, true, false
43
- end
39
+ access_vector.choices.each do |choice|\n
40
+ choice[:name] # 'Local', 'Adjacent Network', 'Network'\n
41
+ choice[:abbreviation] # 'L', 'A', 'N'\n
42
+ choice[:selected] # false, true, false\n
43
+ end\n\n
44
44
 
45
- # Selected options
46
- cvss.base.access_vector.selected_choice[:name] # Adjacent Network
47
- cvss.temporal.remediation_level.selected_choice[:name] # Temporary Fix
45
+ # Selected options\n
46
+ cvss.base.access_vector.selected_choice[:name] # Adjacent Network\n
47
+ cvss.temporal.remediation_level.selected_choice[:name] # Temporary Fix\n\n
48
48
 
49
- # Exceptions
49
+ # Exceptions\n\n
50
50
 
51
- CvssSuite.new('random_string') # will throw a RuntimeError: Vector is not valid!
52
- CvssSuite.new() # will throw a ArgumentError
51
+ CvssSuite.new('random_string') # will throw a RuntimeError: Vector is not valid!\n
52
+ CvssSuite.new() # will throw a ArgumentError\n\n
53
53
 
54
- cvss = CvssSuite.new('AV:N/AC:P/C:P/AV:U/RL:OF/RC:C') # invalid vector, authentication is missing
54
+ cvss = CvssSuite.new('AV:N/AC:P/C:P/AV:U/RL:OF/RC:C') # invalid vector, authentication is missing\n\n
55
55
 
56
- version = cvss.version # 2
56
+ version = cvss.version # 2\n\n
57
57
 
58
- cvss.base_score # will throw a RuntimeError: Vector is not valid!
58
+ cvss.base_score # will throw a RuntimeError: Vector is not valid!\n
59
59
  ```}
60
60
  spec.homepage = "https://github.com/siemens/cvss-suite"
61
61
 
@@ -1,3 +1,3 @@
1
1
  module CvssSuite
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cvss-suite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Hamboerger
@@ -109,51 +109,51 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: 0.14.0
111
111
  description: |-
112
- This Ruby gem helps you to process the vector of the Common Vulnerability Scoring System (https://www.first.org/cvss/specification-document).
113
- Besides calculating the Base, Temporal and Environmental Score, you are able to extract the selected option.
112
+ This Ruby gem helps you to process the vector of the Common Vulnerability Scoring System (https://www.first.org/cvss/specification-document).\n
113
+ Besides calculating the Base, Temporal and Environmental Score, you are able to extract the selected option.\n\n
114
114
 
115
- Homepage is still in progress and will be published soon (along with full documentation).
115
+ Homepage is still in progress and will be published soon (along with full documentation).\n
116
116
 
117
- ## Usage
117
+ ## Usage\n\n
118
118
 
119
- ```ruby
120
- require 'cvss_suite'
119
+ ```ruby\n
120
+ require 'cvss_suite'\n\n
121
121
 
122
- cvss = CvssSuite.new('AV:A/AC:M/Au:S/C:P/I:P/A:P/E:POC/RL:TF/RC:UC/CDP:L/TD:M/CR:M/IR:M/AR:M')
122
+ cvss = CvssSuite.new('AV:A/AC:M/Au:S/C:P/I:P/A:P/E:POC/RL:TF/RC:UC/CDP:L/TD:M/CR:M/IR:M/AR:M')\n\n
123
123
 
124
- vector = cvss.vector # 'AV:A/AC:M/Au:S/C:P/I:P/A:P/E:POC/RL:TF/RC:UC/CDP:L/TD:M/CR:M/IR:M/AR:M'
125
- version = cvss.version # 2
124
+ vector = cvss.vector # 'AV:A/AC:M/Au:S/C:P/I:P/A:P/E:POC/RL:TF/RC:UC/CDP:L/TD:M/CR:M/IR:M/AR:M'\n
125
+ version = cvss.version # 2\n\n
126
126
 
127
- # Scores
128
- base_score = cvss.base_score # 4.9
129
- temporal_score = cvss.temporal_score # 3.6
130
- environmental_score = cvss.environmental_score # 3.2
131
- overall_score = cvss.overall_score # 3.2
127
+ # Scores\n
128
+ base_score = cvss.base_score # 4.9\n
129
+ temporal_score = cvss.temporal_score # 3.6\n
130
+ environmental_score = cvss.environmental_score # 3.2\n
131
+ overall_score = cvss.overall_score # 3.2\n\n
132
132
 
133
- # Available options
134
- access_vector = cvss.base.access_vector.name # 'Access Vector'
135
- remediation_level = cvss.temporal.remediation_level.name # 'Remediation Level'
133
+ # Available options\n
134
+ access_vector = cvss.base.access_vector.name # 'Access Vector'\n
135
+ remediation_level = cvss.temporal.remediation_level.name # 'Remediation Level'\n\n
136
136
 
137
- access_vector.choices.each do |choice|
138
- choice[:name] # 'Local', 'Adjacent Network', 'Network'
139
- choice[:abbreviation] # 'L', 'A', 'N'
140
- choice[:selected] # false, true, false
141
- end
137
+ access_vector.choices.each do |choice|\n
138
+ choice[:name] # 'Local', 'Adjacent Network', 'Network'\n
139
+ choice[:abbreviation] # 'L', 'A', 'N'\n
140
+ choice[:selected] # false, true, false\n
141
+ end\n\n
142
142
 
143
- # Selected options
144
- cvss.base.access_vector.selected_choice[:name] # Adjacent Network
145
- cvss.temporal.remediation_level.selected_choice[:name] # Temporary Fix
143
+ # Selected options\n
144
+ cvss.base.access_vector.selected_choice[:name] # Adjacent Network\n
145
+ cvss.temporal.remediation_level.selected_choice[:name] # Temporary Fix\n\n
146
146
 
147
- # Exceptions
147
+ # Exceptions\n\n
148
148
 
149
- CvssSuite.new('random_string') # will throw a RuntimeError: Vector is not valid!
150
- CvssSuite.new() # will throw a ArgumentError
149
+ CvssSuite.new('random_string') # will throw a RuntimeError: Vector is not valid!\n
150
+ CvssSuite.new() # will throw a ArgumentError\n\n
151
151
 
152
- cvss = CvssSuite.new('AV:N/AC:P/C:P/AV:U/RL:OF/RC:C') # invalid vector, authentication is missing
152
+ cvss = CvssSuite.new('AV:N/AC:P/C:P/AV:U/RL:OF/RC:C') # invalid vector, authentication is missing\n\n
153
153
 
154
- version = cvss.version # 2
154
+ version = cvss.version # 2\n\n
155
155
 
156
- cvss.base_score # will throw a RuntimeError: Vector is not valid!
156
+ cvss.base_score # will throw a RuntimeError: Vector is not valid!\n
157
157
  ```
158
158
  email:
159
159
  - oliver.hamboerger@siemens.com