neetob 0.5.26 → 0.5.28

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: 829dfac1e9f337f6a4b0241018377bc0a530c84d9424281ea664355a21b3d673
4
- data.tar.gz: d797f59ac4a6056e26f5f8cf771df1e4580764199e58656be2a9f89476f2738f
3
+ metadata.gz: 6268ba86f6681dc9e0f09f6f72561e0bb053ca891d0f9bc54849c0c5dd8c5094
4
+ data.tar.gz: 7b5beaf94dcb45ec8bae12fb7e31cbc533ffb355b6226ada8164a00d4556b94e
5
5
  SHA512:
6
- metadata.gz: b747274303fd019c52974d5379c69146f74360192c52db36e1b466549dc4b20b505991fe4f7e767b8d1055267c84bbbdb09dbdf405e909072e79c5c9d4c87353
7
- data.tar.gz: 6ec336190a22e9f302a8801abaa2dda9c75455e0ec9d117c8429dddc1be1e9836236a2144fdd93181381802987f68f8de133f82e8c1a7c43c87ba34065cdb12a
6
+ metadata.gz: a5d6d3df725dc9f2c6d70d6153d9bc83327c2686533ba800d2f716daa4adf391c4212b1a3cc05fadc09fcd932aca6e31af835ef24778f275311a9353df2caa3b
7
+ data.tar.gz: ea1d6eb95b585348725bb7b6b3956390cd9c60ee4a698243253b86b4004092e26ed2a406196287802a7c4e047d4c8dcdccd6a82a763b93f230eb0b3431a10503
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetob (0.5.26)
4
+ neetob (0.5.28)
5
5
  brakeman (~> 5.0)
6
6
  chronic
7
7
  dotenv (~> 2.8.1)
@@ -6,6 +6,11 @@ module Neetob
6
6
  module InstancesAndAddons
7
7
  module Cloudflare
8
8
  class DnsEntryHasProxyStatus < CLI::Base
9
+ DOMAINS_TO_IGNORE_AUDIT_RESULT_FOR = [
10
+ "neeto.com",
11
+ "bigbinary.com",
12
+ "neetorecord.com",
13
+ ]
9
14
  def initialize
10
15
  super()
11
16
  end
@@ -22,10 +27,13 @@ module Neetob
22
27
  proxiable_records = Neetob::CLI::Cloudflare::DnsProxyStatus.new(domain).run
23
28
  record_to_check = proxiable_records.select { |record| record[:name] == "*.#{domain}" }.first
24
29
  if record_to_check.nil?
25
- domains_data << [domain, "No * records found", "No"]
30
+ audit_passed = DOMAINS_TO_IGNORE_AUDIT_RESULT_FOR.include?(domain.to_s) ? "Ignored" : "No"
31
+ domains_data << [domain, "No * records found", audit_passed]
26
32
  else
27
33
  is_wildcard_subdomain_proxied = record_to_check[:proxied]
28
- audit_passed = is_wildcard_subdomain_proxied ? "Yes" : "No"
34
+ audit_passed = DOMAINS_TO_IGNORE_AUDIT_RESULT_FOR.include?(domain.to_s) ?
35
+ "Ignored" :
36
+ (is_wildcard_subdomain_proxied ? "Yes" : "No")
29
37
  proxy_status = is_wildcard_subdomain_proxied ? "on" : "off"
30
38
  domains_data << [domain, "#{record_to_check[:name]} has proxying turned #{proxy_status}",
31
39
  audit_passed]
@@ -6,6 +6,10 @@ module Neetob
6
6
  module InstancesAndAddons
7
7
  module Cronitor
8
8
  class SetupCorrectlyForHelpCenter < CLI::Base
9
+ APPS_TO_IGNORE = [
10
+ "NeetoTower"
11
+ ]
12
+
9
13
  def initialize
10
14
  super()
11
15
  end
@@ -38,6 +42,9 @@ module Neetob
38
42
  audit_passed = "Yes"
39
43
  end
40
44
  end
45
+ if (audit_passed == "No") && APPS_TO_IGNORE.map(&:downcase).include?(app.downcase.to_s)
46
+ audit_passed = "Ignored"
47
+ end
41
48
 
42
49
  apps_data << [app, monitor_for_app_help_center_present, monitor_for_app_help_center_enabled, comments,
43
50
  audit_passed]
@@ -6,6 +6,11 @@ module Neetob
6
6
  module InstancesAndAddons
7
7
  module Cronitor
8
8
  class SetupCorrectlyForLandingPages < CLI::Base
9
+ APPS_TO_IGNORE = [
10
+ "NeetoAuth",
11
+ "NeetoTower"
12
+ ]
13
+
9
14
  def initialize
10
15
  super()
11
16
  end
@@ -39,6 +44,10 @@ module Neetob
39
44
  end
40
45
  end
41
46
 
47
+ if (audit_passed == "No") && APPS_TO_IGNORE.map(&:downcase).include?(app.downcase.to_s)
48
+ audit_passed = "Ignored"
49
+ end
50
+
42
51
  apps_data << [app, monitor_for_app_landing_page_present, monitor_for_app_landing_page_enabled,
43
52
  comments, audit_passed]
44
53
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Neetob
4
- VERSION = "0.5.26"
4
+ VERSION = "0.5.28"
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.26
4
+ version: 0.5.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Udai Gupta