neetob 0.5.23 → 0.5.24

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: 65bbfa5cbc4fd79fe3c490a569b74a2b45d74719e026727294036e369619e48f
4
- data.tar.gz: 141be333193618da05b8862a711914e0b60d8ec4fda8ad3911a600609e79e442
3
+ metadata.gz: 5e37ee50c81f41e8627354dab3db71e5e980cd3a9e7a220f39de9ac85e6ff2e1
4
+ data.tar.gz: 8eb318efa5d3718ef39b0aa1b0894fb347ac7a3b8da6c84c3f754b8fa6f1a0d2
5
5
  SHA512:
6
- metadata.gz: f50d143f73b6e0b9bcd056ca15e18b1af5d3803e23edd8ba76391c1a8212da221554fc51910cfcbd5f481fe0e0f650eda2223c4b1d424b96ca4423b3fb50e4c9
7
- data.tar.gz: 5df96fe065ff517884da837893764492089743fe6e451d8c440be16b6b91099c4d3ef717591f1c63d1241c3e2bd8f6014188d733c9881311f4cedd799562189f
6
+ metadata.gz: 815531e02e33911a59c30cd0941ab8889b184e06ad6cac1edc757e55274ea8a2dd09d3ec2e2e95a12d40014e8090477ecc9a22a77074abc94b2f3bcb238f404d
7
+ data.tar.gz: 611f47856a69cf0c69061bb0f3e13ecc7ba97f8560ecd38233c009aa4c62404e77424a4f56de72cf2d17905fa34ac7bd0712586f1c75de8aacbcec7cbd3cec1e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetob (0.5.23)
4
+ neetob (0.5.24)
5
5
  brakeman (~> 5.0)
6
6
  chronic
7
7
  dotenv (~> 2.8.1)
@@ -34,7 +34,7 @@ module Neetob
34
34
  ExceptionHandler.new(e).process
35
35
  end
36
36
  end
37
- `rm -rf /tmp/neetob`
37
+ `rm -rf /tmp/neetob` unless Thread.current[:audit_mode]
38
38
  if Thread.current[:audit_mode]
39
39
  report
40
40
  end
@@ -30,7 +30,7 @@ module Neetob
30
30
  ExceptionHandler.new(e).process
31
31
  end
32
32
  end
33
- `rm -rf /tmp/neetob`
33
+ `rm -rf /tmp/neetob` unless Thread.current[:audit_mode]
34
34
  if Thread.current[:audit_mode]
35
35
  report
36
36
  end
@@ -61,7 +61,12 @@ module Neetob
61
61
  end
62
62
 
63
63
  def clone_repo_in_tmp_dir(repo)
64
- `git clone --quiet git@github.com:#{repo}.git /tmp/neetob/#{repo_name_without_org_suffix(repo)}`
64
+ local_repo_path = "/tmp/neetob/#{repo_name_without_org_suffix(repo)}"
65
+ if Thread.current[:audit_mode] && Dir.exist?(local_repo_path)
66
+ return
67
+ end
68
+
69
+ `git clone --quiet git@github.com:#{repo}.git #{local_repo_path}`
65
70
  end
66
71
 
67
72
  def add_commmit_and_push_changes!(repo, local_repo = false)
@@ -30,7 +30,7 @@ module Neetob
30
30
  ExceptionHandler.new(e).process
31
31
  end
32
32
  end
33
- `rm -rf /tmp/neetob`
33
+ `rm -rf /tmp/neetob` unless Thread.current[:audit_mode]
34
34
  if Thread.current[:audit_mode]
35
35
  report
36
36
  end
@@ -31,6 +31,7 @@ module Neetob
31
31
  ui.info "\n"
32
32
  Misc::Main.new.run
33
33
  ui.info "\n"
34
+ `rm -rf /tmp/neetob`
34
35
  ui.success("## Audit for #{month} completed successfully.")
35
36
  ui.success("## Audit report is written to #{markdown_file_name}")
36
37
  ui.success("## Please update the manual audit part and post the audit in Github.")
@@ -76,7 +76,6 @@ module Neetob
76
76
  required_keys = REQUIRED_KEYS + REQUIRED_KEYS_NEETODEPLOY
77
77
  compare_envs(required_keys, envs, app)
78
78
  rescue => exception
79
- binding.pry
80
79
  ui.error(exception.message)
81
80
  end
82
81
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Neetob
4
- VERSION = "0.5.23"
4
+ VERSION = "0.5.24"
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.23
4
+ version: 0.5.24
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-01-18 00:00:00.000000000 Z
11
+ date: 2025-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor