capistrano 3.19.2 → 3.20.0
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 +4 -4
- data/.github/dependabot.yml +20 -0
- data/.github/workflows/ci.yml +11 -22
- data/.github/workflows/release-drafter.yml +1 -1
- data/.rubocop.yml +23 -12
- data/.rubocop_todo.yml +257 -0
- data/Gemfile +4 -42
- data/README.md +1 -1
- data/Rakefile +6 -2
- data/capistrano.gemspec +1 -1
- data/gemfiles/legacy.gemfile +7 -0
- data/lib/capistrano/configuration/server.rb +0 -2
- data/lib/capistrano/configuration.rb +1 -1
- data/lib/capistrano/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b4f0478fbe975368c07f9ee2bb4ce72b0e35837063edacc480b0ec3a6074baac
|
|
4
|
+
data.tar.gz: 6c202e93e2308bc89970449f439e310b54a59868e04ace205814e51054bea779
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4eff1cfedde99d1cb07fb2d84fb6b15943c5dd0daa771567f181d5160af8cb73bb4940cbdf3cf359a29153df54431b42950667b7a93ea6c40b5e68fe06072b7f
|
|
7
|
+
data.tar.gz: d4697ade9f40e18f160ee8e6fb17578353635a14b0c8be32085c653b7b8466587c56596ca570b096cdf62c5d6f203f77049ac651529d3b7aa85f6e7907a4459c
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: bundler
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: monthly
|
|
7
|
+
time: "16:00"
|
|
8
|
+
timezone: America/Los_Angeles
|
|
9
|
+
open-pull-requests-limit: 10
|
|
10
|
+
labels:
|
|
11
|
+
- "🏠 Housekeeping"
|
|
12
|
+
- package-ecosystem: github-actions
|
|
13
|
+
directory: "/"
|
|
14
|
+
schedule:
|
|
15
|
+
interval: monthly
|
|
16
|
+
time: "16:00"
|
|
17
|
+
timezone: America/Los_Angeles
|
|
18
|
+
open-pull-requests-limit: 10
|
|
19
|
+
labels:
|
|
20
|
+
- "🏠 Housekeeping"
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -8,21 +8,9 @@ jobs:
|
|
|
8
8
|
runs-on: ubuntu-latest
|
|
9
9
|
strategy:
|
|
10
10
|
matrix:
|
|
11
|
-
ruby:
|
|
12
|
-
[
|
|
13
|
-
"2.3",
|
|
14
|
-
"2.4",
|
|
15
|
-
"2.5",
|
|
16
|
-
"2.6",
|
|
17
|
-
"2.7",
|
|
18
|
-
"3.0",
|
|
19
|
-
"3.1",
|
|
20
|
-
"3.2",
|
|
21
|
-
"3.3",
|
|
22
|
-
"head",
|
|
23
|
-
]
|
|
11
|
+
ruby: ["3.1", "3.2", "3.3", "3.4", "head"]
|
|
24
12
|
steps:
|
|
25
|
-
- uses: actions/checkout@
|
|
13
|
+
- uses: actions/checkout@v6
|
|
26
14
|
- name: Set up Ruby
|
|
27
15
|
uses: ruby/setup-ruby@v1
|
|
28
16
|
with:
|
|
@@ -31,12 +19,14 @@ jobs:
|
|
|
31
19
|
- name: rake spec
|
|
32
20
|
run: bundle exec rake spec
|
|
33
21
|
spec-legacy:
|
|
34
|
-
runs-on: ubuntu-
|
|
22
|
+
runs-on: ubuntu-latest
|
|
35
23
|
strategy:
|
|
36
24
|
matrix:
|
|
37
|
-
ruby: ["2.
|
|
25
|
+
ruby: ["2.5", "2.6", "2.7", "3.0"]
|
|
26
|
+
env:
|
|
27
|
+
BUNDLE_GEMFILE: gemfiles/legacy.gemfile
|
|
38
28
|
steps:
|
|
39
|
-
- uses: actions/checkout@
|
|
29
|
+
- uses: actions/checkout@v6
|
|
40
30
|
- name: Set up Ruby
|
|
41
31
|
uses: ruby/setup-ruby@v1
|
|
42
32
|
with:
|
|
@@ -58,19 +48,18 @@ jobs:
|
|
|
58
48
|
rubocop:
|
|
59
49
|
runs-on: ubuntu-latest
|
|
60
50
|
steps:
|
|
61
|
-
- uses: actions/checkout@
|
|
51
|
+
- uses: actions/checkout@v6
|
|
62
52
|
- name: Set up Ruby
|
|
63
53
|
uses: ruby/setup-ruby@v1
|
|
64
54
|
with:
|
|
65
55
|
ruby-version: "ruby" # latest-stable
|
|
66
56
|
bundler-cache: true
|
|
67
|
-
-
|
|
68
|
-
run: bundle exec rake rubocop
|
|
57
|
+
- run: bundle exec rubocop
|
|
69
58
|
features:
|
|
70
|
-
needs:
|
|
59
|
+
needs: spec-all
|
|
71
60
|
runs-on: ubuntu-latest
|
|
72
61
|
steps:
|
|
73
|
-
- uses: actions/checkout@
|
|
62
|
+
- uses: actions/checkout@v6
|
|
74
63
|
- name: Set up Ruby
|
|
75
64
|
uses: ruby/setup-ruby@v1
|
|
76
65
|
with:
|
data/.rubocop.yml
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
|
2
|
+
|
|
1
3
|
AllCops:
|
|
2
4
|
DisplayCopNames: true
|
|
3
5
|
DisplayStyleGuide: true
|
|
4
|
-
|
|
6
|
+
NewCops: disable
|
|
7
|
+
SuggestExtensions: false
|
|
8
|
+
TargetRubyVersion: 2.5
|
|
5
9
|
|
|
10
|
+
Layout/HeredocIndentation:
|
|
11
|
+
Enabled: false
|
|
12
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
|
13
|
+
EnforcedStyle: no_space
|
|
6
14
|
Lint/AmbiguousBlockAssociation:
|
|
7
|
-
Enabled:
|
|
8
|
-
|
|
15
|
+
Enabled: false
|
|
16
|
+
Lint/EmptyFile:
|
|
17
|
+
Exclude:
|
|
18
|
+
- "lib/capistrano.rb"
|
|
9
19
|
Metrics/BlockLength:
|
|
10
20
|
Exclude:
|
|
11
21
|
- "*.gemspec"
|
|
@@ -13,17 +23,12 @@ Metrics/BlockLength:
|
|
|
13
23
|
- "lib/**/*.rake"
|
|
14
24
|
Style/BarePercentLiterals:
|
|
15
25
|
EnforcedStyle: percent_q
|
|
16
|
-
Style/BracesAroundHashParameters:
|
|
17
|
-
Exclude:
|
|
18
|
-
- spec/integration/dsl_spec.rb
|
|
19
26
|
Style/ClassAndModuleChildren:
|
|
20
27
|
Enabled: false
|
|
21
28
|
Style/DoubleNegation:
|
|
22
29
|
Enabled: false
|
|
23
|
-
Style/
|
|
30
|
+
Style/FrozenStringLiteralComment:
|
|
24
31
|
Enabled: false
|
|
25
|
-
Style/SpaceAroundEqualsInParameterDefault:
|
|
26
|
-
EnforcedStyle: no_space
|
|
27
32
|
Style/StringLiterals:
|
|
28
33
|
EnforcedStyle: double_quotes
|
|
29
34
|
Style/TrivialAccessors:
|
|
@@ -34,6 +39,12 @@ Style/SingleLineBlockParams:
|
|
|
34
39
|
Enabled: false
|
|
35
40
|
Style/ModuleFunction:
|
|
36
41
|
Enabled: false
|
|
42
|
+
Style/FormatStringToken:
|
|
43
|
+
EnforcedStyle: template
|
|
44
|
+
Style/StringLiteralsInInterpolation:
|
|
45
|
+
Enabled: false
|
|
46
|
+
Style/StderrPuts:
|
|
47
|
+
Enabled: false
|
|
37
48
|
|
|
38
49
|
# Enable someday
|
|
39
50
|
Style/Documentation:
|
|
@@ -46,9 +57,9 @@ Metrics/CyclomaticComplexity:
|
|
|
46
57
|
Enabled: false
|
|
47
58
|
Metrics/MethodLength:
|
|
48
59
|
Enabled: false
|
|
49
|
-
|
|
60
|
+
Naming/PredicatePrefix:
|
|
50
61
|
Enabled: false
|
|
51
|
-
|
|
62
|
+
Layout/LineLength:
|
|
52
63
|
Enabled: false
|
|
53
64
|
Metrics/AbcSize:
|
|
54
65
|
Enabled: false
|
|
@@ -58,5 +69,5 @@ Metrics/ClassLength:
|
|
|
58
69
|
Enabled: false
|
|
59
70
|
Metrics/ModuleLength:
|
|
60
71
|
Enabled: false
|
|
61
|
-
|
|
72
|
+
Naming/AccessorMethodName:
|
|
62
73
|
Enabled: false
|
data/.rubocop_todo.yml
ADDED
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
# This configuration was generated by
|
|
2
|
+
# `rubocop --auto-gen-config`
|
|
3
|
+
# on 2025-11-29 04:19:34 UTC using RuboCop version 1.81.7.
|
|
4
|
+
# The point is for the user to remove these configuration records
|
|
5
|
+
# one by one as the offenses are removed from the code base.
|
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
+
|
|
9
|
+
# Offense count: 4
|
|
10
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
11
|
+
Layout/ClosingHeredocIndentation:
|
|
12
|
+
Exclude:
|
|
13
|
+
- "lib/capistrano/configuration/scm_resolver.rb"
|
|
14
|
+
- "lib/capistrano/immutable_task.rb"
|
|
15
|
+
|
|
16
|
+
# Offense count: 1
|
|
17
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
18
|
+
# Configuration parameters: AllowBorderComment, AllowMarginComment.
|
|
19
|
+
Layout/EmptyComment:
|
|
20
|
+
Exclude:
|
|
21
|
+
- "features/step_definitions/assertions.rb"
|
|
22
|
+
|
|
23
|
+
# Offense count: 18
|
|
24
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
25
|
+
Layout/EmptyLineAfterGuardClause:
|
|
26
|
+
Exclude:
|
|
27
|
+
- "features/support/remote_ssh_helpers.rb"
|
|
28
|
+
- "lib/capistrano/configuration/filter.rb"
|
|
29
|
+
- "lib/capistrano/configuration/scm_resolver.rb"
|
|
30
|
+
- "lib/capistrano/configuration/validated_variables.rb"
|
|
31
|
+
- "lib/capistrano/configuration/variables.rb"
|
|
32
|
+
- "lib/capistrano/doctor/gems_doctor.rb"
|
|
33
|
+
- "lib/capistrano/doctor/output_helpers.rb"
|
|
34
|
+
- "lib/capistrano/doctor/servers_doctor.rb"
|
|
35
|
+
- "lib/capistrano/dsl/task_enhancements.rb"
|
|
36
|
+
- "lib/capistrano/tasks/deploy.rake"
|
|
37
|
+
- "lib/capistrano/version_validator.rb"
|
|
38
|
+
|
|
39
|
+
# Offense count: 1
|
|
40
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
41
|
+
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
|
|
42
|
+
# AllowedMethods: alias_method, public, protected, private
|
|
43
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
|
44
|
+
Exclude:
|
|
45
|
+
- "lib/capistrano/configuration.rb"
|
|
46
|
+
|
|
47
|
+
# Offense count: 2
|
|
48
|
+
# Configuration parameters: AllowedMethods.
|
|
49
|
+
# AllowedMethods: enums
|
|
50
|
+
Lint/ConstantDefinitionInBlock:
|
|
51
|
+
Exclude:
|
|
52
|
+
- "spec/lib/capistrano/plugin_spec.rb"
|
|
53
|
+
|
|
54
|
+
# Offense count: 1
|
|
55
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
56
|
+
Lint/ElseLayout:
|
|
57
|
+
Exclude:
|
|
58
|
+
- "lib/capistrano/configuration/filter.rb"
|
|
59
|
+
|
|
60
|
+
# Offense count: 2
|
|
61
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
62
|
+
Lint/InterpolationCheck:
|
|
63
|
+
Exclude:
|
|
64
|
+
- "spec/lib/capistrano/dsl/paths_spec.rb"
|
|
65
|
+
- "spec/spec_helper.rb"
|
|
66
|
+
|
|
67
|
+
# Offense count: 1
|
|
68
|
+
# Configuration parameters: AllowedParentClasses.
|
|
69
|
+
Lint/MissingSuper:
|
|
70
|
+
Exclude:
|
|
71
|
+
- "lib/capistrano/configuration/validated_variables.rb"
|
|
72
|
+
|
|
73
|
+
# Offense count: 1
|
|
74
|
+
Lint/MixedRegexpCaptureTypes:
|
|
75
|
+
Exclude:
|
|
76
|
+
- "lib/capistrano/configuration/host_filter.rb"
|
|
77
|
+
|
|
78
|
+
# Offense count: 1
|
|
79
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
80
|
+
Lint/NonDeterministicRequireOrder:
|
|
81
|
+
Exclude:
|
|
82
|
+
- "spec/spec_helper.rb"
|
|
83
|
+
|
|
84
|
+
# Offense count: 1
|
|
85
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
86
|
+
Lint/ScriptPermission:
|
|
87
|
+
Exclude:
|
|
88
|
+
- "lib/Capfile"
|
|
89
|
+
|
|
90
|
+
# Offense count: 5
|
|
91
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
92
|
+
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
|
|
93
|
+
Naming/MethodParameterName:
|
|
94
|
+
Exclude:
|
|
95
|
+
- "lib/capistrano/application.rb"
|
|
96
|
+
- "lib/capistrano/dsl/task_enhancements.rb"
|
|
97
|
+
- "lib/capistrano/proc_helpers.rb"
|
|
98
|
+
- "spec/support/test_app.rb"
|
|
99
|
+
|
|
100
|
+
# Offense count: 2
|
|
101
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
102
|
+
# Configuration parameters: EnforcedStyle.
|
|
103
|
+
# SupportedStyles: separated, grouped
|
|
104
|
+
Style/AccessorGrouping:
|
|
105
|
+
Exclude:
|
|
106
|
+
- "lib/capistrano/doctor/output_helpers.rb"
|
|
107
|
+
|
|
108
|
+
# Offense count: 1
|
|
109
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
110
|
+
# Configuration parameters: Keywords, RequireColon.
|
|
111
|
+
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
|
|
112
|
+
Style/CommentAnnotation:
|
|
113
|
+
Exclude:
|
|
114
|
+
- "lib/capistrano/scm/git.rb"
|
|
115
|
+
|
|
116
|
+
# Offense count: 1
|
|
117
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
118
|
+
Style/EmptyLambdaParameter:
|
|
119
|
+
Exclude:
|
|
120
|
+
- "lib/capistrano/dsl/paths.rb"
|
|
121
|
+
|
|
122
|
+
# Offense count: 1
|
|
123
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
124
|
+
Style/Encoding:
|
|
125
|
+
Exclude:
|
|
126
|
+
- "capistrano.gemspec"
|
|
127
|
+
|
|
128
|
+
# Offense count: 17
|
|
129
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
130
|
+
Style/ExpandPathArguments:
|
|
131
|
+
Exclude:
|
|
132
|
+
- "capistrano.gemspec"
|
|
133
|
+
- "lib/capistrano/configuration/variables.rb"
|
|
134
|
+
- "lib/capistrano/console.rb"
|
|
135
|
+
- "lib/capistrano/deploy.rb"
|
|
136
|
+
- "lib/capistrano/doctor.rb"
|
|
137
|
+
- "lib/capistrano/framework.rb"
|
|
138
|
+
- "lib/capistrano/scm/git.rb"
|
|
139
|
+
- "lib/capistrano/scm/hg.rb"
|
|
140
|
+
- "lib/capistrano/scm/svn.rb"
|
|
141
|
+
- "lib/capistrano/tasks/install.rake"
|
|
142
|
+
- "spec/lib/capistrano/doctor/environment_doctor_spec.rb"
|
|
143
|
+
- "spec/lib/capistrano/doctor/gems_doctor_spec.rb"
|
|
144
|
+
- "spec/lib/capistrano/doctor/servers_doctor_spec.rb"
|
|
145
|
+
- "spec/lib/capistrano/doctor/variables_doctor_spec.rb"
|
|
146
|
+
- "spec/lib/capistrano/plugin_spec.rb"
|
|
147
|
+
|
|
148
|
+
# Offense count: 1
|
|
149
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
150
|
+
Style/ExplicitBlockArgument:
|
|
151
|
+
Exclude:
|
|
152
|
+
- "lib/capistrano/configuration/servers.rb"
|
|
153
|
+
|
|
154
|
+
# Offense count: 1
|
|
155
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
156
|
+
Style/GlobalStdStream:
|
|
157
|
+
Exclude:
|
|
158
|
+
- "spec/spec_helper.rb"
|
|
159
|
+
|
|
160
|
+
# Offense count: 10
|
|
161
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
162
|
+
# Configuration parameters: EnforcedStyle.
|
|
163
|
+
# SupportedStyles: braces, no_braces
|
|
164
|
+
Style/HashAsLastArrayItem:
|
|
165
|
+
Exclude:
|
|
166
|
+
- "spec/lib/capistrano/configuration/servers_spec.rb"
|
|
167
|
+
|
|
168
|
+
# Offense count: 2
|
|
169
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
170
|
+
# Configuration parameters: AllowedReceivers.
|
|
171
|
+
# AllowedReceivers: Thread.current
|
|
172
|
+
Style/HashEachMethods:
|
|
173
|
+
Exclude:
|
|
174
|
+
- "lib/capistrano/configuration/servers.rb"
|
|
175
|
+
- "lib/capistrano/tasks/deploy.rake"
|
|
176
|
+
|
|
177
|
+
# Offense count: 7
|
|
178
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
179
|
+
Style/IfUnlessModifier:
|
|
180
|
+
Exclude:
|
|
181
|
+
- "lib/capistrano/configuration.rb"
|
|
182
|
+
- "lib/capistrano/configuration/scm_resolver.rb"
|
|
183
|
+
- "lib/capistrano/i18n.rb"
|
|
184
|
+
- "lib/capistrano/tasks/deploy.rake"
|
|
185
|
+
|
|
186
|
+
# Offense count: 4
|
|
187
|
+
Style/MixinUsage:
|
|
188
|
+
Exclude:
|
|
189
|
+
- "lib/Capfile"
|
|
190
|
+
- "lib/capistrano/dsl.rb"
|
|
191
|
+
- "lib/capistrano/setup.rb"
|
|
192
|
+
- "spec/integration_spec_helper.rb"
|
|
193
|
+
|
|
194
|
+
# Offense count: 2
|
|
195
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
196
|
+
Style/RedundantBegin:
|
|
197
|
+
Exclude:
|
|
198
|
+
- "spec/lib/capistrano/application_spec.rb"
|
|
199
|
+
- "spec/spec_helper.rb"
|
|
200
|
+
|
|
201
|
+
# Offense count: 2
|
|
202
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
203
|
+
# Configuration parameters: SafeForConstants.
|
|
204
|
+
Style/RedundantFetchBlock:
|
|
205
|
+
Exclude:
|
|
206
|
+
- "spec/integration/dsl_spec.rb"
|
|
207
|
+
|
|
208
|
+
# Offense count: 1
|
|
209
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
210
|
+
Style/RedundantParentheses:
|
|
211
|
+
Exclude:
|
|
212
|
+
- "lib/capistrano/configuration/validated_variables.rb"
|
|
213
|
+
|
|
214
|
+
# Offense count: 2
|
|
215
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
216
|
+
Style/RedundantRegexpEscape:
|
|
217
|
+
Exclude:
|
|
218
|
+
- "lib/capistrano/defaults.rb"
|
|
219
|
+
|
|
220
|
+
# Offense count: 1
|
|
221
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
222
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
|
223
|
+
Style/RedundantReturn:
|
|
224
|
+
Exclude:
|
|
225
|
+
- "lib/capistrano/configuration/question.rb"
|
|
226
|
+
|
|
227
|
+
# Offense count: 2
|
|
228
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
229
|
+
# Configuration parameters: EnforcedStyle.
|
|
230
|
+
# SupportedStyles: implicit, explicit
|
|
231
|
+
Style/RescueStandardError:
|
|
232
|
+
Exclude:
|
|
233
|
+
- "features/support/remote_command_helpers.rb"
|
|
234
|
+
- "lib/capistrano/tasks/console.rake"
|
|
235
|
+
|
|
236
|
+
# Offense count: 3
|
|
237
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
238
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
|
239
|
+
# AllowedMethods: present?, blank?, presence, try, try!
|
|
240
|
+
Style/SafeNavigation:
|
|
241
|
+
Exclude:
|
|
242
|
+
- "lib/capistrano/configuration.rb"
|
|
243
|
+
- "lib/capistrano/doctor/variables_doctor.rb"
|
|
244
|
+
- "lib/capistrano/dsl.rb"
|
|
245
|
+
|
|
246
|
+
# Offense count: 1
|
|
247
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
248
|
+
# Configuration parameters: Mode.
|
|
249
|
+
Style/StringConcatenation:
|
|
250
|
+
Exclude:
|
|
251
|
+
- "spec/support/test_app.rb"
|
|
252
|
+
|
|
253
|
+
# Offense count: 1
|
|
254
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
255
|
+
Style/WhileUntilModifier:
|
|
256
|
+
Exclude:
|
|
257
|
+
- "lib/capistrano/configuration/variables.rb"
|
data/Gemfile
CHANGED
|
@@ -3,45 +3,7 @@ source "https://rubygems.org"
|
|
|
3
3
|
# Specify your gem's dependencies in capistrano.gemspec
|
|
4
4
|
gemspec
|
|
5
5
|
|
|
6
|
-
gem "
|
|
7
|
-
gem "
|
|
8
|
-
gem "rspec
|
|
9
|
-
|
|
10
|
-
group :cucumber do
|
|
11
|
-
# Latest versions of cucumber don't support Ruby < 2.1
|
|
12
|
-
# rubocop:disable Bundler/DuplicatedGem
|
|
13
|
-
if Gem::Requirement.new("< 2.1").satisfied_by?(Gem::Version.new(RUBY_VERSION))
|
|
14
|
-
gem "cucumber", "< 3.0.1"
|
|
15
|
-
else
|
|
16
|
-
gem "cucumber"
|
|
17
|
-
end
|
|
18
|
-
# rubocop:enable Bundler/DuplicatedGem
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
# Latest versions of net-ssh don't support Ruby < 2.2.6
|
|
22
|
-
if Gem::Requirement.new("< 2.2.6").satisfied_by?(Gem::Version.new(RUBY_VERSION))
|
|
23
|
-
gem "net-ssh", "< 5.0.0"
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
# Latest versions of public_suffix don't support Ruby < 2.1
|
|
27
|
-
if Gem::Requirement.new("< 2.1").satisfied_by?(Gem::Version.new(RUBY_VERSION))
|
|
28
|
-
gem "public_suffix", "< 3.0.0"
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
# Latest versions of i18n don't support Ruby < 2.4
|
|
32
|
-
if Gem::Requirement.new("< 2.4").satisfied_by?(Gem::Version.new(RUBY_VERSION))
|
|
33
|
-
gem "i18n", "< 1.3.0"
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
# Latest versions of rake don't support Ruby < 2.2
|
|
37
|
-
if Gem::Requirement.new("< 2.2").satisfied_by?(Gem::Version.new(RUBY_VERSION))
|
|
38
|
-
gem "rake", "< 13.0.0"
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# We only run rubocop and its dependencies on a new-ish ruby; no need to install them otherwise
|
|
42
|
-
if Gem::Requirement.new("> 2.4").satisfied_by?(Gem::Version.new(RUBY_VERSION))
|
|
43
|
-
gem "base64"
|
|
44
|
-
gem "psych", "< 4" # Ensures rubocop works on Ruby 3.1
|
|
45
|
-
gem "racc"
|
|
46
|
-
gem "rubocop", "0.48.1"
|
|
47
|
-
end
|
|
6
|
+
gem "cucumber", "~> 10.1"
|
|
7
|
+
gem "mocha", "~> 2.8"
|
|
8
|
+
gem "rspec", "~> 3.13"
|
|
9
|
+
gem "rubocop", "1.81.7"
|
data/README.md
CHANGED
|
@@ -96,7 +96,7 @@ Capistrano 3 expects a POSIX shell like Bash or Sh. Shells like tcsh, csh, and s
|
|
|
96
96
|
|
|
97
97
|
### Requirements
|
|
98
98
|
|
|
99
|
-
* Ruby version 2.
|
|
99
|
+
* Ruby version 2.5 or higher on your local machine (MRI or Rubinius)
|
|
100
100
|
* A project that uses source control (Git, Mercurial, and Subversion support is built-in)
|
|
101
101
|
* The SCM binaries (e.g. `git`, `hg`) needed to check out your project must be installed on the server(s) you are deploying to
|
|
102
102
|
* [Bundler](http://bundler.io), along with a Gemfile for your project, are recommended
|
data/Rakefile
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
require "bundler/gem_tasks"
|
|
2
|
-
require "cucumber/rake/task"
|
|
3
2
|
require "rspec/core/rake_task"
|
|
4
3
|
|
|
5
4
|
begin
|
|
@@ -12,7 +11,12 @@ rescue LoadError
|
|
|
12
11
|
end
|
|
13
12
|
|
|
14
13
|
RSpec::Core::RakeTask.new
|
|
15
|
-
|
|
14
|
+
|
|
15
|
+
begin
|
|
16
|
+
require "cucumber/rake/task"
|
|
17
|
+
Cucumber::Rake::Task.new(:features)
|
|
18
|
+
rescue LoadError # rubocop:disable Lint/SuppressedException
|
|
19
|
+
end
|
|
16
20
|
|
|
17
21
|
Rake::Task["release"].enhance do
|
|
18
22
|
puts "Don't forget to publish the release on GitHub!"
|
data/capistrano.gemspec
CHANGED
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |gem|
|
|
|
26
26
|
|
|
27
27
|
gem.licenses = ["MIT"]
|
|
28
28
|
|
|
29
|
-
gem.required_ruby_version = ">= 2.
|
|
29
|
+
gem.required_ruby_version = ">= 2.5"
|
|
30
30
|
gem.add_dependency "airbrussh", ">= 1.0.0"
|
|
31
31
|
gem.add_dependency "i18n"
|
|
32
32
|
gem.add_dependency "rake", ">= 10.0.0"
|
|
@@ -112,7 +112,6 @@ module Capistrano
|
|
|
112
112
|
@properties.keys
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
# rubocop:disable Style/MethodMissing
|
|
116
115
|
def method_missing(key, value=nil)
|
|
117
116
|
if value
|
|
118
117
|
set(lvalue(key), value)
|
|
@@ -120,7 +119,6 @@ module Capistrano
|
|
|
120
119
|
fetch(key)
|
|
121
120
|
end
|
|
122
121
|
end
|
|
123
|
-
# rubocop:enable Style/MethodMissing
|
|
124
122
|
|
|
125
123
|
def to_h
|
|
126
124
|
@properties
|
|
@@ -49,7 +49,7 @@ module Capistrano
|
|
|
49
49
|
if value && value.respond_to?(:any?)
|
|
50
50
|
begin
|
|
51
51
|
return value.any?
|
|
52
|
-
rescue ArgumentError
|
|
52
|
+
rescue ArgumentError
|
|
53
53
|
# Gracefully ignore values whose `any?` method doesn't accept 0 args
|
|
54
54
|
end
|
|
55
55
|
end
|
data/lib/capistrano/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.20.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom Clements
|
|
8
8
|
- Lee Hambley
|
|
9
|
-
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: airbrussh
|
|
@@ -82,6 +81,7 @@ files:
|
|
|
82
81
|
- ".docker/ssh_key_rsa"
|
|
83
82
|
- ".docker/ssh_key_rsa.pub"
|
|
84
83
|
- ".docker/ubuntu_setup.sh"
|
|
84
|
+
- ".github/dependabot.yml"
|
|
85
85
|
- ".github/issue_template.md"
|
|
86
86
|
- ".github/pull_request_template.md"
|
|
87
87
|
- ".github/release-drafter.yml"
|
|
@@ -89,6 +89,7 @@ files:
|
|
|
89
89
|
- ".github/workflows/release-drafter.yml"
|
|
90
90
|
- ".gitignore"
|
|
91
91
|
- ".rubocop.yml"
|
|
92
|
+
- ".rubocop_todo.yml"
|
|
92
93
|
- CHANGELOG.md
|
|
93
94
|
- CONTRIBUTING.md
|
|
94
95
|
- DEVELOPMENT.md
|
|
@@ -117,6 +118,7 @@ files:
|
|
|
117
118
|
- features/support/env.rb
|
|
118
119
|
- features/support/remote_command_helpers.rb
|
|
119
120
|
- features/support/remote_ssh_helpers.rb
|
|
121
|
+
- gemfiles/legacy.gemfile
|
|
120
122
|
- lib/Capfile
|
|
121
123
|
- lib/capistrano.rb
|
|
122
124
|
- lib/capistrano/all.rb
|
|
@@ -223,7 +225,6 @@ metadata:
|
|
|
223
225
|
source_code_uri: https://github.com/capistrano/capistrano
|
|
224
226
|
homepage_uri: https://capistranorb.com/
|
|
225
227
|
documentation_uri: https://capistranorb.com/
|
|
226
|
-
post_install_message:
|
|
227
228
|
rdoc_options: []
|
|
228
229
|
require_paths:
|
|
229
230
|
- lib
|
|
@@ -231,15 +232,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
231
232
|
requirements:
|
|
232
233
|
- - ">="
|
|
233
234
|
- !ruby/object:Gem::Version
|
|
234
|
-
version: '2.
|
|
235
|
+
version: '2.5'
|
|
235
236
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
236
237
|
requirements:
|
|
237
238
|
- - ">="
|
|
238
239
|
- !ruby/object:Gem::Version
|
|
239
240
|
version: '0'
|
|
240
241
|
requirements: []
|
|
241
|
-
rubygems_version: 3.
|
|
242
|
-
signing_key:
|
|
242
|
+
rubygems_version: 3.7.2
|
|
243
243
|
specification_version: 4
|
|
244
244
|
summary: Capistrano - Welcome to easy deployment with Ruby over SSH
|
|
245
245
|
test_files:
|