-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruby.json5
41 lines (41 loc) · 946 Bytes
/
ruby.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
packageRules: [
{
matchFileNames: ["**/Gemfile"],
matchUpdateTypes: ["minor", "patch"],
groupName: "gems dependencies",
},
{
matchManagers: ["custom.regex"],
matchFileNames: [".github/workflows/*"],
rangeStrategy: "replace",
},
// Group ruby binaries and known container images
{
groupName: "Ruby",
matchPackageNames: [
"ghcr.io/ruby/ruby",
"registry.docker.com/library/ruby",
"ruby",
],
},
],
customManagers: [
{
customType: "regex",
fileMatch: ["^*.gemspec"],
matchStrings: [
".*add.*dependency '(?<depName>.*?)', '(?<currentValue>.*?)'",
],
datasourceTemplate: "rubygems",
},
{
customType: "regex",
fileMatch: ["^\\.github/workflows/[^/]+\\.ya?ml$"],
matchStrings: ['ruby-version:\\s+"(?<currentValue>.*?)"'],
depNameTemplate: "ruby",
datasourceTemplate: "ruby-version",
},
],
}