neetob 0.5.18 → 0.5.20

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: 8942c3a30b3d6edc581f2578939d0fc183553269ecd8640142051b90371554a5
4
- data.tar.gz: 5fb19b35d0af660c4d91d1ee0425ed39ae61aff0749718466a34eb0d70cd3ccd
3
+ metadata.gz: 39e94d460468fc82db93415ffdc880c955b82f3d9665ced61074a63a308e943c
4
+ data.tar.gz: 9771fcca58bbd2806ffcaa817217f61d8630b0bf004ff827f22a1a3e3b83bb08
5
5
  SHA512:
6
- metadata.gz: 0fbf9a88888b0d500836970638cfe86d0d76a9381ef7c27ee1a3d28d6f783dc2ded006c491ac5a11e8b5c5cbb8b33d853e80ca3837632164b86d84c101d66f82
7
- data.tar.gz: d8f9381c36e206a4a5b9d54364b5aa9a71524403777e8fbd7844fa20e312829c14f7dc7e73e116be8e884f9c6f2198de4fe5d9adae788b2143c535ecfe5dcbf9
6
+ metadata.gz: f585207aa9f2d3414b74e1aa9bbc324af70cdc8ef8d870d79968674f06b54d5ec40da5ff52cc486e53300151c181e28310ec6ce06d9338f561790ca578e7d152
7
+ data.tar.gz: b711f33d69f333e75fba222898c24f1330421de81ea251d26aa417da3b3fad0df928cd2c09d177307b06402ef6b3e2c09f42a3d629e86c5bda4669425b825288
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetob (0.5.18)
4
+ neetob (0.5.20)
5
5
  brakeman (~> 5.0)
6
6
  chronic
7
7
  dotenv (~> 2.8.1)
@@ -23,11 +23,6 @@ module Neetob
23
23
  begin
24
24
  ui.info("\nWorking on repo #{repo}", print_to_audit_log: false)
25
25
  clone_repo_in_tmp_dir(repo)
26
- gemfile_path = File.join(tmp_repo_path(repo), "Gemfile")
27
- until File.exist?(gemfile_path)
28
- ui.info("Waiting for clone to finish", print_to_audit_log: false)
29
- sleep(1)
30
- end
31
26
  bundle_install!(repo)
32
27
  report = run_bundle_audit(repo)
33
28
  ui.success("Successfully executed bundle audit for #{repo}", print_to_audit_log: false)
@@ -44,7 +39,7 @@ module Neetob
44
39
  private
45
40
 
46
41
  def run_bundle_audit(repo)
47
- `#{cd_to_repo(repo)} & rbenv local 3.3.5 & bundle-audit check`
42
+ `#{cd_to_repo(repo)} && rbenv local 3.3.5 && bundle-audit check`
48
43
  end
49
44
  end
50
45
  end
@@ -20,7 +20,16 @@ module Neetob
20
20
  private
21
21
 
22
22
  def bundle_install!(repo, local_repo = false)
23
- execute_command!("#{cd_to_repo(repo, local_repo)} & rbenv local 3.3.5 & bundle install")
23
+ commands = [
24
+ cd_to_repo(repo, local_repo),
25
+ "rbenv local 3.3.5",
26
+ "BUNDLE_GEMFILE='#{repo_path(repo)}/Gemfile' bundle install"
27
+ ]
28
+ execute_command!(commands.join(" && "))
29
+ end
30
+
31
+ def repo_path(repo)
32
+ "/tmp/neetob/#{repo_name_without_org_suffix(repo)}"
24
33
  end
25
34
 
26
35
  def yarn_install!(repo, local_repo = false)
@@ -46,10 +55,6 @@ module Neetob
46
55
  `git clone --quiet git@github.com:#{repo}.git /tmp/neetob/#{repo_name_without_org_suffix(repo)}`
47
56
  end
48
57
 
49
- def tmp_repo_path(repo)
50
- "/tmp/neetob/#{repo_name_without_org_suffix(repo)}"
51
- end
52
-
53
58
  def add_commmit_and_push_changes!(repo, local_repo = false)
54
59
  create_commit!(repo, local_repo)
55
60
  push_changes!(repo, local_repo)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Neetob
4
- VERSION = "0.5.18"
4
+ VERSION = "0.5.20"
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.18
4
+ version: 0.5.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Udai Gupta