gitlab-dangerfiles 4.2.1 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gitlab-dangerfiles.gemspec +1 -1
- data/lib/gitlab/dangerfiles/teammate.rb +3 -3
- data/lib/gitlab/dangerfiles/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aba5fe5b513843f893ab44f12950f4e870d37b331b8e43e50e884498cf924acb
|
4
|
+
data.tar.gz: b9f57ccf7cdc4e41cf9fa6af85ec314c83e5e07f4dd00f062251b492aa50d573
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83776a852572740d36b35eb3a7080faef40f5237434004f0767b26ce61979bd664bf8e4fdd86ed3280e0d678273431c7b4f485b814fd9ec96c46905ba16503ec
|
7
|
+
data.tar.gz: e6e60640c4e5caa08e2f82350deb39fa349b44295b2677965638f4cdf36ee7067bcbff4bfa80c1ab305067335c13e074bd0e7a69a1626ae82aa9d132b43f1277
|
data/gitlab-dangerfiles.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
|
-
spec.add_dependency "rake", "~>
|
30
|
+
spec.add_dependency "rake", "~> 13.0"
|
31
31
|
spec.add_dependency "danger-gitlab", ">= 8.0.0"
|
32
32
|
spec.add_dependency "danger", ">= 9.3.0"
|
33
33
|
|
@@ -90,7 +90,7 @@ module Gitlab
|
|
90
90
|
private
|
91
91
|
|
92
92
|
def default_markdown_name(username)
|
93
|
-
"
|
93
|
+
"`@#{username}` [![profile link](https://gitlab.com/gitlab-org/gitlab-svgs/-/raw/main/sprite_icons/user.svg?ref_type=heads)](https://gitlab.com/#{username})"
|
94
94
|
end
|
95
95
|
|
96
96
|
def process_projects(projects)
|
@@ -119,12 +119,12 @@ module Gitlab
|
|
119
119
|
|
120
120
|
def offset_diff_compared_to_author(author)
|
121
121
|
diff = floored_offset_hours - author.floored_offset_hours
|
122
|
-
return "same timezone as
|
122
|
+
return "same timezone as author" if diff == 0
|
123
123
|
|
124
124
|
ahead_or_behind = diff < 0 ? "behind" : "ahead of"
|
125
125
|
pluralized_hours = pluralize(diff.abs, "hour", "hours")
|
126
126
|
|
127
|
-
"#{pluralized_hours} #{ahead_or_behind}
|
127
|
+
"#{pluralized_hours} #{ahead_or_behind} author"
|
128
128
|
end
|
129
129
|
|
130
130
|
def has_capability?(project, category, kind, labels)
|
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: 4.
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitLab
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '13.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '13.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: danger-gitlab
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|