cvss-suite 1.0.3 → 1.0.4

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: f65c055a337563e4d6dac9ac1fc6b2c24cc8a1bd
4
- data.tar.gz: 6745e53e091dc59faca1dc989c6a3143d92642ed
3
+ metadata.gz: 6293a57726bb4ec5796c493943dda07090bd80bc
4
+ data.tar.gz: 8fef20826110982f29f0bb6fd4472c5f64f00126
5
5
  SHA512:
6
- metadata.gz: 5f0c82b93c73a27aa95e99cce2b91e4e21b705ab6f8a3b9e01a91d362f6345139e5a19c0ca5500443cc36e1bd1c6573d6fd215a6a54b418e57564177240d7e6b
7
- data.tar.gz: b038ee7f994edfbeb6997eb46c28e221b64000ad0f0380937956bc69228743bfffb7f7fa502a12f23fd89a031d074b95f45101c7fa8f778de68bfe76311c4269
6
+ metadata.gz: acd248e76bd9a48d98609ad8fc4355988aa660d28bae94a7566438df9914f47194cd3e3363803a693d745001295bca1bf46651d22b1d6947d8b95875c41e63d2
7
+ data.tar.gz: ed64d27283c02b498266101a21c7f66fc7d48cae18c5465ff8c7f2553b60d8c2be544c908f751c129cd311317b48d4699faaccb6e7087318a836735360589ca1
@@ -11,52 +11,10 @@ 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).\n
15
- Besides calculating the Base, Temporal and Environmental Score, you are able to extract the selected option.\n\n
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.
16
16
 
17
- Homepage is still in progress and will be published soon (along with full documentation).\n
18
-
19
- ## Usage\n\n
20
-
21
- ```ruby\n
22
- require 'cvss_suite'\n\n
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')\n\n
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'\n
27
- version = cvss.version # 2\n\n
28
-
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
-
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
-
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
-
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
-
49
- # Exceptions\n\n
50
-
51
- CvssSuite.new('random_string') # will throw a RuntimeError: Vector is not valid!\n
52
- CvssSuite.new() # will throw a ArgumentError\n\n
53
-
54
- cvss = CvssSuite.new('AV:N/AC:P/C:P/AV:U/RL:OF/RC:C') # invalid vector, authentication is missing\n\n
55
-
56
- version = cvss.version # 2\n\n
57
-
58
- cvss.base_score # will throw a RuntimeError: Vector is not valid!\n
59
- ```}
17
+ Homepage is still in progress and will be published soon (along with full documentation).}
60
18
  spec.homepage = "https://github.com/siemens/cvss-suite"
61
19
 
62
20
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
@@ -1,3 +1,3 @@
1
1
  module CvssSuite
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
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.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Hamboerger
@@ -109,52 +109,10 @@ 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).\n
113
- Besides calculating the Base, Temporal and Environmental Score, you are able to extract the selected option.\n\n
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.
114
114
 
115
- Homepage is still in progress and will be published soon (along with full documentation).\n
116
-
117
- ## Usage\n\n
118
-
119
- ```ruby\n
120
- require 'cvss_suite'\n\n
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')\n\n
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'\n
125
- version = cvss.version # 2\n\n
126
-
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
-
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
-
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
-
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
-
147
- # Exceptions\n\n
148
-
149
- CvssSuite.new('random_string') # will throw a RuntimeError: Vector is not valid!\n
150
- CvssSuite.new() # will throw a ArgumentError\n\n
151
-
152
- cvss = CvssSuite.new('AV:N/AC:P/C:P/AV:U/RL:OF/RC:C') # invalid vector, authentication is missing\n\n
153
-
154
- version = cvss.version # 2\n\n
155
-
156
- cvss.base_score # will throw a RuntimeError: Vector is not valid!\n
157
- ```
115
+ Homepage is still in progress and will be published soon (along with full documentation).
158
116
  email:
159
117
  - oliver.hamboerger@siemens.com
160
118
  executables: []