trollolo 0.0.10 → 0.0.11
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/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +635 -0
- data/.travis.yml +3 -1
- data/CHANGELOG.md +7 -0
- data/CONTRIBUTING.md +29 -3
- data/Gemfile +1 -0
- data/lib/burndown_chart.rb +4 -2
- data/lib/card.rb +3 -5
- data/lib/cli.rb +5 -3
- data/lib/scrum/prioritizer.rb +1 -1
- data/lib/scrum_board.rb +10 -17
- data/lib/settings.rb +1 -1
- data/lib/version.rb +1 -1
- data/spec/integration/command_line_spec.rb +3 -3
- data/spec/integration/wrapper/credentials_input_wrapper +4 -4
- data/spec/integration/wrapper/empty_config_trollolo_wrapper +1 -1
- data/spec/integration/wrapper/trollolo_wrapper +2 -2
- data/spec/unit/backup_spec.rb +1 -1
- data/spec/unit/burndown_chart_spec.rb +34 -14
- data/spec/unit/cli_spec.rb +2 -2
- data/spec/unit/settings_spec.rb +3 -3
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c81c5e55feaec3e0be0ae73576597ab84a310037
|
|
4
|
+
data.tar.gz: 502a1150ba391df1bba717877667265cb986cfde
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8e73f18474d9cbcd72db9da626c031e29871a363c9d2d81d8be643662e1c402644ecb8471bde6a663d74d149b2db24a37d6dd010e9ad502f246cdaaa7d12d4f
|
|
7
|
+
data.tar.gz: d8c6391a08fe5580948940acfa577df331684985219fdb02deec3cd45e2643b32f92a6b599b75720c6ce1f0ab62d7cdd7023baf5dcd154a343728aafca8aa290
|
data/.rubocop.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
data/.rubocop_todo.yml
ADDED
|
@@ -0,0 +1,635 @@
|
|
|
1
|
+
# This configuration was generated by
|
|
2
|
+
# `rubocop --auto-gen-config`
|
|
3
|
+
# on 2017-09-10 17:36:28 +0200 using RuboCop version 0.49.1.
|
|
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: 6
|
|
10
|
+
# Cop supports --auto-correct.
|
|
11
|
+
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
|
12
|
+
# Include: **/Gemfile, **/gems.rb
|
|
13
|
+
Bundler/OrderedGems:
|
|
14
|
+
Exclude:
|
|
15
|
+
- 'Gemfile'
|
|
16
|
+
|
|
17
|
+
# Offense count: 9
|
|
18
|
+
# Cop supports --auto-correct.
|
|
19
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
20
|
+
# SupportedStyles: leading, trailing
|
|
21
|
+
Layout/DotPosition:
|
|
22
|
+
Exclude:
|
|
23
|
+
- 'spec/integration/create_burndown_spec.rb'
|
|
24
|
+
- 'spec/unit/trello_wrapper_spec.rb'
|
|
25
|
+
|
|
26
|
+
# Offense count: 1
|
|
27
|
+
# Cop supports --auto-correct.
|
|
28
|
+
Layout/EmptyLineAfterMagicComment:
|
|
29
|
+
Exclude:
|
|
30
|
+
- 'trollolo.gemspec'
|
|
31
|
+
|
|
32
|
+
# Offense count: 5
|
|
33
|
+
# Cop supports --auto-correct.
|
|
34
|
+
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
|
35
|
+
Layout/EmptyLineBetweenDefs:
|
|
36
|
+
Exclude:
|
|
37
|
+
- 'lib/burndown_chart.rb'
|
|
38
|
+
- 'lib/scrum_board.rb'
|
|
39
|
+
|
|
40
|
+
# Offense count: 6
|
|
41
|
+
# Cop supports --auto-correct.
|
|
42
|
+
Layout/EmptyLines:
|
|
43
|
+
Exclude:
|
|
44
|
+
- 'lib/burndown_chart.rb'
|
|
45
|
+
- 'lib/scrum_board.rb'
|
|
46
|
+
- 'spec/unit/cli_spec.rb'
|
|
47
|
+
|
|
48
|
+
# Offense count: 7
|
|
49
|
+
# Cop supports --auto-correct.
|
|
50
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
51
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
|
52
|
+
Layout/EmptyLinesAroundBlockBody:
|
|
53
|
+
Exclude:
|
|
54
|
+
- 'spec/integration/command_line_spec.rb'
|
|
55
|
+
- 'spec/unit/burndown_chart_spec.rb'
|
|
56
|
+
- 'spec/unit/card_spec.rb'
|
|
57
|
+
- 'spec/unit/settings_spec.rb'
|
|
58
|
+
- 'spec/unit/trello_wrapper_spec.rb'
|
|
59
|
+
|
|
60
|
+
# Offense count: 11
|
|
61
|
+
# Cop supports --auto-correct.
|
|
62
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
63
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
64
|
+
Layout/EmptyLinesAroundClassBody:
|
|
65
|
+
Exclude:
|
|
66
|
+
- 'lib/backup.rb'
|
|
67
|
+
- 'lib/burndown_chart.rb'
|
|
68
|
+
- 'lib/burndown_data.rb'
|
|
69
|
+
- 'lib/cli.rb'
|
|
70
|
+
- 'lib/scrum_board.rb'
|
|
71
|
+
- 'lib/settings.rb'
|
|
72
|
+
|
|
73
|
+
# Offense count: 1
|
|
74
|
+
# Cop supports --auto-correct.
|
|
75
|
+
Layout/EmptyLinesAroundMethodBody:
|
|
76
|
+
Exclude:
|
|
77
|
+
- 'lib/burndown_chart.rb'
|
|
78
|
+
|
|
79
|
+
# Offense count: 2
|
|
80
|
+
# Cop supports --auto-correct.
|
|
81
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
82
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
83
|
+
Layout/EmptyLinesAroundModuleBody:
|
|
84
|
+
Exclude:
|
|
85
|
+
- 'lib/version.rb'
|
|
86
|
+
|
|
87
|
+
# Offense count: 4
|
|
88
|
+
# Cop supports --auto-correct.
|
|
89
|
+
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
|
90
|
+
Layout/ExtraSpacing:
|
|
91
|
+
Exclude:
|
|
92
|
+
- 'lib/scrum/backlog_mover.rb'
|
|
93
|
+
- 'lib/scrum/priority_name.rb'
|
|
94
|
+
- 'spec/unit/scrum/prioritizer_spec.rb'
|
|
95
|
+
|
|
96
|
+
# Offense count: 2
|
|
97
|
+
# Cop supports --auto-correct.
|
|
98
|
+
# Configuration parameters: SupportedStyles, IndentationWidth.
|
|
99
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
|
100
|
+
Layout/IndentHash:
|
|
101
|
+
EnforcedStyle: consistent
|
|
102
|
+
|
|
103
|
+
# Offense count: 16
|
|
104
|
+
# Cop supports --auto-correct.
|
|
105
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
106
|
+
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
|
|
107
|
+
Layout/IndentHeredoc:
|
|
108
|
+
Exclude:
|
|
109
|
+
- 'lib/cli.rb'
|
|
110
|
+
- 'spec/unit/backup_spec.rb'
|
|
111
|
+
- 'spec/unit/burndown_chart_spec.rb'
|
|
112
|
+
- 'spec/unit/card_spec.rb'
|
|
113
|
+
- 'spec/unit/cli_spec.rb'
|
|
114
|
+
- 'spec/unit/retrieve_data_spec.rb'
|
|
115
|
+
- 'spec/unit/trello_wrapper_spec.rb'
|
|
116
|
+
|
|
117
|
+
# Offense count: 1
|
|
118
|
+
# Cop supports --auto-correct.
|
|
119
|
+
# Configuration parameters: Width, IgnoredPatterns.
|
|
120
|
+
Layout/IndentationWidth:
|
|
121
|
+
Exclude:
|
|
122
|
+
- 'spec/unit/trello_wrapper_spec.rb'
|
|
123
|
+
|
|
124
|
+
# Offense count: 1
|
|
125
|
+
# Cop supports --auto-correct.
|
|
126
|
+
Layout/MultilineBlockLayout:
|
|
127
|
+
Exclude:
|
|
128
|
+
- 'spec/unit/trello_wrapper_spec.rb'
|
|
129
|
+
|
|
130
|
+
# Offense count: 7
|
|
131
|
+
# Cop supports --auto-correct.
|
|
132
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
133
|
+
# SupportedStyles: symmetrical, new_line, same_line
|
|
134
|
+
Layout/MultilineHashBraceLayout:
|
|
135
|
+
Exclude:
|
|
136
|
+
- 'spec/unit/burndown_chart_spec.rb'
|
|
137
|
+
|
|
138
|
+
# Offense count: 9
|
|
139
|
+
# Cop supports --auto-correct.
|
|
140
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
141
|
+
# SupportedStyles: symmetrical, new_line, same_line
|
|
142
|
+
Layout/MultilineMethodCallBraceLayout:
|
|
143
|
+
Exclude:
|
|
144
|
+
- 'spec/unit/burndown_chart_spec.rb'
|
|
145
|
+
- 'spec/unit/cli_spec.rb'
|
|
146
|
+
|
|
147
|
+
# Offense count: 7
|
|
148
|
+
# Cop supports --auto-correct.
|
|
149
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
150
|
+
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
|
151
|
+
Layout/MultilineMethodCallIndentation:
|
|
152
|
+
Exclude:
|
|
153
|
+
- 'lib/burndown_chart.rb'
|
|
154
|
+
- 'spec/unit/trello_wrapper_spec.rb'
|
|
155
|
+
|
|
156
|
+
# Offense count: 2
|
|
157
|
+
# Cop supports --auto-correct.
|
|
158
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
159
|
+
# SupportedStyles: aligned, indented
|
|
160
|
+
Layout/MultilineOperationIndentation:
|
|
161
|
+
Exclude:
|
|
162
|
+
- 'lib/backup.rb'
|
|
163
|
+
- 'lib/card.rb'
|
|
164
|
+
|
|
165
|
+
# Offense count: 1
|
|
166
|
+
# Cop supports --auto-correct.
|
|
167
|
+
Layout/SpaceAfterNot:
|
|
168
|
+
Exclude:
|
|
169
|
+
- 'lib/cli.rb'
|
|
170
|
+
|
|
171
|
+
# Offense count: 1
|
|
172
|
+
# Cop supports --auto-correct.
|
|
173
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
174
|
+
# SupportedStyles: space, no_space
|
|
175
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
|
176
|
+
Exclude:
|
|
177
|
+
- 'lib/cli.rb'
|
|
178
|
+
|
|
179
|
+
# Offense count: 30
|
|
180
|
+
# Cop supports --auto-correct.
|
|
181
|
+
# Configuration parameters: AllowForAlignment.
|
|
182
|
+
Layout/SpaceAroundOperators:
|
|
183
|
+
Exclude:
|
|
184
|
+
- 'lib/scrum/priority_name.rb'
|
|
185
|
+
- 'spec/unit/burndown_chart_spec.rb'
|
|
186
|
+
- 'spec/unit/cli_spec.rb'
|
|
187
|
+
- 'spec/unit/settings_spec.rb'
|
|
188
|
+
- 'spec/unit/trello_wrapper_spec.rb'
|
|
189
|
+
|
|
190
|
+
# Offense count: 23
|
|
191
|
+
# Cop supports --auto-correct.
|
|
192
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
193
|
+
# SupportedStyles: space, no_space
|
|
194
|
+
Layout/SpaceBeforeBlockBraces:
|
|
195
|
+
Exclude:
|
|
196
|
+
- 'lib/card.rb'
|
|
197
|
+
- 'lib/column.rb'
|
|
198
|
+
- 'lib/scrum_board.rb'
|
|
199
|
+
- 'lib/trello_wrapper.rb'
|
|
200
|
+
- 'spec/unit/scrum_board_spec.rb'
|
|
201
|
+
- 'spec/unit/trello_wrapper_spec.rb'
|
|
202
|
+
- 'trollolo.gemspec'
|
|
203
|
+
|
|
204
|
+
# Offense count: 33
|
|
205
|
+
# Cop supports --auto-correct.
|
|
206
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
|
|
207
|
+
# SupportedStyles: space, no_space
|
|
208
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
|
209
|
+
Layout/SpaceInsideBlockBraces:
|
|
210
|
+
Exclude:
|
|
211
|
+
- 'lib/card.rb'
|
|
212
|
+
- 'lib/column.rb'
|
|
213
|
+
- 'lib/scrum_board.rb'
|
|
214
|
+
- 'spec/unit/scrum_board_spec.rb'
|
|
215
|
+
- 'trollolo.gemspec'
|
|
216
|
+
|
|
217
|
+
# Offense count: 9
|
|
218
|
+
# Cop supports --auto-correct.
|
|
219
|
+
Layout/SpaceInsideBrackets:
|
|
220
|
+
Exclude:
|
|
221
|
+
- 'lib/burndown_chart.rb'
|
|
222
|
+
- 'spec/unit/burndown_chart_spec.rb'
|
|
223
|
+
- 'spec/unit/support/webmocks.rb'
|
|
224
|
+
|
|
225
|
+
# Offense count: 46
|
|
226
|
+
# Cop supports --auto-correct.
|
|
227
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces.
|
|
228
|
+
# SupportedStyles: space, no_space, compact
|
|
229
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
|
230
|
+
Layout/SpaceInsideHashLiteralBraces:
|
|
231
|
+
Exclude:
|
|
232
|
+
- 'lib/cli.rb'
|
|
233
|
+
- 'lib/empty_column.rb'
|
|
234
|
+
- 'spec/unit/burndown_chart_spec.rb'
|
|
235
|
+
- 'spec/unit/cli_spec.rb'
|
|
236
|
+
- 'spec/unit/settings_spec.rb'
|
|
237
|
+
- 'spec/unit/trello_wrapper_spec.rb'
|
|
238
|
+
|
|
239
|
+
# Offense count: 101
|
|
240
|
+
# Cop supports --auto-correct.
|
|
241
|
+
Layout/SpaceInsideParens:
|
|
242
|
+
Exclude:
|
|
243
|
+
- 'lib/burndown_chart.rb'
|
|
244
|
+
- 'spec/integration/integration_spec_helper.rb'
|
|
245
|
+
- 'spec/unit/backup_spec.rb'
|
|
246
|
+
- 'spec/unit/burndown_chart_spec.rb'
|
|
247
|
+
- 'spec/unit/burndown_data_spec.rb'
|
|
248
|
+
- 'spec/unit/settings_spec.rb'
|
|
249
|
+
- 'spec/unit/spec_helper.rb'
|
|
250
|
+
|
|
251
|
+
# Offense count: 6
|
|
252
|
+
# Cop supports --auto-correct.
|
|
253
|
+
Layout/SpaceInsidePercentLiteralDelimiters:
|
|
254
|
+
Exclude:
|
|
255
|
+
- 'spec/unit/burndown_chart_spec.rb'
|
|
256
|
+
|
|
257
|
+
# Offense count: 1
|
|
258
|
+
# Cop supports --auto-correct.
|
|
259
|
+
Layout/TrailingWhitespace:
|
|
260
|
+
Exclude:
|
|
261
|
+
- 'lib/trello_service.rb'
|
|
262
|
+
|
|
263
|
+
# Offense count: 2
|
|
264
|
+
Lint/AmbiguousRegexpLiteral:
|
|
265
|
+
Exclude:
|
|
266
|
+
- 'spec/unit/cli_spec.rb'
|
|
267
|
+
- 'spec/unit/scrum/sprint_cleaner_spec.rb'
|
|
268
|
+
|
|
269
|
+
# Offense count: 2
|
|
270
|
+
# Configuration parameters: AllowSafeAssignment.
|
|
271
|
+
Lint/AssignmentInCondition:
|
|
272
|
+
Exclude:
|
|
273
|
+
- 'lib/scrum/priority_name.rb'
|
|
274
|
+
- 'spec/unit/support/vcr.rb'
|
|
275
|
+
|
|
276
|
+
# Offense count: 1
|
|
277
|
+
# Cop supports --auto-correct.
|
|
278
|
+
Lint/DeprecatedClassMethods:
|
|
279
|
+
Exclude:
|
|
280
|
+
- 'lib/settings.rb'
|
|
281
|
+
|
|
282
|
+
# Offense count: 7
|
|
283
|
+
Lint/ParenthesesAsGroupedExpression:
|
|
284
|
+
Exclude:
|
|
285
|
+
- 'spec/unit/burndown_chart_spec.rb'
|
|
286
|
+
|
|
287
|
+
# Offense count: 1
|
|
288
|
+
# Cop supports --auto-correct.
|
|
289
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
290
|
+
Lint/UnusedBlockArgument:
|
|
291
|
+
Exclude:
|
|
292
|
+
- 'spec/integration/wrapper/credentials_input_wrapper'
|
|
293
|
+
|
|
294
|
+
# Offense count: 1
|
|
295
|
+
# Cop supports --auto-correct.
|
|
296
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
|
297
|
+
Lint/UnusedMethodArgument:
|
|
298
|
+
Exclude:
|
|
299
|
+
- 'lib/cli.rb'
|
|
300
|
+
|
|
301
|
+
# Offense count: 1
|
|
302
|
+
Lint/UselessAssignment:
|
|
303
|
+
Exclude:
|
|
304
|
+
- 'spec/unit/support/webmocks.rb'
|
|
305
|
+
|
|
306
|
+
# Offense count: 16
|
|
307
|
+
Metrics/AbcSize:
|
|
308
|
+
Max: 50
|
|
309
|
+
|
|
310
|
+
# Offense count: 41
|
|
311
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
|
312
|
+
Metrics/BlockLength:
|
|
313
|
+
Max: 456
|
|
314
|
+
|
|
315
|
+
# Offense count: 3
|
|
316
|
+
# Configuration parameters: CountComments.
|
|
317
|
+
Metrics/ClassLength:
|
|
318
|
+
Max: 327
|
|
319
|
+
|
|
320
|
+
# Offense count: 1
|
|
321
|
+
Metrics/CyclomaticComplexity:
|
|
322
|
+
Max: 9
|
|
323
|
+
|
|
324
|
+
# Offense count: 134
|
|
325
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
326
|
+
# URISchemes: http, https
|
|
327
|
+
Metrics/LineLength:
|
|
328
|
+
Max: 210
|
|
329
|
+
|
|
330
|
+
# Offense count: 18
|
|
331
|
+
# Configuration parameters: CountComments.
|
|
332
|
+
Metrics/MethodLength:
|
|
333
|
+
Max: 35
|
|
334
|
+
|
|
335
|
+
# Offense count: 1
|
|
336
|
+
Metrics/PerceivedComplexity:
|
|
337
|
+
Max: 10
|
|
338
|
+
|
|
339
|
+
# Offense count: 1
|
|
340
|
+
# Cop supports --auto-correct.
|
|
341
|
+
Security/YAMLLoad:
|
|
342
|
+
Exclude:
|
|
343
|
+
- 'lib/card.rb'
|
|
344
|
+
|
|
345
|
+
# Offense count: 6
|
|
346
|
+
Style/AccessorMethodName:
|
|
347
|
+
Exclude:
|
|
348
|
+
- 'lib/burndown_data.rb'
|
|
349
|
+
- 'lib/cli.rb'
|
|
350
|
+
|
|
351
|
+
# Offense count: 1
|
|
352
|
+
# Cop supports --auto-correct.
|
|
353
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
354
|
+
# SupportedStyles: always, conditionals
|
|
355
|
+
Style/AndOr:
|
|
356
|
+
Exclude:
|
|
357
|
+
- 'spec/unit/support/update_webmock_data'
|
|
358
|
+
|
|
359
|
+
# Offense count: 17
|
|
360
|
+
# Cop supports --auto-correct.
|
|
361
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
|
362
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
|
363
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
364
|
+
# FunctionalMethods: let, let!, subject, watch
|
|
365
|
+
# IgnoredMethods: lambda, proc, it
|
|
366
|
+
Style/BlockDelimiters:
|
|
367
|
+
Exclude:
|
|
368
|
+
- 'lib/cli.rb'
|
|
369
|
+
- 'spec/unit/cli_spec.rb'
|
|
370
|
+
- 'spec/unit/scrum/backlog_mover_spec.rb'
|
|
371
|
+
- 'spec/unit/scrum/creator_spec.rb'
|
|
372
|
+
- 'spec/unit/scrum/prioritizer_spec.rb'
|
|
373
|
+
- 'spec/unit/scrum/sprint_cleaner_spec.rb'
|
|
374
|
+
- 'spec/unit/trello_wrapper_spec.rb'
|
|
375
|
+
|
|
376
|
+
# Offense count: 15
|
|
377
|
+
# Cop supports --auto-correct.
|
|
378
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
379
|
+
# SupportedStyles: braces, no_braces, context_dependent
|
|
380
|
+
Style/BracesAroundHashParameters:
|
|
381
|
+
Exclude:
|
|
382
|
+
- 'lib/burndown_chart.rb'
|
|
383
|
+
- 'lib/cli.rb'
|
|
384
|
+
- 'spec/unit/burndown_chart_spec.rb'
|
|
385
|
+
- 'spec/unit/burndown_data_spec.rb'
|
|
386
|
+
- 'spec/unit/settings_spec.rb'
|
|
387
|
+
|
|
388
|
+
# Offense count: 1
|
|
389
|
+
Style/ClassVars:
|
|
390
|
+
Exclude:
|
|
391
|
+
- 'lib/cli.rb'
|
|
392
|
+
|
|
393
|
+
# Offense count: 3
|
|
394
|
+
# Cop supports --auto-correct.
|
|
395
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
396
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
397
|
+
Style/ConditionalAssignment:
|
|
398
|
+
Exclude:
|
|
399
|
+
- 'lib/cli.rb'
|
|
400
|
+
- 'spec/unit/support/webmocks.rb'
|
|
401
|
+
|
|
402
|
+
# Offense count: 21
|
|
403
|
+
Style/Documentation:
|
|
404
|
+
Enabled: false
|
|
405
|
+
|
|
406
|
+
# Offense count: 1
|
|
407
|
+
# Cop supports --auto-correct.
|
|
408
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
409
|
+
# SupportedStyles: empty, nil, both
|
|
410
|
+
Style/EmptyElse:
|
|
411
|
+
Exclude:
|
|
412
|
+
- 'lib/trello_wrapper.rb'
|
|
413
|
+
|
|
414
|
+
# Offense count: 8
|
|
415
|
+
# Configuration parameters: MinBodyLength.
|
|
416
|
+
Style/GuardClause:
|
|
417
|
+
Exclude:
|
|
418
|
+
- 'lib/burndown_chart.rb'
|
|
419
|
+
- 'lib/card.rb'
|
|
420
|
+
- 'lib/cli.rb'
|
|
421
|
+
- 'lib/scrum/backlog_mover.rb'
|
|
422
|
+
- 'lib/scrum_board.rb'
|
|
423
|
+
- 'lib/settings.rb'
|
|
424
|
+
|
|
425
|
+
# Offense count: 107
|
|
426
|
+
# Cop supports --auto-correct.
|
|
427
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
428
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
429
|
+
Style/HashSyntax:
|
|
430
|
+
Exclude:
|
|
431
|
+
- 'Rakefile'
|
|
432
|
+
- 'lib/cli.rb'
|
|
433
|
+
- 'spec/unit/cli_spec.rb'
|
|
434
|
+
- 'spec/unit/spec_helper.rb'
|
|
435
|
+
- 'spec/unit/support/webmocks.rb'
|
|
436
|
+
- 'spec/unit/trello_wrapper_spec.rb'
|
|
437
|
+
|
|
438
|
+
# Offense count: 15
|
|
439
|
+
# Cop supports --auto-correct.
|
|
440
|
+
# Configuration parameters: MaxLineLength.
|
|
441
|
+
Style/IfUnlessModifier:
|
|
442
|
+
Exclude:
|
|
443
|
+
- 'lib/backup.rb'
|
|
444
|
+
- 'lib/burndown_chart.rb'
|
|
445
|
+
- 'lib/card.rb'
|
|
446
|
+
- 'lib/cli.rb'
|
|
447
|
+
- 'lib/scrum/sprint_planning_board.rb'
|
|
448
|
+
- 'spec/integration/wrapper/credentials_input_wrapper'
|
|
449
|
+
- 'spec/unit/support/update_webmock_data'
|
|
450
|
+
|
|
451
|
+
# Offense count: 9
|
|
452
|
+
# Cop supports --auto-correct.
|
|
453
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
454
|
+
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
|
455
|
+
Style/MethodDefParentheses:
|
|
456
|
+
Exclude:
|
|
457
|
+
- 'lib/backup.rb'
|
|
458
|
+
- 'lib/burndown_chart.rb'
|
|
459
|
+
- 'lib/cli.rb'
|
|
460
|
+
- 'lib/settings.rb'
|
|
461
|
+
|
|
462
|
+
# Offense count: 1
|
|
463
|
+
Style/MultilineBlockChain:
|
|
464
|
+
Exclude:
|
|
465
|
+
- 'lib/cli.rb'
|
|
466
|
+
|
|
467
|
+
# Offense count: 1
|
|
468
|
+
# Cop supports --auto-correct.
|
|
469
|
+
Style/MutableConstant:
|
|
470
|
+
Exclude:
|
|
471
|
+
- 'lib/version.rb'
|
|
472
|
+
|
|
473
|
+
# Offense count: 7
|
|
474
|
+
# Cop supports --auto-correct.
|
|
475
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
476
|
+
# SupportedStyles: both, prefix, postfix
|
|
477
|
+
Style/NegatedIf:
|
|
478
|
+
Exclude:
|
|
479
|
+
- 'lib/backup.rb'
|
|
480
|
+
- 'lib/cli.rb'
|
|
481
|
+
- 'lib/trello_wrapper.rb'
|
|
482
|
+
- 'spec/integration/wrapper/credentials_input_wrapper'
|
|
483
|
+
|
|
484
|
+
# Offense count: 1
|
|
485
|
+
# Cop supports --auto-correct.
|
|
486
|
+
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
|
|
487
|
+
# SupportedStyles: skip_modifier_ifs, always
|
|
488
|
+
Style/Next:
|
|
489
|
+
Exclude:
|
|
490
|
+
- 'lib/card.rb'
|
|
491
|
+
|
|
492
|
+
# Offense count: 2
|
|
493
|
+
# Cop supports --auto-correct.
|
|
494
|
+
# Configuration parameters: Strict.
|
|
495
|
+
Style/NumericLiterals:
|
|
496
|
+
MinDigits: 7
|
|
497
|
+
|
|
498
|
+
# Offense count: 1
|
|
499
|
+
# Cop supports --auto-correct.
|
|
500
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
|
|
501
|
+
# SupportedStyles: predicate, comparison
|
|
502
|
+
Style/NumericPredicate:
|
|
503
|
+
Exclude:
|
|
504
|
+
- 'spec/**/*'
|
|
505
|
+
- 'lib/burndown_chart.rb'
|
|
506
|
+
|
|
507
|
+
# Offense count: 3
|
|
508
|
+
# Cop supports --auto-correct.
|
|
509
|
+
# Configuration parameters: PreferredDelimiters.
|
|
510
|
+
Style/PercentLiteralDelimiters:
|
|
511
|
+
Exclude:
|
|
512
|
+
- 'spec/unit/burndown_chart_spec.rb'
|
|
513
|
+
|
|
514
|
+
# Offense count: 3
|
|
515
|
+
# Cop supports --auto-correct.
|
|
516
|
+
Style/PerlBackrefs:
|
|
517
|
+
Exclude:
|
|
518
|
+
- 'lib/burndown_chart.rb'
|
|
519
|
+
- 'lib/card.rb'
|
|
520
|
+
- 'trollolo.gemspec'
|
|
521
|
+
|
|
522
|
+
# Offense count: 3
|
|
523
|
+
# Cop supports --auto-correct.
|
|
524
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
525
|
+
# SupportedStyles: short, verbose
|
|
526
|
+
Style/PreferredHashMethods:
|
|
527
|
+
Exclude:
|
|
528
|
+
- 'lib/burndown_chart.rb'
|
|
529
|
+
- 'spec/unit/support/update_webmock_data'
|
|
530
|
+
|
|
531
|
+
# Offense count: 4
|
|
532
|
+
# Cop supports --auto-correct.
|
|
533
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
534
|
+
# SupportedStyles: compact, exploded
|
|
535
|
+
Style/RaiseArgs:
|
|
536
|
+
Exclude:
|
|
537
|
+
- 'lib/burndown_chart.rb'
|
|
538
|
+
- 'lib/trello_wrapper.rb'
|
|
539
|
+
|
|
540
|
+
# Offense count: 1
|
|
541
|
+
# Cop supports --auto-correct.
|
|
542
|
+
Style/RedundantParentheses:
|
|
543
|
+
Exclude:
|
|
544
|
+
- 'spec/unit/burndown_chart_spec.rb'
|
|
545
|
+
|
|
546
|
+
# Offense count: 2
|
|
547
|
+
# Cop supports --auto-correct.
|
|
548
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
|
549
|
+
Style/RedundantReturn:
|
|
550
|
+
Exclude:
|
|
551
|
+
- 'lib/burndown_chart.rb'
|
|
552
|
+
- 'lib/trello_service.rb'
|
|
553
|
+
|
|
554
|
+
# Offense count: 5
|
|
555
|
+
# Cop supports --auto-correct.
|
|
556
|
+
Style/RedundantSelf:
|
|
557
|
+
Exclude:
|
|
558
|
+
- 'lib/burndown_chart.rb'
|
|
559
|
+
- 'lib/card.rb'
|
|
560
|
+
|
|
561
|
+
# Offense count: 1
|
|
562
|
+
# Cop supports --auto-correct.
|
|
563
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
|
|
564
|
+
# SupportedStyles: slashes, percent_r, mixed
|
|
565
|
+
Style/RegexpLiteral:
|
|
566
|
+
Exclude:
|
|
567
|
+
- 'trollolo.gemspec'
|
|
568
|
+
|
|
569
|
+
# Offense count: 8
|
|
570
|
+
# Cop supports --auto-correct.
|
|
571
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
572
|
+
# SupportedStyles: only_raise, only_fail, semantic
|
|
573
|
+
Style/SignalException:
|
|
574
|
+
Exclude:
|
|
575
|
+
- 'lib/scrum/backlog_mover.rb'
|
|
576
|
+
- 'lib/scrum/prioritizer.rb'
|
|
577
|
+
- 'lib/scrum/sprint_cleaner.rb'
|
|
578
|
+
- 'spec/unit/support/vcr.rb'
|
|
579
|
+
|
|
580
|
+
# Offense count: 943
|
|
581
|
+
# Cop supports --auto-correct.
|
|
582
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
|
583
|
+
# SupportedStyles: single_quotes, double_quotes
|
|
584
|
+
Style/StringLiterals:
|
|
585
|
+
Enabled: false
|
|
586
|
+
|
|
587
|
+
# Offense count: 7
|
|
588
|
+
# Cop supports --auto-correct.
|
|
589
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
590
|
+
# SupportedStyles: single_quotes, double_quotes
|
|
591
|
+
Style/StringLiteralsInInterpolation:
|
|
592
|
+
Exclude:
|
|
593
|
+
- 'lib/burndown_chart.rb'
|
|
594
|
+
- 'lib/cli.rb'
|
|
595
|
+
- 'lib/scrum/sprint_cleaner.rb'
|
|
596
|
+
- 'spec/integration/wrapper/credentials_input_wrapper'
|
|
597
|
+
- 'spec/integration/wrapper/empty_config_trollolo_wrapper'
|
|
598
|
+
- 'spec/integration/wrapper/trollolo_wrapper'
|
|
599
|
+
|
|
600
|
+
# Offense count: 1
|
|
601
|
+
# Cop supports --auto-correct.
|
|
602
|
+
# Configuration parameters: MinSize, SupportedStyles.
|
|
603
|
+
# SupportedStyles: percent, brackets
|
|
604
|
+
Style/SymbolArray:
|
|
605
|
+
EnforcedStyle: brackets
|
|
606
|
+
|
|
607
|
+
# Offense count: 5
|
|
608
|
+
# Cop supports --auto-correct.
|
|
609
|
+
# Configuration parameters: IgnoredMethods.
|
|
610
|
+
# IgnoredMethods: respond_to, define_method
|
|
611
|
+
Style/SymbolProc:
|
|
612
|
+
Exclude:
|
|
613
|
+
- 'lib/column.rb'
|
|
614
|
+
|
|
615
|
+
# Offense count: 1
|
|
616
|
+
# Cop supports --auto-correct.
|
|
617
|
+
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
|
|
618
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
619
|
+
Style/TrailingCommaInLiteral:
|
|
620
|
+
Exclude:
|
|
621
|
+
- 'lib/settings.rb'
|
|
622
|
+
|
|
623
|
+
# Offense count: 2
|
|
624
|
+
# Cop supports --auto-correct.
|
|
625
|
+
Style/UnneededInterpolation:
|
|
626
|
+
Exclude:
|
|
627
|
+
- 'spec/integration/command_line_spec.rb'
|
|
628
|
+
|
|
629
|
+
# Offense count: 1
|
|
630
|
+
# Cop supports --auto-correct.
|
|
631
|
+
# Configuration parameters: SupportedStyles, WordRegex.
|
|
632
|
+
# SupportedStyles: percent, brackets
|
|
633
|
+
Style/WordArray:
|
|
634
|
+
EnforcedStyle: percent
|
|
635
|
+
MinSize: 3
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Trollolo Changelog
|
|
2
2
|
|
|
3
|
+
## Version 0.0.11
|
|
4
|
+
|
|
5
|
+
* Add in `trollolo burndown --new-sprint` command the `total_days` and
|
|
6
|
+
`weekend_lines` params. Closes #77.
|
|
7
|
+
* Change stdout output when running set-priorities to render the new priority
|
|
8
|
+
instead of the old one. Fixes #72.
|
|
9
|
+
|
|
3
10
|
## Version 0.0.10
|
|
4
11
|
|
|
5
12
|
* Rename `sprint-cleanup` to `cleanup-sprint`.
|
data/CONTRIBUTING.md
CHANGED
|
@@ -1,7 +1,33 @@
|
|
|
1
|
-
Contributions are welcome
|
|
1
|
+
Contributions are welcome! :smile:
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# Report bugs or suggest changes
|
|
4
|
+
|
|
5
|
+
To report bugs, suggest changes or provide ideas please open GitHub issues.
|
|
6
|
+
|
|
7
|
+
To discuss anything please [contact Cornelius](mailto:cschum@suse.de).
|
|
8
|
+
|
|
9
|
+
# Contribute code
|
|
4
10
|
|
|
5
11
|
To contribute code please open pull requests.
|
|
6
12
|
|
|
7
|
-
|
|
13
|
+
Ensure that rspec and rubocop pass locally before sending your PR and always that you add new changes.
|
|
14
|
+
|
|
15
|
+
## To run rspec test
|
|
16
|
+
|
|
17
|
+
To run all the rspec test:
|
|
18
|
+
|
|
19
|
+
`bundle exec rspec`
|
|
20
|
+
|
|
21
|
+
To run all the test in one spec file, for example `spec/unit/burndown_chart_spec.rb`:
|
|
22
|
+
|
|
23
|
+
`bundle exec rspec spec/unit/burndown_chart_spec.rb`
|
|
24
|
+
|
|
25
|
+
To only run the test in the line 415 of the file:
|
|
26
|
+
|
|
27
|
+
`bundle exec rspec spec/unit/burndown_chart_spec.rb:415`
|
|
28
|
+
|
|
29
|
+
## To run rubocop
|
|
30
|
+
|
|
31
|
+
To run Rubocop displaying cop names in offense messages:
|
|
32
|
+
|
|
33
|
+
`bundle exec rubocop -D`
|
data/Gemfile
CHANGED
data/lib/burndown_chart.rb
CHANGED
|
@@ -131,7 +131,7 @@ class BurndownChart
|
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
def burndown_data_filename
|
|
134
|
-
"burndown-data-#{sprint.to_s.rjust(2,"0")}.yaml"
|
|
134
|
+
"burndown-data-#{sprint.to_s.rjust(2, "0")}.yaml"
|
|
135
135
|
end
|
|
136
136
|
|
|
137
137
|
def setup(burndown_dir, board_id)
|
|
@@ -209,9 +209,11 @@ class BurndownChart
|
|
|
209
209
|
end
|
|
210
210
|
end
|
|
211
211
|
|
|
212
|
-
def create_next_sprint(burndown_dir)
|
|
212
|
+
def create_next_sprint(burndown_dir, options = {})
|
|
213
213
|
load_last_sprint(burndown_dir)
|
|
214
214
|
self.sprint = self.sprint + 1
|
|
215
|
+
@data["meta"]["total_days"] = options[:total_days] if options[:total_days]
|
|
216
|
+
@data["meta"]["weekend_lines"] = options[:weekend_lines] unless options[:weekend_lines].blank?
|
|
215
217
|
@data["days"] = []
|
|
216
218
|
write_data File.join(burndown_dir, burndown_data_filename)
|
|
217
219
|
end
|
data/lib/card.rb
CHANGED
|
@@ -71,11 +71,9 @@ class Card
|
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
def checklists
|
|
74
|
-
checklists
|
|
75
|
-
|
|
76
|
-
checklists.push(Checklist.new(checklist))
|
|
74
|
+
@card_data["checklists"].map do |checklist|
|
|
75
|
+
Checklist.new(checklist)
|
|
77
76
|
end
|
|
78
|
-
checklists
|
|
79
77
|
end
|
|
80
78
|
|
|
81
79
|
def desc
|
|
@@ -109,7 +107,7 @@ class Card
|
|
|
109
107
|
self.card_labels.map{|l| l['name']}.include?('FastLane')
|
|
110
108
|
end
|
|
111
109
|
|
|
112
|
-
#TODO: rethink storage for meta data for sprint
|
|
110
|
+
# TODO: rethink storage for meta data for sprint
|
|
113
111
|
def self.parse_yaml_from_description(description)
|
|
114
112
|
description =~ /```(yaml)?\n(.*)```/m
|
|
115
113
|
yaml = $2
|
data/lib/cli.rb
CHANGED
|
@@ -160,12 +160,14 @@ EOT
|
|
|
160
160
|
|
|
161
161
|
chart = BurndownChart.new @@settings
|
|
162
162
|
puts "Preparing directory..."
|
|
163
|
-
chart.setup(options[:output],board_id(options["board-id"]))
|
|
163
|
+
chart.setup(options[:output], board_id(options["board-id"]))
|
|
164
164
|
end
|
|
165
165
|
|
|
166
166
|
desc "burndown", "Update burndown chart"
|
|
167
167
|
option :output, :aliases => :o, :desc => "Output directory", :required => false
|
|
168
168
|
option :new_sprint, :aliases => :n, :desc => "Create new sprint"
|
|
169
|
+
option :total_days, type: :numeric, desc: "Provide how many days the sprint longs. 10 days by default"
|
|
170
|
+
option :weekend_lines, type: :array, desc: "Set the weekend_lines. [3.5, 8.5] by default"
|
|
169
171
|
option :plot, :type => :boolean, :desc => "also plot the new data"
|
|
170
172
|
option 'with-fast-lane', :desc => "Plot Fast Lane with new cards bars", :required => false, :type => :boolean
|
|
171
173
|
option 'no-tasks', :desc => "Do not plot tasks line", :required => false, :type => :boolean
|
|
@@ -177,7 +179,7 @@ EOT
|
|
|
177
179
|
chart = BurndownChart.new @@settings
|
|
178
180
|
begin
|
|
179
181
|
if options[:new_sprint]
|
|
180
|
-
chart.create_next_sprint(options[:output] || Dir.pwd)
|
|
182
|
+
chart.create_next_sprint(options[:output] || Dir.pwd, { total_days: options[:total_days], weekend_lines: options[:weekend_lines] })
|
|
181
183
|
end
|
|
182
184
|
chart.update(options)
|
|
183
185
|
puts "Updated data for sprint #{chart.sprint}"
|
|
@@ -266,7 +268,7 @@ EOT
|
|
|
266
268
|
trello = TrelloWrapper.new(@@settings)
|
|
267
269
|
|
|
268
270
|
members = trello.organization(options["org-name"]).members
|
|
269
|
-
members.sort! { |a,b| a.username <=> b.username }
|
|
271
|
+
members.sort! { |a, b| a.username <=> b.username }
|
|
270
272
|
|
|
271
273
|
members.each do |member|
|
|
272
274
|
puts "#{member.username} (#{member.full_name})"
|
data/lib/scrum/prioritizer.rb
CHANGED
|
@@ -14,9 +14,9 @@ module Scrum
|
|
|
14
14
|
n = 1
|
|
15
15
|
@board.backlog_cards.each do |card|
|
|
16
16
|
next if @board.sticky?(card) || @board.waterline?(card)
|
|
17
|
-
puts %(set priority to #{n} for "#{card.name}")
|
|
18
17
|
card.name = PriorityName.build(card.name, n)
|
|
19
18
|
card.save
|
|
19
|
+
puts %(set priority to #{n} for "#{card.name}")
|
|
20
20
|
n += 1
|
|
21
21
|
end
|
|
22
22
|
end
|
data/lib/scrum_board.rb
CHANGED
|
@@ -13,13 +13,11 @@ class ScrumBoard
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def done_column
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
done_columns.max_by{|c| c.name.match(@settings.done_column_name_regex).captures.first.to_i }
|
|
22
|
-
end
|
|
16
|
+
done_columns = columns.select{|c| c.name =~ @settings.done_column_name_regex }
|
|
17
|
+
if done_columns.empty?
|
|
18
|
+
raise DoneColumnNotFoundError, "can't find done column by name regex #{@settings.done_column_name_regex}"
|
|
19
|
+
else
|
|
20
|
+
done_columns.max_by{|c| c.name.match(@settings.done_column_name_regex).captures.first.to_i }
|
|
23
21
|
end
|
|
24
22
|
end
|
|
25
23
|
|
|
@@ -41,7 +39,7 @@ class ScrumBoard
|
|
|
41
39
|
end
|
|
42
40
|
|
|
43
41
|
def open_cards
|
|
44
|
-
open_columns.map
|
|
42
|
+
open_columns.map(&:committed_cards).flatten
|
|
45
43
|
end
|
|
46
44
|
|
|
47
45
|
def committed_cards
|
|
@@ -78,7 +76,7 @@ class ScrumBoard
|
|
|
78
76
|
end
|
|
79
77
|
|
|
80
78
|
def extra_open_cards
|
|
81
|
-
open_columns.map{|col| col.cards.select
|
|
79
|
+
open_columns.map{|col| col.cards.select(&:extra?) }.flatten
|
|
82
80
|
end
|
|
83
81
|
|
|
84
82
|
def extra_open_story_points
|
|
@@ -107,7 +105,7 @@ class ScrumBoard
|
|
|
107
105
|
end
|
|
108
106
|
|
|
109
107
|
def unplanned_open_cards
|
|
110
|
-
open_columns.map{|col| col.cards.select
|
|
108
|
+
open_columns.map{|col| col.cards.select(&:unplanned?) }.flatten
|
|
111
109
|
end
|
|
112
110
|
|
|
113
111
|
def unplanned_open_story_points
|
|
@@ -136,7 +134,7 @@ class ScrumBoard
|
|
|
136
134
|
end
|
|
137
135
|
|
|
138
136
|
def meta_cards
|
|
139
|
-
scrum_cards.select
|
|
137
|
+
scrum_cards.select(&:meta_card?)
|
|
140
138
|
end
|
|
141
139
|
|
|
142
140
|
def id
|
|
@@ -144,11 +142,6 @@ class ScrumBoard
|
|
|
144
142
|
end
|
|
145
143
|
|
|
146
144
|
def cards
|
|
147
|
-
|
|
148
|
-
@cards = []
|
|
149
|
-
columns.each do |column|
|
|
150
|
-
@cards += column.cards
|
|
151
|
-
end
|
|
152
|
-
@cards
|
|
145
|
+
@cards ||= columns.map(&:cards).flatten
|
|
153
146
|
end
|
|
154
147
|
end
|
data/lib/settings.rb
CHANGED
data/lib/version.rb
CHANGED
|
@@ -4,15 +4,15 @@ include GivenFilesystemSpecHelpers
|
|
|
4
4
|
include CliTester
|
|
5
5
|
|
|
6
6
|
def trollolo_cmd
|
|
7
|
-
File.expand_path('../wrapper/trollolo_wrapper',__FILE__)
|
|
7
|
+
File.expand_path('../wrapper/trollolo_wrapper', __FILE__)
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def trollolo_cmd_empty_config
|
|
11
|
-
File.expand_path('../wrapper/empty_config_trollolo_wrapper',__FILE__)
|
|
11
|
+
File.expand_path('../wrapper/empty_config_trollolo_wrapper', __FILE__)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def credentials_input_wrapper
|
|
15
|
-
File.expand_path('../wrapper/credentials_input_wrapper',__FILE__)
|
|
15
|
+
File.expand_path('../wrapper/credentials_input_wrapper', __FILE__)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
describe "command line" do
|
|
@@ -4,16 +4,16 @@ require "expect"
|
|
|
4
4
|
require "pty"
|
|
5
5
|
|
|
6
6
|
config_path = "/tmp/test-trollolorc-#{rand(100000)}"
|
|
7
|
-
bin_path = File.expand_path('../../../../bin/trollolo',__FILE__)
|
|
7
|
+
bin_path = File.expand_path('../../../../bin/trollolo', __FILE__)
|
|
8
8
|
|
|
9
9
|
ENV["TROLLOLO_CONFIG_PATH"] = config_path
|
|
10
10
|
|
|
11
|
-
PTY.spawn("#{bin_path} #{ARGV.join(" ")}") do |trollolo_out,trollolo_in,pid|
|
|
12
|
-
if !trollolo_out.expect("key:",2)
|
|
11
|
+
PTY.spawn("#{bin_path} #{ARGV.join(" ")}") do |trollolo_out, trollolo_in, pid|
|
|
12
|
+
if !trollolo_out.expect("key:", 2)
|
|
13
13
|
exit 1
|
|
14
14
|
end
|
|
15
15
|
trollolo_in.puts("xxx")
|
|
16
|
-
if !trollolo_out.expect("token:",2)
|
|
16
|
+
if !trollolo_out.expect("token:", 2)
|
|
17
17
|
exit 1
|
|
18
18
|
end
|
|
19
19
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
|
|
3
|
-
test_config_path = File.expand_path('../../../data/trollolorc',__FILE__)
|
|
4
|
-
bin_path = File.expand_path('../../../../bin/trollolo',__FILE__)
|
|
3
|
+
test_config_path = File.expand_path('../../../data/trollolorc', __FILE__)
|
|
4
|
+
bin_path = File.expand_path('../../../../bin/trollolo', __FILE__)
|
|
5
5
|
|
|
6
6
|
ENV["TROLLOLO_CONFIG_PATH"] = test_config_path
|
|
7
7
|
|
data/spec/unit/backup_spec.rb
CHANGED
|
@@ -349,12 +349,12 @@ EOT
|
|
|
349
349
|
describe "setup" do
|
|
350
350
|
it "initializes new chart" do
|
|
351
351
|
path = given_directory
|
|
352
|
-
@chart.setup(path,"53186e8391ef8671265eba9d")
|
|
352
|
+
@chart.setup(path, "53186e8391ef8671265eba9d")
|
|
353
353
|
|
|
354
|
-
expect(File.exist?(File.join(path,"burndown-data-01.yaml"))).to be true
|
|
354
|
+
expect(File.exist?(File.join(path, "burndown-data-01.yaml"))).to be true
|
|
355
355
|
|
|
356
356
|
chart = BurndownChart.new(@settings)
|
|
357
|
-
chart.read_data(File.join(path,"burndown-data-01.yaml"))
|
|
357
|
+
chart.read_data(File.join(path, "burndown-data-01.yaml"))
|
|
358
358
|
|
|
359
359
|
expect(chart.board_id).to eq "53186e8391ef8671265eba9d"
|
|
360
360
|
end
|
|
@@ -402,7 +402,7 @@ EOT
|
|
|
402
402
|
end
|
|
403
403
|
|
|
404
404
|
it "returns the path of the last sprint" do
|
|
405
|
-
expect(@chart.load_last_sprint(path)).to eq(File.join(path,"burndown-data-02.yaml"))
|
|
405
|
+
expect(@chart.load_last_sprint(path)).to eq(File.join(path, "burndown-data-02.yaml"))
|
|
406
406
|
end
|
|
407
407
|
end
|
|
408
408
|
|
|
@@ -417,9 +417,9 @@ EOT
|
|
|
417
417
|
expected_date_time = DateTime.parse(updated_at)
|
|
418
418
|
allow(DateTime).to receive(:now).and_return(expected_date_time)
|
|
419
419
|
|
|
420
|
-
before.read_data(File.join(path,'burndown-data-02.yaml'))
|
|
420
|
+
before.read_data(File.join(path, 'burndown-data-02.yaml'))
|
|
421
421
|
@chart.update(options)
|
|
422
|
-
after.read_data(File.join(path,'burndown-data-02.yaml'))
|
|
422
|
+
after.read_data(File.join(path, 'burndown-data-02.yaml'))
|
|
423
423
|
expect(after.days.size).to eq before.days.size + 1
|
|
424
424
|
|
|
425
425
|
expect(after.days.last["date"]).to eq "2015-01-12"
|
|
@@ -427,34 +427,54 @@ EOT
|
|
|
427
427
|
end
|
|
428
428
|
|
|
429
429
|
it "overwrites data on same date" do
|
|
430
|
-
before.read_data(File.join(path,'burndown-data-02.yaml'))
|
|
430
|
+
before.read_data(File.join(path, 'burndown-data-02.yaml'))
|
|
431
431
|
@chart.update(options)
|
|
432
432
|
@chart.update(options)
|
|
433
|
-
after.read_data(File.join(path,'burndown-data-02.yaml'))
|
|
433
|
+
after.read_data(File.join(path, 'burndown-data-02.yaml'))
|
|
434
434
|
expect(after.days.size).to eq before.days.size + 1
|
|
435
435
|
end
|
|
436
436
|
end
|
|
437
437
|
|
|
438
438
|
describe "create_next_sprint" do
|
|
439
|
+
let(:path) { given_directory_from_data("burndown_dir") }
|
|
440
|
+
let(:chart) { BurndownChart.new(@settings) }
|
|
441
|
+
let(:next_sprint_file) { File.join(path, "burndown-data-03.yaml") }
|
|
442
|
+
|
|
439
443
|
it "create new sprint file" do
|
|
440
|
-
|
|
441
|
-
|
|
444
|
+
expected_file_content = <<EOT
|
|
445
|
+
---
|
|
446
|
+
meta:
|
|
447
|
+
board_id: 53186e8391ef8671265eba9d
|
|
448
|
+
sprint: 3
|
|
449
|
+
total_days: 9
|
|
450
|
+
weekend_lines:
|
|
451
|
+
- 3.5
|
|
452
|
+
- 7.5
|
|
453
|
+
days: []
|
|
454
|
+
EOT
|
|
442
455
|
chart.create_next_sprint(path)
|
|
443
456
|
|
|
444
|
-
next_sprint_file = File.join(path, "burndown-data-03.yaml")
|
|
445
457
|
expect(File.exist?(next_sprint_file)).to be true
|
|
458
|
+
expect(File.read(next_sprint_file)).to eq expected_file_content
|
|
459
|
+
end
|
|
446
460
|
|
|
461
|
+
it "create new sprint file with params" do
|
|
447
462
|
expected_file_content = <<EOT
|
|
448
463
|
---
|
|
449
464
|
meta:
|
|
450
465
|
board_id: 53186e8391ef8671265eba9d
|
|
451
466
|
sprint: 3
|
|
452
|
-
total_days:
|
|
467
|
+
total_days: 17
|
|
453
468
|
weekend_lines:
|
|
454
|
-
-
|
|
455
|
-
-
|
|
469
|
+
- 1.5
|
|
470
|
+
- 6.5
|
|
471
|
+
- 11.5
|
|
472
|
+
- 16.5
|
|
456
473
|
days: []
|
|
457
474
|
EOT
|
|
475
|
+
chart.create_next_sprint(path, { total_days: 17, weekend_lines: [1.5, 6.5, 11.5, 16.5] })
|
|
476
|
+
|
|
477
|
+
expect(File.exist?(next_sprint_file)).to be true
|
|
458
478
|
expect(File.read(next_sprint_file)).to eq expected_file_content
|
|
459
479
|
end
|
|
460
480
|
end
|
data/spec/unit/cli_spec.rb
CHANGED
|
@@ -17,8 +17,8 @@ describe Cli do
|
|
|
17
17
|
@cli.options = {"board-list" => "spec/data/board-list.yaml",
|
|
18
18
|
"output" => dir}
|
|
19
19
|
@cli.burndowns
|
|
20
|
-
expect(File.exist?(File.join(dir,"orange/burndown-data-01.yaml")))
|
|
21
|
-
expect(File.exist?(File.join(dir,"blue/burndown-data-01.yaml")))
|
|
20
|
+
expect(File.exist?(File.join(dir, "orange/burndown-data-01.yaml")))
|
|
21
|
+
expect(File.exist?(File.join(dir, "blue/burndown-data-01.yaml")))
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
it "backups board" do
|
data/spec/unit/settings_spec.rb
CHANGED
|
@@ -6,7 +6,7 @@ describe Settings do
|
|
|
6
6
|
|
|
7
7
|
context "given config file" do
|
|
8
8
|
before(:each) do
|
|
9
|
-
@settings = Settings.new( File.expand_path('../../data/trollolorc',__FILE__) )
|
|
9
|
+
@settings = Settings.new( File.expand_path('../../data/trollolorc', __FILE__) )
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
it "is not verbose by default" do
|
|
@@ -21,7 +21,7 @@ describe Settings do
|
|
|
21
21
|
context "#scrum" do
|
|
22
22
|
context "when setting is missing" do
|
|
23
23
|
before do
|
|
24
|
-
@settings = Settings.new( File.expand_path('../../data/trollolorc_with_board_aliases',__FILE__) )
|
|
24
|
+
@settings = Settings.new( File.expand_path('../../data/trollolorc_with_board_aliases', __FILE__) )
|
|
25
25
|
end
|
|
26
26
|
it "returns default settings" do
|
|
27
27
|
expect(@settings.scrum["board_names"]).to eq({"planning"=>"Planning Board", "sprint"=>"Sprint Board"})
|
|
@@ -45,7 +45,7 @@ describe Settings do
|
|
|
45
45
|
|
|
46
46
|
context "when mapping exists" do
|
|
47
47
|
before do
|
|
48
|
-
@settings = Settings.new( File.expand_path('../../data/trollolorc_with_board_aliases',__FILE__) )
|
|
48
|
+
@settings = Settings.new( File.expand_path('../../data/trollolorc_with_board_aliases', __FILE__) )
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
it "returns the mapping" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trollolo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cornelius Schumacher
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-09-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -63,6 +63,8 @@ extra_rdoc_files: []
|
|
|
63
63
|
files:
|
|
64
64
|
- ".gitignore"
|
|
65
65
|
- ".rspec"
|
|
66
|
+
- ".rubocop.yml"
|
|
67
|
+
- ".rubocop_todo.yml"
|
|
66
68
|
- ".travis.yml"
|
|
67
69
|
- CHANGELOG.md
|
|
68
70
|
- CONTRIBUTING.md
|
|
@@ -199,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
199
201
|
version: 1.3.6
|
|
200
202
|
requirements: []
|
|
201
203
|
rubyforge_project: trollolo
|
|
202
|
-
rubygems_version: 2.
|
|
204
|
+
rubygems_version: 2.6.11
|
|
203
205
|
signing_key:
|
|
204
206
|
specification_version: 4
|
|
205
207
|
summary: Trello command line client
|