neetob 0.5.55 → 0.5.56

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: 46660ea26f353aff09b346158f9f0f7db9eddd281b435e7ca481b95f31b64c41
4
- data.tar.gz: c9467a84568b6adef2bc63729e336978fedecdf4fd4ebad8486e83af5148218e
3
+ metadata.gz: 6a6d0f5f14328fd58d78796801b804ecb554c8e5137742b4c3a359d7ac4abca8
4
+ data.tar.gz: 3edc72355b7c37b83440f5688ca35fb22cd402797c1a07a04e8873bd9a341a63
5
5
  SHA512:
6
- metadata.gz: d9b62e4cada32b74ce2ef9204e79600fe2f87608613059a041c8f8996df38acd58e55aa52cd34c8869f53ee0c49f729aae2878a1363a458f7ecbb9ee6eedbd1a
7
- data.tar.gz: '020887410c816037a5c72618da92d7855470db977d1ae1c86b6ab9fd175003ae83c4080d86343562b11d57dc2bce8a95286db538a01f2da536713cd487dfe560'
6
+ metadata.gz: 0bf8a602943256423a313aa3571bd3b38a6d5782b583308adb77619bbdec342ed7b329600019bdd6d6f8f99db1823168cf18c4469bdff41eb5bdb4c4d38d0dbe
7
+ data.tar.gz: 79fff223b0850291dedb17617ba02a962238bdcbd387a1e92832e34b1e25c09de122ee302eade527900dc1ea457781c2700094a38c1515eb904c12898629ed1b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetob (0.5.55)
4
+ neetob (0.5.56)
5
5
  actionview
6
6
  activesupport
7
7
  brakeman (~> 5.0)
@@ -22,20 +22,24 @@ module Neetob
22
22
  vulnerabilities_found = "No"
23
23
  audit_passed = "No"
24
24
  comments = nil
25
- if yarn_audit_result && yarn_audit_result.include?("0 vulnerabilities found")
25
+ severity = yarn_audit_result.split("\n").select { |line|
26
+ line.include?("Severity:") }.first.strip.gsub("|", ",")
27
+ if yarn_audit_result && !is_high_critical_vulnerabilities_found?(severity)
26
28
  audit_passed = "Yes"
27
29
  else
28
30
  vulnerabilities_found = "Yes"
29
31
  vulnerabilities = yarn_audit_result.split("\n").select { |line|
30
32
  line.include?("vulnerabilities found") }.first.strip
31
- severity = yarn_audit_result.split("\n").select { |line|
32
- line.include?("Severity:") }.first.strip.gsub("|", ",")
33
33
  comments = "#{vulnerabilities}<br>#{severity}"
34
34
  end
35
35
  repo_data << [repo, vulnerabilities_found, comments, audit_passed]
36
36
  end
37
37
  ui.print_table(repo_data)
38
38
  end
39
+
40
+ def is_high_critical_vulnerabilities_found?(severity)
41
+ severity&.include?("High") || severity&.include?("Critical")
42
+ end
39
43
  end
40
44
  end
41
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Neetob
4
- VERSION = "0.5.55"
4
+ VERSION = "0.5.56"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neetob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.55
4
+ version: 0.5.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Udai Gupta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-05-01 00:00:00.000000000 Z
11
+ date: 2025-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor