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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2cbcaf28328092dbc3e2d1b88a268612e72ac2fe
4
- data.tar.gz: c89ea8f2f5f71be9e597df3fbb6e69dc965ad0d1
2
+ SHA256:
3
+ metadata.gz: 482ee591648526177d8b1f26193b4406c035f407535ff1fb069e736d8bc27ab0
4
+ data.tar.gz: 4a7dab7fd8518547edccda964038952f03280b49886f3f458105a358a518a167
5
5
  SHA512:
6
- metadata.gz: 76d9ee1fe844d6f5a09af6cf700913178061d6a20057bb3184c36e4eb75dacc846f73f5db914b65d76a4a591062c8677cebdc8d1d600488912fb87a2c9402f94
7
- data.tar.gz: 75826ef5d6ee151f25ebda465992f86050d191166fd8a3be25ae1754ef30f40a99e03a05821109e33d7bb1788f1d6cdcac8f964fa0714625895b8178125572f2
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
- test/dummy-*/db/*.sqlite3
12
- test/dummy-*/db/*.sqlite3-journal
13
- test/dummy-*/log/*.log
14
- test/dummy-*/tmp/
15
- test/dummy-*/.sass-cache
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
- Rails:
2
- Enabled: true
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
- Metrics/LineLength:
17
- Max: 120
18
- Rails/Date:
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
- Rails/TimeZone:
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
- AllCops:
23
- TargetRubyVersion: 2.3
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
- Style/EachWithObject:
79
+ Naming/MethodParameterName:
31
80
  Enabled: false
32
- Style/ExtraSpacing:
33
- Exclude:
34
- - "config/routes.rb"
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
- - "lib/tasks/**/*"
38
- Style/MultilineOperationIndentation:
39
- EnforcedStyle: indented
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/PercentLiteralDelimiters:
43
- PreferredDelimiters:
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/MultilineMethodCallIndentation:
56
- Exclude:
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
- # Rubocop's global exclude seems to fail to exclude the bin/ dir, so set all
61
- # the cops that are failing manually, since most of these files are
62
- # auto-generated anyways. Also, if the rules also appear above, we need to copy
63
- # the same attrs, because YAML won't merge, only overwrite.
115
+ # 0.82
116
+ Layout/SpaceAroundMethodCallOperator:
117
+ Enabled: true
118
+ Style/ExponentialNotation:
119
+ Enabled: true
64
120
 
65
- Style/StringLiterals:
66
- EnforcedStyle: double_quotes
67
- Exclude:
68
- - "bin/**/*"
69
- Style/FrozenStringLiteralComment:
70
- Exclude:
71
- - "bin/**/*"
72
- Style/LeadingCommentSpace:
73
- Exclude:
74
- - "bin/**/*"
75
- Style/SpaceInsideParens:
76
- Exclude:
77
- - "bin/**/*"
78
- Style/AlignParameters:
79
- Exclude:
80
- - "bin/**/*"
81
- Style/ExtraSpacing:
82
- Exclude:
83
- - "bin/**/*"
84
- Exclude:
85
- - "config/routes.rb"
86
- Lint/PercentStringArray:
87
- Exclude:
88
- # SecureHeaders needs the single quotes in `%w[https: 'self']`
89
- - config/initializers/secure_headers.rb
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