danger-additional-logging 0.0.5 → 0.0.7

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: '0927584c4b42a15d25eb9044eb3f1dc4f1ee753ec3062145956078cc43ea399b'
4
- data.tar.gz: 59b789936b20af473b82972b4bddbb940afff57cc75e44543bfbbc146e83fed3
3
+ metadata.gz: 6f29e3f823e9fb3d9baba626fef6af0350e8f025175eb0e6fd57d5fddd8d73a5
4
+ data.tar.gz: 9b73669723b7fc7d9d1b90d102b1432fdfb306ce1ade1eb340c3a2be4b8551be
5
5
  SHA512:
6
- metadata.gz: 807c14bb3f91fa88028d4e17db0f8ea79842c466d23cd5dbc761cd638b970cf4924210eb7c5bd877ca642d051a15826332cb949aa747895be1e92a6285e21e3f
7
- data.tar.gz: c8f6bab5ef63ae8c9aba9c5de208a5dd25a58e1a8aeb847664fa102d7714b51502066c5d8ec8ada5289c48d92f20b194c38dbaf02644e23a300f7383489aa322
6
+ metadata.gz: 1da3620ce9b9d1658710da83b755abc0d9122c1b9d273add50e3d77d6bd8f95449e453812252e8cb468581f7c9d01afd0911a7bf1298da7a8d173fc369ca967a
7
+ data.tar.gz: 3c082a7840040829887721ba77069f138054e578b95a9198b3824287999f768d3758c9230af4be9a258bb446711ec3fef3a7540b4cd38313d497f3e759e5b840
@@ -54,7 +54,9 @@ module Danger
54
54
  Dir.chdir(self.folder || ".") do
55
55
  git_command = string.split(" ").dup.unshift("git")
56
56
  Open3.popen2(default_env, *git_command) do |_stdin, stdout, _wait_thr|
57
- stdout.read.rstrip
57
+ output = stdout.read.rstrip
58
+ puts output # Print the captured output
59
+ output # Return the captured output
58
60
  end
59
61
  end
60
62
  end
@@ -82,12 +84,21 @@ module Danger
82
84
 
83
85
  def ensure_commitish_exists_on_branch!(branch, commitish)
84
86
  puts "ensure_commitish_exists_on_branch(#{branch}, commitish=#{commitish})!"
85
- return if commit_exists?(commitish)
87
+
88
+ exists = commit_exists?(commitish)
89
+ # return if commit_exists?(commitish)
90
+
91
+ if (exists)
92
+ puts "The commit #{commitish} exists in #{branch}"
93
+ return
94
+ else
95
+ puts "The commit #{commitish} DOES NOT exist in #{branch}"
96
+ end
86
97
 
87
98
  puts "Is shallow repo:"
88
- exect("rev-parse --is-shallow-repository")
99
+ exec("rev-parse --is-shallow-repository")
89
100
 
90
- puts "last 5 commits befor starting git_fetch_branch_to_depth:"
101
+ puts "Last 5 commits befor starting git_fetch_branch_to_depth:"
91
102
  exec("--no-pager log -n 5")
92
103
 
93
104
  depth = 0
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "0.0.5".freeze
2
+ VERSION = "0.0.7".freeze
3
3
  DESCRIPTION = "Like Unit Tests, but for your Team Culture.".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-additional-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-08-23 00:00:00.000000000 Z
12
+ date: 2023-08-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide