-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruby.json5
64 lines (64 loc) · 1.42 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
$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",
],
},
// Separate Ruby on Rails dependencies as they need to be upgraded
// together, and minors are majors.
{
matchDatasources: ["rubygems"],
matchDepNames: [
"actioncable",
"actionmailbox",
"actionmailer",
"actionpack",
"actiontext",
"actionview",
"activejob",
"activemodel",
"activerecord",
"activestorage",
"activesupport",
"railties",
"rails",
],
matchUpdateTypes: ["major", "minor"],
groupName: "Ruby on Rails",
automerge: false,
},
],
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",
},
],
}