neetob 0.5.19 → 0.5.21

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: 2b614b638dd11a35aa90bb1f4970f364152c47a26052d01a4cd813b571e8cfe8
4
- data.tar.gz: b74d72e92373e76896bd121f86fc05ec937cbb4dfdaddeb9781fb56e06cd2007
3
+ metadata.gz: '0873c562da391a87b6c4e353f2bd2901c1e3a23522411cb8240699f484518724'
4
+ data.tar.gz: c46548594d0f852c63d1c546b0fe31d34f07d940a77bf72b59ded1c3fff656aa
5
5
  SHA512:
6
- metadata.gz: f14fb034db3b201677ca0ac3a13700560cfbc4f9326a22f5bcd6e49d5db186d153095ef9022187136ea52fe6b75676730ce5065045cf9c5c4cc2266a29bc4de0
7
- data.tar.gz: b0e81f94827583c4a5dfb8cdbbfcab7ad60deb3a3dab5b958c1159fb2e4c75e2eb3389614c76073952101bdeeefbd0b691f338b7390a357a245fe49812be932b
6
+ metadata.gz: 28c3698cdc46e8afa595ac1270b8397b37e0523b6cad52dd77b853db918a3764a8a5a460aa12f594a9430b3ebd89ed35971d6529ab1910cbd2a3fd4880b5022c
7
+ data.tar.gz: 33d2f5384a941f4b9e781d0168c784fd24b75f9f2ce9463d312256f4620f5e6936a5c0012c5ea3df2f3df0a8ec4a3cda2c0296e894b30081f3b159b2cc3fdc76
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetob (0.5.19)
4
+ neetob (0.5.21)
5
5
  brakeman (~> 5.0)
6
6
  chronic
7
7
  dotenv (~> 2.8.1)
@@ -39,7 +39,7 @@ module Neetob
39
39
  private
40
40
 
41
41
  def run_bundle_audit(repo)
42
- `#{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`
43
43
  end
44
44
  end
45
45
  end
@@ -9,6 +9,10 @@ module Neetob
9
9
  class Base < Github::Base
10
10
  BRANCH_NAME = "neeto_compliance"
11
11
  PR_TITLE = "Neeto Compliance"
12
+ REPO_SPECIFIC_COMMANDS_BEFORE_BUNDLE_INSTALL = {
13
+ "bigbinary/neeto-deploy-web" => "sed -i '' '/gem \"karafka\"/d' Gemfile"
14
+ }
15
+
12
16
  attr_accessor :branch_name, :pr_title
13
17
 
14
18
  def initialize(pr_title = PR_TITLE, branch_name = BRANCH_NAME)
@@ -20,7 +24,21 @@ module Neetob
20
24
  private
21
25
 
22
26
  def bundle_install!(repo, local_repo = false)
23
- execute_command!("#{cd_to_repo(repo, local_repo)} & rbenv local 3.3.5 & bundle install")
27
+ commands = [
28
+ cd_to_repo(repo, local_repo),
29
+ "rbenv local 3.3.5",
30
+ repo_specific_commands_before_bundle_install(repo),
31
+ "BUNDLE_GEMFILE='#{repo_path(repo)}/Gemfile' bundle install"
32
+ ]
33
+ execute_command!(commands.join(" && "))
34
+ end
35
+
36
+ def repo_path(repo)
37
+ "/tmp/neetob/#{repo_name_without_org_suffix(repo)}"
38
+ end
39
+
40
+ def repo_specific_commands_before_bundle_install(repo)
41
+ REPO_SPECIFIC_COMMANDS_BEFORE_BUNDLE_INSTALL[repo] || "pwd"
24
42
  end
25
43
 
26
44
  def yarn_install!(repo, local_repo = false)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Neetob
4
- VERSION = "0.5.19"
4
+ VERSION = "0.5.21"
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.19
4
+ version: 0.5.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Udai Gupta