neetob 0.5.65 → 0.5.67

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: 22c49ef8ba46793fe95d8cd3b42b27b962d61ff3b53f7c4ac2bd6ffa39da387a
4
- data.tar.gz: 2ae0979d060142318dbc29d1bbf177d03fd40ea32893ec5cc104337b14620ced
3
+ metadata.gz: 2f2d8babeb0b3188023da71a4db99c635a8dc04872ef2ce2f8c53ae234d53b9c
4
+ data.tar.gz: dfa33938f38a65a1332ba4f12d3d6b890aac10cf8138f35c737b1ad6380c98f6
5
5
  SHA512:
6
- metadata.gz: 3a68d9a4bc611427d0fe9d7dd9d029f08ef5a3970e3ec9d20bd183d43936c5a153cdd09b09804ec9d94f3659e6ff432c5be1618e9000feaec37e7e20b6c561d0
7
- data.tar.gz: a76453757018026c2943c1e6b0098776757d66da9a26faf748fb971240bd6b8a979394d08ea7a7ec313d1ce0b4d5c27c711f0c0ebec7c5041a85d0dd266f224a
6
+ metadata.gz: 637ff5e57251fce98acb1897aaf0125c7f027e864267b569109b5debde735dfe40f486d7098098ec4fd9c9082d0aa012d05edbc1b1c9bc047760c7b9e435feb8
7
+ data.tar.gz: 3f2c595dd57f32cddb1f83f04c84c2a465b32ffd3765418d4a8fc99850cb4ba2355688c27e0ae300fbe18978ee526593086be3d2070cca085ca1b27f79670bf1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetob (0.5.65)
4
+ neetob (0.5.67)
5
5
  actionview
6
6
  activesupport
7
7
  brakeman (~> 5.0)
@@ -24,10 +24,10 @@ module Neetob
24
24
  comments = nil
25
25
  if fasterer_exec_result.include?("0 offenses detected")
26
26
  audit_passed = "Yes"
27
- comments = fasterer_exec_result
27
+ comments = "Vulnerabilities not detected"
28
28
  else
29
29
  optimizations_needed = "Yes"
30
- comments = fasterer_exec_result.gsub("\n", "<br>")
30
+ comments = "Vulnerabilities detected"
31
31
  end
32
32
  repo_data << [repo, optimizations_needed, comments, audit_passed]
33
33
  end
@@ -41,12 +41,18 @@ module Neetob
41
41
  "Content-Type" => "application/json"
42
42
  }
43
43
 
44
- response = HTTParty.post(url, body: body.to_json, headers:)
44
+ response = HTTParty.post(url, body: body.to_json, headers:, follow_redirects: false)
45
45
 
46
46
  if response.code == 200
47
- ui.success("Added #{email} to #{workspace}.#{app} with role #{role}")
47
+ ui.success(" Successfully added #{email} to #{workspace}.#{app} with the role #{role}.\n\n")
48
+ elsif response.code == 302
49
+ ui.error("❌ Could not add #{email} to #{workspace}.#{app} with role #{role}.")
50
+ ui.say("ℹ️ The #{app} app is not enabled for the workspace #{workspace}.\n\n")
51
+ elsif response.code == 422
52
+ ui.error("❌ Could not add #{email} to #{workspace}.#{app} with role #{role}.")
53
+ ui.say("Reason: #{response['error']}\n\n")
48
54
  else
49
- ui.error("Failed to add #{email} to #{workspace}.#{app}. Status: #{response.code}")
55
+ ui.error("Failed to add #{email} to #{workspace}.#{app} Response status: #{response.code}.\n\n")
50
56
  end
51
57
  end
52
58
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Neetob
4
- VERSION = "0.5.65"
4
+ VERSION = "0.5.67"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neetob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.65
4
+ version: 0.5.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - Udai Gupta