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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5721484d3cb437db3c18e94329677c1c170971940a3aa9894f9405d22fc38a7e
4
- data.tar.gz: 6df403c9b28c59327d053c75aec9ecb2862cedc201a7ab7191d79dbb8701529b
3
+ metadata.gz: aba5fe5b513843f893ab44f12950f4e870d37b331b8e43e50e884498cf924acb
4
+ data.tar.gz: b9f57ccf7cdc4e41cf9fa6af85ec314c83e5e07f4dd00f062251b492aa50d573
5
5
  SHA512:
6
- metadata.gz: bd1f28e65a9195640bda8ba9277b4c8db884b060009c39589022ebd35e41b6d44434a2eca5d502dc49c294f31ce0fc8542f9cbcfbc25314f0688b8b4286ae645
7
- data.tar.gz: 8c3acc9ca82bbcae28741f81c6fa632bee91610bb1ebda8257878ffb704e5a1bf37f06b14d7eaaf03dc489643f4f42357ef27598bc898a54a3cfd1a77a469bc0
6
+ metadata.gz: 83776a852572740d36b35eb3a7080faef40f5237434004f0767b26ce61979bd664bf8e4fdd86ed3280e0d678273431c7b4f485b814fd9ec96c46905ba16503ec
7
+ data.tar.gz: e6e60640c4e5caa08e2f82350deb39fa349b44295b2677965638f4cdf36ee7067bcbff4bfa80c1ab305067335c13e074bd0e7a69a1626ae82aa9d132b43f1277
@@ -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", "~> 10.2"
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
- "[`#{username}`](https://gitlab.com/#{username})"
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 `@#{author.username}`" if diff == 0
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} `@#{author.username}`"
127
+ "#{pluralized_hours} #{ahead_or_behind} author"
128
128
  end
129
129
 
130
130
  def has_capability?(project, category, kind, labels)
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module Dangerfiles
3
- VERSION = "4.2.1"
3
+ VERSION = "4.4.0"
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: 4.2.1
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 00:00:00.000000000 Z
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: '10.2'
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: '10.2'
26
+ version: '13.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: danger-gitlab
29
29
  requirement: !ruby/object:Gem::Requirement