cloudwatch_scheduler 0.1.2 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/ci.yml +49 -0
- data/.gitignore +7 -5
- data/.rubocop.yml +328 -66
- data/.travis.yml +5 -3
- data/Appraisals +7 -4
- data/Gemfile +5 -2
- data/Guardfile +2 -0
- data/README.md +43 -2
- data/Rakefile +3 -1
- data/cloudwatch_scheduler.gemspec +16 -11
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/{rails_5.0.gemfile → rails_5.2.gemfile} +5 -3
- data/gemfiles/{rails_4.2.gemfile → rails_6.0.gemfile} +5 -3
- data/lib/cloudwatch_scheduler.rb +1 -3
- data/lib/cloudwatch_scheduler/configuration.rb +5 -4
- data/lib/cloudwatch_scheduler/engine.rb +4 -0
- data/lib/cloudwatch_scheduler/job.rb +2 -1
- data/lib/cloudwatch_scheduler/provisioner.rb +42 -38
- data/lib/cloudwatch_scheduler/task.rb +11 -9
- data/lib/cloudwatch_scheduler/tasks/setup.rake +2 -4
- data/lib/cloudwatch_scheduler/version.rb +3 -1
- metadata +51 -24
- data/gemfiles/rails_4.2.gemfile.lock +0 -209
- data/gemfiles/rails_5.0.gemfile.lock +0 -213
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 482ee591648526177d8b1f26193b4406c035f407535ff1fb069e736d8bc27ab0
|
4
|
+
data.tar.gz: 4a7dab7fd8518547edccda964038952f03280b49886f3f458105a358a518a167
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35c72f33f2e9b723d27f81a1786895cb2b711520c22ddca1a06ac7c76421fb7483b541365ac6682281027a6e0d98adbf1a955abf813ca19537d45178a299ed77
|
7
|
+
data.tar.gz: cfe856484ef05f3f9402a7b73d9ef59542cebbd3219f97cf5002a157f35d3068e166e0f2a5de0b5a5ef51fbffb09502c857e003eee4ea171b875c828d63a983f
|
@@ -0,0 +1,49 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
- push
|
5
|
+
- pull_request
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
rspec:
|
9
|
+
name: RSpec
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@master
|
14
|
+
- name: Set up Ruby
|
15
|
+
uses: actions/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: 2.7
|
18
|
+
|
19
|
+
- name: Bundle
|
20
|
+
run: |
|
21
|
+
bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
|
22
|
+
bundle exec appraisal install
|
23
|
+
|
24
|
+
- name: RSpec
|
25
|
+
run: |
|
26
|
+
bundle exec appraisal rspec
|
27
|
+
|
28
|
+
# build:
|
29
|
+
# name: Build + Publish
|
30
|
+
# runs-on: ubuntu-latest
|
31
|
+
# needs: rspec
|
32
|
+
|
33
|
+
# steps:
|
34
|
+
# - uses: actions/checkout@master
|
35
|
+
# - name: Set up Ruby 2.6
|
36
|
+
# uses: actions/setup-ruby@v1
|
37
|
+
# with:
|
38
|
+
# version: 2.6.x
|
39
|
+
|
40
|
+
# - name: Publish to RubyGems
|
41
|
+
# run: |
|
42
|
+
# mkdir -p $HOME/.gem
|
43
|
+
# touch $HOME/.gem/credentials
|
44
|
+
# chmod 0600 $HOME/.gem/credentials
|
45
|
+
# printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
46
|
+
# gem build *.gemspec
|
47
|
+
# gem push *.gem
|
48
|
+
# env:
|
49
|
+
# GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
data/.gitignore
CHANGED
@@ -8,8 +8,10 @@
|
|
8
8
|
/spec/reports/
|
9
9
|
/tmp/
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
gemfiles/*.lock
|
12
|
+
|
13
|
+
spec/dummy-*/db/*.sqlite3
|
14
|
+
spec/dummy-*/db/*.sqlite3-journal
|
15
|
+
spec/dummy-*/log/*.log
|
16
|
+
spec/dummy-*/tmp/
|
17
|
+
spec/dummy-*/.sass-cache
|
data/.rubocop.yml
CHANGED
@@ -1,89 +1,351 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
inherit_from:
|
2
|
+
- https://relaxed.ruby.style/rubocop.yml
|
3
|
+
|
4
|
+
require:
|
5
|
+
- rubocop-rspec
|
3
6
|
|
4
7
|
AllCops:
|
5
8
|
DisplayCopNames: true
|
6
9
|
DisplayStyleGuide: true
|
10
|
+
TargetRubyVersion: 2.7
|
7
11
|
|
8
|
-
Include:
|
9
|
-
- "**/Rakefile"
|
10
|
-
- "**/config.ru"
|
11
12
|
Exclude:
|
12
13
|
- "vendor/**/*"
|
13
14
|
- "spec/fixtures/**/*"
|
14
15
|
- "bin/**/*"
|
15
16
|
- "script/**/*"
|
16
|
-
|
17
|
-
|
18
|
-
|
17
|
+
- "node_modules/**/*"
|
18
|
+
- "public/**/*"
|
19
|
+
- "tmp/**/*"
|
20
|
+
- "work/**/*"
|
21
|
+
|
22
|
+
Layout:
|
23
|
+
Severity: error
|
24
|
+
Lint:
|
25
|
+
Severity: error
|
26
|
+
|
27
|
+
Layout/HashAlignment:
|
28
|
+
EnforcedHashRocketStyle: table
|
29
|
+
EnforcedColonStyle: table
|
30
|
+
Layout/LineLength:
|
31
|
+
Enabled: true
|
32
|
+
Max: 140
|
33
|
+
Exclude:
|
34
|
+
- db/migrate/*.rb
|
35
|
+
Lint/AmbiguousBlockAssociation:
|
36
|
+
Exclude:
|
37
|
+
- "spec/**/*" # `expect { }.to change { }` is fine
|
38
|
+
Lint/ShadowingOuterLocalVariable:
|
39
|
+
# Shadowing outer local variables with block parameters is often useful to
|
40
|
+
# not reinvent a new name for the same thing, it highlights the relation
|
41
|
+
# between the outer variable and the parameter. The cases where it's actually
|
42
|
+
# confusing are rare, and usually bad for other reasons already, for example
|
43
|
+
# because the method is too long.
|
19
44
|
Enabled: false
|
20
|
-
|
45
|
+
Metrics/BlockLength:
|
46
|
+
Exclude:
|
47
|
+
- config/routes.rb
|
48
|
+
- db/migrate/*.rb
|
49
|
+
- lib/tasks/**/*
|
50
|
+
- Gemfile
|
51
|
+
- Guardfile
|
52
|
+
- shared_context
|
53
|
+
- feature
|
54
|
+
- app/admin/*
|
55
|
+
IgnoredMethods:
|
56
|
+
- configure
|
57
|
+
- context
|
58
|
+
- define
|
59
|
+
- describe
|
60
|
+
- factory
|
61
|
+
- it
|
62
|
+
- namespace
|
63
|
+
- specify
|
64
|
+
- task
|
65
|
+
- shared_examples_for
|
66
|
+
- shared_context
|
67
|
+
- feature
|
68
|
+
- define_type
|
69
|
+
Metrics/ClassLength:
|
70
|
+
Exclude:
|
71
|
+
- "spec/**/*_spec.rb"
|
72
|
+
Naming/RescuedExceptionsVariableName:
|
73
|
+
PreferredName: ex
|
74
|
+
Naming/FileName:
|
21
75
|
Enabled: false
|
22
|
-
|
23
|
-
|
24
|
-
Style/AndOr:
|
25
|
-
EnforcedStyle: conditionals
|
26
|
-
Style/CaseIndentation:
|
27
|
-
IndentOneStep: true
|
28
|
-
Style/Documentation:
|
76
|
+
Naming/AccessorMethodName:
|
77
|
+
# Avoid writing accessors in Ruby, but this catches too many false positives
|
29
78
|
Enabled: false
|
30
|
-
|
79
|
+
Naming/MethodParameterName:
|
31
80
|
Enabled: false
|
32
|
-
Style/
|
33
|
-
|
34
|
-
|
81
|
+
Style/EmptyLiteral:
|
82
|
+
Enabled: false
|
83
|
+
Style/FormatStringToken:
|
84
|
+
Enabled: false
|
85
|
+
Style/FrozenStringLiteralComment:
|
86
|
+
Enabled: true
|
87
|
+
SafeAutoCorrect: true
|
88
|
+
Style/HashEachMethods:
|
89
|
+
Enabled: true
|
35
90
|
Style/HashSyntax:
|
36
91
|
Exclude:
|
37
|
-
-
|
38
|
-
Style/
|
39
|
-
|
92
|
+
- lib/tasks/**/*.rake
|
93
|
+
Style/HashTransformKeys:
|
94
|
+
Enabled: true
|
95
|
+
Style/HashTransformValues:
|
96
|
+
Enabled: true
|
97
|
+
Style/MethodCallWithoutArgsParentheses:
|
98
|
+
Enabled: true
|
40
99
|
Style/NumericLiterals:
|
41
100
|
Enabled: false
|
42
|
-
Style/
|
43
|
-
|
44
|
-
"%w": "[]"
|
45
|
-
"%W": "[]"
|
46
|
-
"%i": "[]"
|
47
|
-
"%I": "[]"
|
48
|
-
"%r": "()"
|
49
|
-
Style/SignalException:
|
50
|
-
EnforcedStyle: semantic
|
51
|
-
Style/SingleLineBlockParams:
|
52
|
-
Enabled: false
|
101
|
+
Style/StringChars:
|
102
|
+
Enabled: true
|
53
103
|
Style/StringLiterals:
|
104
|
+
Enabled: true
|
54
105
|
EnforcedStyle: double_quotes
|
55
|
-
Style/
|
56
|
-
|
57
|
-
- "spec/**/*.rb"
|
106
|
+
Style/SymbolArray:
|
107
|
+
MinSize: 4
|
58
108
|
|
109
|
+
# 0.81
|
110
|
+
Lint/RaiseException:
|
111
|
+
Enabled: true
|
112
|
+
Lint/StructNewOverride:
|
113
|
+
Enabled: false
|
59
114
|
|
60
|
-
#
|
61
|
-
|
62
|
-
|
63
|
-
|
115
|
+
# 0.82
|
116
|
+
Layout/SpaceAroundMethodCallOperator:
|
117
|
+
Enabled: true
|
118
|
+
Style/ExponentialNotation:
|
119
|
+
Enabled: true
|
64
120
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
Style/
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
Lint/
|
87
|
-
|
88
|
-
|
89
|
-
|
121
|
+
# 0.83
|
122
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
123
|
+
Enabled: true
|
124
|
+
Style/SlicingWithRange:
|
125
|
+
Enabled: true
|
126
|
+
|
127
|
+
# 0.84
|
128
|
+
Lint/DeprecatedOpenSSLConstant:
|
129
|
+
Enabled: true
|
130
|
+
|
131
|
+
# 0.85
|
132
|
+
Lint/MixedRegexpCaptureTypes:
|
133
|
+
Enabled: true
|
134
|
+
Style/RedundantRegexpCharacterClass:
|
135
|
+
Enabled: true
|
136
|
+
Style/RedundantRegexpEscape:
|
137
|
+
Enabled: true
|
138
|
+
|
139
|
+
# 0.86
|
140
|
+
Style/RedundantFetchBlock:
|
141
|
+
Enabled: true
|
142
|
+
Lint/ConstantResolution:
|
143
|
+
Enabled: false
|
144
|
+
|
145
|
+
# 0.87
|
146
|
+
Style/AccessorGrouping:
|
147
|
+
Enabled: true
|
148
|
+
Style/BisectedAttrAccessor:
|
149
|
+
Enabled: true
|
150
|
+
Style/RedundantAssignment:
|
151
|
+
Enabled: true
|
152
|
+
|
153
|
+
# 0.88
|
154
|
+
Lint/DuplicateElsifCondition:
|
155
|
+
Enabled: true
|
156
|
+
Style/ArrayCoercion:
|
157
|
+
Enabled: true
|
158
|
+
Style/CaseLikeIf:
|
159
|
+
Enabled: true
|
160
|
+
Style/HashAsLastArrayItem:
|
161
|
+
Enabled: true
|
162
|
+
Style/HashLikeCase:
|
163
|
+
Enabled: true
|
164
|
+
Style/RedundantFileExtensionInRequire:
|
165
|
+
Enabled: true
|
166
|
+
|
167
|
+
# 0.89
|
168
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
169
|
+
Enabled: true
|
170
|
+
Lint/DuplicateRescueException:
|
171
|
+
Enabled: true
|
172
|
+
Lint/EmptyConditionalBody:
|
173
|
+
Enabled: true
|
174
|
+
Lint/FloatComparison:
|
175
|
+
Enabled: true
|
176
|
+
Lint/MissingSuper:
|
177
|
+
Enabled: false
|
178
|
+
Lint/OutOfRangeRegexpRef:
|
179
|
+
Enabled: true
|
180
|
+
Lint/SelfAssignment:
|
181
|
+
Enabled: true
|
182
|
+
Lint/TopLevelReturnWithArgument:
|
183
|
+
Enabled: true
|
184
|
+
Lint/UnreachableLoop:
|
185
|
+
Enabled: true
|
186
|
+
Style/ExplicitBlockArgument:
|
187
|
+
Enabled: true
|
188
|
+
Style/GlobalStdStream:
|
189
|
+
Enabled: false
|
190
|
+
Style/OptionalBooleanParameter:
|
191
|
+
Enabled: false
|
192
|
+
Style/SingleArgumentDig:
|
193
|
+
Enabled: false
|
194
|
+
Style/SoleNestedConditional:
|
195
|
+
Enabled: true
|
196
|
+
Style/StringConcatenation:
|
197
|
+
# `"a" + var + "b"` should be interpolated, but `"a" + var` or `var + "b"` is
|
198
|
+
# fine concatted
|
199
|
+
Enabled: false
|
200
|
+
|
201
|
+
# 0.90
|
202
|
+
Lint/DuplicateRequire:
|
203
|
+
Enabled: true
|
204
|
+
Lint/EmptyFile:
|
205
|
+
Enabled: true
|
206
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
207
|
+
Enabled: true
|
208
|
+
Lint/UselessMethodDefinition:
|
209
|
+
Enabled: true
|
210
|
+
Style/CombinableLoops:
|
211
|
+
Enabled: true
|
212
|
+
Style/KeywordParametersOrder:
|
213
|
+
Enabled: true
|
214
|
+
Style/RedundantSelfAssignment:
|
215
|
+
Enabled: true
|
216
|
+
|
217
|
+
# 0.91
|
218
|
+
Layout/BeginEndAlignment:
|
219
|
+
Enabled: true
|
220
|
+
Lint/ConstantDefinitionInBlock:
|
221
|
+
Enabled: false
|
222
|
+
Lint/IdentityComparison:
|
223
|
+
Enabled: true
|
224
|
+
Lint/UselessTimes:
|
225
|
+
Enabled: true
|
226
|
+
|
227
|
+
# 0.93
|
228
|
+
Lint/HashCompareByIdentity:
|
229
|
+
Enabled: true
|
230
|
+
Lint/RedundantSafeNavigation:
|
231
|
+
Enabled: true
|
232
|
+
Style/ClassEqualityComparison:
|
233
|
+
Enabled: true
|
234
|
+
|
235
|
+
# 1.1
|
236
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
237
|
+
Enabled: true
|
238
|
+
Lint/EmptyBlock:
|
239
|
+
Enabled: false
|
240
|
+
Lint/ToEnumArguments:
|
241
|
+
Enabled: true
|
242
|
+
Lint/UnmodifiedReduceAccumulator:
|
243
|
+
Enabled: true
|
244
|
+
Style/ArgumentsForwarding:
|
245
|
+
Enabled: true
|
246
|
+
Style/SwapValues:
|
247
|
+
Enabled: true
|
248
|
+
Style/DocumentDynamicEvalDefinition:
|
249
|
+
Enabled: false
|
250
|
+
|
251
|
+
#1.2
|
252
|
+
Lint/NoReturnInBeginEndBlocks:
|
253
|
+
Enabled: false
|
254
|
+
Style/CollectionCompact:
|
255
|
+
Enabled: true
|
256
|
+
Style/NegatedIfElseCondition:
|
257
|
+
Enabled: true
|
258
|
+
|
259
|
+
# 1.3
|
260
|
+
Lint/DuplicateBranch:
|
261
|
+
Enabled: true
|
262
|
+
Lint/EmptyClass:
|
263
|
+
Enabled: true
|
264
|
+
Style/NilLambda:
|
265
|
+
Enabled: true
|
266
|
+
|
267
|
+
# 1.4
|
268
|
+
Style/RedundantArgument:
|
269
|
+
Enabled: false # Better to be explicit
|
270
|
+
|
271
|
+
# 1.5
|
272
|
+
Lint/UnexpectedBlockArity:
|
273
|
+
Enabled: true
|
274
|
+
|
275
|
+
# 1.7
|
276
|
+
Layout/SpaceBeforeBrackets:
|
277
|
+
Enabled: false #spaces are sometimes necessary
|
278
|
+
Lint/AmbiguousAssignment:
|
279
|
+
Enabled: true
|
280
|
+
Style/HashExcept:
|
281
|
+
Enabled: true
|
282
|
+
|
283
|
+
# 1.8
|
284
|
+
Lint/DeprecatedConstants:
|
285
|
+
Enabled: true
|
286
|
+
Lint/LambdaWithoutLiteralBlock:
|
287
|
+
Enabled: true
|
288
|
+
Lint/RedundantDirGlobSort:
|
289
|
+
Enabled: true
|
290
|
+
Style/EndlessMethod:
|
291
|
+
Enabled: true
|
292
|
+
|
293
|
+
# 1.9
|
294
|
+
|
295
|
+
Lint/NumberedParameterAssignment:
|
296
|
+
Enabled: true
|
297
|
+
Lint/OrAssignmentToConstant:
|
298
|
+
Enabled: true
|
299
|
+
Lint/TripleQuotes:
|
300
|
+
Enabled: true
|
301
|
+
Style/IfWithBooleanLiteralBranches:
|
302
|
+
Enabled: true
|
303
|
+
Lint/SymbolConversion:
|
304
|
+
Enabled: true
|
305
|
+
|
306
|
+
# 1.10
|
307
|
+
Gemspec/DateAssignment:
|
308
|
+
Enabled: true
|
309
|
+
Style/HashConversion:
|
310
|
+
Enabled: true
|
311
|
+
|
312
|
+
|
313
|
+
# Rspec
|
314
|
+
RSpec/Capybara/FeatureMethods:
|
315
|
+
Enabled: false
|
316
|
+
RSpec/ContextWording:
|
317
|
+
Enabled: false
|
318
|
+
RSpec/DescribeClass:
|
319
|
+
Enabled: false
|
320
|
+
RSpec/DescribedClass:
|
321
|
+
Enabled: false
|
322
|
+
RSpec/ExampleLength:
|
323
|
+
Max: 10
|
324
|
+
RSpec/ExampleWording:
|
325
|
+
Enabled: false
|
326
|
+
RSpec/ExpectChange:
|
327
|
+
EnforcedStyle: block
|
328
|
+
RSpec/Focus:
|
329
|
+
Severity: error
|
330
|
+
RSpec/ImplicitExpect:
|
331
|
+
Enabled: false
|
332
|
+
RSpec/LeadingSubject:
|
333
|
+
Enabled: false
|
334
|
+
RSpec/MessageSpies:
|
335
|
+
Enabled: false
|
336
|
+
RSpec/MultipleExpectations:
|
337
|
+
Max: 4
|
338
|
+
RSpec/NestedGroups:
|
339
|
+
Max: 4
|
340
|
+
RSpec/NotToNot:
|
341
|
+
Enabled: false
|
342
|
+
RSpec/ExpectInHook:
|
343
|
+
Enabled: false
|
344
|
+
RSpec/LetSetup:
|
345
|
+
Enabled: false
|
346
|
+
RSpec/MultipleMemoizedHelpers:
|
347
|
+
Enabled: false
|
348
|
+
|
349
|
+
# 1.44
|
350
|
+
RSpec/StubbedMock:
|
351
|
+
Enabled: true
|