gitlab-dangerfiles 2.9.2 → 2.9.3

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: 18ad65769d07e0c6739e489f3c8edf8d008a62fc25c4789476360f073d5bf3b8
4
- data.tar.gz: dd5598930037ead15d2f11bea7a0138ea374b143310adcd258da12569dcd0a21
3
+ metadata.gz: 51f1b9ce0d37840b9810a3bc19cdf3c6e35ed8d14f7cf0495a52e1410468b34e
4
+ data.tar.gz: 763783874f9e0e72b33408f2718d6151a7530526ab3498529ea40d2c02fa4f25
5
5
  SHA512:
6
- metadata.gz: e8c68d332a63e4c15b41e17024b5dff040db820c1cfb12929adc88daf8a1624dd1bfe76444a6423134cf301f89faad3b59ba1aa80c859342a80395c472669b72
7
- data.tar.gz: d471bed2793b86906d7f8460318c21bf2878d8c2dd4bdf381c925d5ad4d70c0bc36f5b40c63c6c17051cf07866611793baa464eab47756d227066a6f79cc8b2c
6
+ metadata.gz: b204d42cc13b8b06801f4da675617e63b56fba631b4122ed4140e0188ea5143d5ec07732b41c6581426d4a5e9e48939f2e260b9f3636afcaac1a96f2aaf78e29
7
+ data.tar.gz: 6bc734af3d2148cbfb67e23e2cef84f7b36ffb7b82f82b8b9d9d2ca410f95a72d5f72b68dc4d0e59d4f8811df61a536e3282793a6c22f37058e1038e0bc0b6db
@@ -115,11 +115,15 @@ module Gitlab
115
115
  end
116
116
 
117
117
  def files_changed
118
- commit.diff_parent.stats[:total][:files]
118
+ # In some cases, the commits cannot be found so it's better to just move one
119
+ # See https://gitlab.com/gitlab-org/gitlab/-/issues/227814.
120
+ commit.diff_parent.size rescue 0
119
121
  end
120
122
 
121
123
  def lines_changed
122
- commit.diff_parent.stats[:total][:lines]
124
+ # In some cases, the commits cannot be found so it's better to just move one
125
+ # See https://gitlab.com/gitlab-org/gitlab/-/issues/227814.
126
+ commit.diff_parent.lines rescue 0
123
127
  end
124
128
 
125
129
  def many_changes?
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module Dangerfiles
3
- VERSION = "2.9.2"
3
+ VERSION = "2.9.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-dangerfiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.2
4
+ version: 2.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-23 00:00:00.000000000 Z
11
+ date: 2022-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger-gitlab