trollolo 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/Gemfile +1 -1
  4. data/README.md +97 -0
  5. data/lib/card.rb +0 -14
  6. data/lib/cli.rb +66 -27
  7. data/lib/empty_column.rb +5 -0
  8. data/lib/scrum/backlog_mover.rb +47 -0
  9. data/lib/scrum/card_type_detection.rb +23 -0
  10. data/lib/scrum/creator.rb +30 -0
  11. data/lib/scrum/prioritizer.rb +24 -0
  12. data/lib/scrum/priority_name.rb +15 -0
  13. data/lib/scrum/scrum_boards.rb +11 -0
  14. data/lib/scrum/sprint_board.rb +82 -0
  15. data/lib/scrum/sprint_cleaner.rb +41 -0
  16. data/lib/scrum/sprint_planning_board.rb +26 -0
  17. data/lib/scrum.rb +13 -0
  18. data/lib/scrum_board.rb +17 -7
  19. data/lib/settings.rb +36 -12
  20. data/lib/trello_service.rb +22 -0
  21. data/lib/trello_wrapper.rb +9 -23
  22. data/lib/trollolo.rb +3 -2
  23. data/lib/version.rb +1 -1
  24. data/man/trollolo.1.md +22 -1
  25. data/spec/data/board.json +3 -4
  26. data/spec/data/full-board-with-accepted.json +1817 -0
  27. data/spec/data/full-board.json +3 -27
  28. data/spec/data/trollolorc +13 -0
  29. data/spec/data/trollolorc_with_board_aliases +9 -0
  30. data/spec/data/vcr/creator_custom_config.yml +824 -0
  31. data/spec/data/vcr/creator_default_config.yml +824 -0
  32. data/spec/data/vcr/move_backlog.yml +2375 -0
  33. data/spec/data/vcr/move_backlog_missing_backlog.yml +155 -0
  34. data/spec/data/vcr/move_backlog_missing_waterbed.yml +364 -0
  35. data/spec/data/vcr/prioritize_backlog_list.yml +2335 -0
  36. data/spec/data/vcr/prioritize_no_backlog_list.yml +190 -0
  37. data/spec/data/vcr/sprint_board.yml +624 -0
  38. data/spec/data/vcr/sprint_board_no_waterline.yml +556 -0
  39. data/spec/data/vcr/sprint_cleanup.yml +1239 -7500
  40. data/spec/data/vcr/sprint_planning_board.yml +239 -0
  41. data/spec/integration/create_burndown_spec.rb +1 -1
  42. data/spec/unit/card_spec.rb +0 -41
  43. data/spec/unit/cli_spec.rb +74 -1
  44. data/spec/unit/empty_column_spec.rb +9 -0
  45. data/spec/unit/scrum/backlog_mover_spec.rb +26 -0
  46. data/spec/unit/scrum/card_type_detection_spec.rb +35 -0
  47. data/spec/unit/scrum/creator_spec.rb +23 -0
  48. data/spec/unit/scrum/prioritizer_spec.rb +45 -0
  49. data/spec/unit/scrum/priority_name_spec.rb +35 -0
  50. data/spec/unit/scrum/sprint_board_spec.rb +22 -0
  51. data/spec/unit/scrum/sprint_cleaner_spec.rb +26 -0
  52. data/spec/unit/scrum/sprint_planning_board_spec.rb +14 -0
  53. data/spec/unit/scrum_board_spec.rb +90 -0
  54. data/spec/unit/settings_spec.rb +42 -6
  55. data/spec/unit/spec_helper.rb +3 -2
  56. data/spec/unit/support/update_webmock_data +3 -1
  57. data/spec/unit/support/vcr.rb +8 -8
  58. data/spec/unit/support/webmocks.rb +9 -0
  59. data/spec/unit/trello_wrapper_spec.rb +20 -0
  60. data/trollolo.gemspec +2 -1
  61. metadata +52 -9
  62. data/lib/prioritizer.rb +0 -34
  63. data/lib/sprint_cleanup.rb +0 -54
  64. data/spec/unit/prioritizer_spec.rb +0 -47
  65. data/spec/unit/sprint_cleanup_spec.rb +0 -18
@@ -18,7 +18,6 @@
18
18
  "cardAging": "regular",
19
19
  "calendarFeedEnabled": false,
20
20
  "background": "5319bb612fb0bcdf451401a8",
21
- "backgroundColor": null,
22
21
  "backgroundImage": "https://trello-backgrounds.s3.amazonaws.com/4e727168cb2ac700002cf6b6/990df8f044b98679ccbef943beff54d6/4268316033_6d847a0219_b.jpg",
23
22
  "backgroundImageScaled": [
24
23
  {
@@ -44,9 +43,9 @@
44
43
  ],
45
44
  "backgroundTile": false,
46
45
  "backgroundBrightness": "light",
47
- "canBePublic": false,
48
- "canBeOrg": false,
49
- "canBePrivate": false,
46
+ "canBePublic": true,
47
+ "canBeOrg": true,
48
+ "canBePrivate": true,
50
49
  "canInvite": true
51
50
  },
52
51
  "labelNames": {
@@ -98,7 +97,6 @@
98
97
  "due": null
99
98
  },
100
99
  "due": null,
101
- "email": "trello@example.com",
102
100
  "idChecklists": [
103
101
 
104
102
  ],
@@ -157,7 +155,6 @@
157
155
  "due": null
158
156
  },
159
157
  "due": null,
160
- "email": "trello@example.com",
161
158
  "idChecklists": [
162
159
  "5319c22c584448bf2c314936"
163
160
  ],
@@ -249,7 +246,6 @@
249
246
  "due": null
250
247
  },
251
248
  "due": null,
252
- "email": "trello@example.com",
253
249
  "idChecklists": [
254
250
  "5319c5b3d9e20a072df0400a"
255
251
  ],
@@ -324,7 +320,6 @@
324
320
  "due": null
325
321
  },
326
322
  "due": null,
327
- "email": "trello@example.com",
328
323
  "idChecklists": [
329
324
  "5319c5ce8cf780f37d4c0b35"
330
325
  ],
@@ -399,7 +394,6 @@
399
394
  "due": null
400
395
  },
401
396
  "due": null,
402
- "email": "trello@example.com",
403
397
  "idChecklists": [
404
398
 
405
399
  ],
@@ -458,7 +452,6 @@
458
452
  "due": null
459
453
  },
460
454
  "due": null,
461
- "email": "trello@example.com",
462
455
  "idChecklists": [
463
456
  "5319c5ea7b7a51a62bc907a1"
464
457
  ],
@@ -539,7 +532,6 @@
539
532
  "due": null
540
533
  },
541
534
  "due": null,
542
- "email": "trello@example.com",
543
535
  "idChecklists": [
544
536
  "5319c1cd55ed32bd2bb998eb",
545
537
  "54d8d6905a4c941656e68ac5"
@@ -644,7 +636,6 @@
644
636
  "due": null
645
637
  },
646
638
  "due": null,
647
- "email": "trello@example.com",
648
639
  "idChecklists": [
649
640
  "5644a75c36ae567f29215587"
650
641
  ],
@@ -725,7 +716,6 @@
725
716
  "due": null
726
717
  },
727
718
  "due": null,
728
- "email": "trello@example.com",
729
719
  "idChecklists": [
730
720
 
731
721
  ],
@@ -784,7 +774,6 @@
784
774
  "due": null
785
775
  },
786
776
  "due": null,
787
- "email": "trello@example.com",
788
777
  "idChecklists": [
789
778
 
790
779
  ],
@@ -854,7 +843,6 @@
854
843
  "due": null
855
844
  },
856
845
  "due": null,
857
- "email": "trello@example.com",
858
846
  "idChecklists": [
859
847
  "5319c09cab4511c37d2a6254"
860
848
  ],
@@ -936,7 +924,6 @@
936
924
  "due": null
937
925
  },
938
926
  "due": null,
939
- "email": "trello@example.com",
940
927
  "idChecklists": [
941
928
 
942
929
  ],
@@ -995,7 +982,6 @@
995
982
  "due": null
996
983
  },
997
984
  "due": null,
998
- "email": "trello@example.com",
999
985
  "idChecklists": [
1000
986
 
1001
987
  ],
@@ -1057,7 +1043,6 @@
1057
1043
  "due": null
1058
1044
  },
1059
1045
  "due": null,
1060
- "email": "trello@example.com",
1061
1046
  "idChecklists": [
1062
1047
 
1063
1048
  ],
@@ -1116,7 +1101,6 @@
1116
1101
  "due": null
1117
1102
  },
1118
1103
  "due": null,
1119
- "email": "trello@example.com",
1120
1104
  "idChecklists": [
1121
1105
 
1122
1106
  ],
@@ -1180,7 +1164,6 @@
1180
1164
  "due": null
1181
1165
  },
1182
1166
  "due": null,
1183
- "email": "trello@example.com",
1184
1167
  "idChecklists": [
1185
1168
  "5319c04d592a9182153db831"
1186
1169
  ],
@@ -1265,7 +1248,6 @@
1265
1248
  "due": null
1266
1249
  },
1267
1250
  "due": null,
1268
- "email": "trello@example.com",
1269
1251
  "idChecklists": [
1270
1252
 
1271
1253
  ],
@@ -1324,7 +1306,6 @@
1324
1306
  "due": null
1325
1307
  },
1326
1308
  "due": null,
1327
- "email": "trello@example.com",
1328
1309
  "idChecklists": [
1329
1310
 
1330
1311
  ],
@@ -1390,7 +1371,6 @@
1390
1371
  "due": null
1391
1372
  },
1392
1373
  "due": null,
1393
- "email": "trello@example.com",
1394
1374
  "idChecklists": [
1395
1375
  "5319bfca9876ce6d4591c4b2"
1396
1376
  ],
@@ -1480,7 +1460,6 @@
1480
1460
  "due": null
1481
1461
  },
1482
1462
  "due": null,
1483
- "email": "trello@example.com",
1484
1463
  "idChecklists": [
1485
1464
  "5319bfaa8ff351c22b123ad0"
1486
1465
  ],
@@ -1572,7 +1551,6 @@
1572
1551
  "due": null
1573
1552
  },
1574
1553
  "due": null,
1575
- "email": "trello@example.com",
1576
1554
  "idChecklists": [
1577
1555
  "5319bfeb2d638eb411117815"
1578
1556
  ],
@@ -1643,7 +1621,6 @@
1643
1621
  "due": null
1644
1622
  },
1645
1623
  "due": null,
1646
- "email": "trello@example.com",
1647
1624
  "idChecklists": [
1648
1625
 
1649
1626
  ],
@@ -1699,7 +1676,6 @@
1699
1676
  "due": null
1700
1677
  },
1701
1678
  "due": null,
1702
- "email": "trello@example.com",
1703
1679
  "idChecklists": [
1704
1680
 
1705
1681
  ],
data/spec/data/trollolorc CHANGED
@@ -5,3 +5,16 @@ not_done_columns:
5
5
  - Doing
6
6
  - In review
7
7
  - Sprint Backlog
8
+ scrum:
9
+ board_names:
10
+ planning: Planning Board
11
+ sprint: Sprint Board
12
+ label_names:
13
+ sticky: Sticky
14
+ waterline: Waterline
15
+ list_names:
16
+ sprint_backlog: Sprint Backlog
17
+ sprint_qa: QA
18
+ sprint_doing: Doing
19
+ planning_backlog: Backlog
20
+ planning_ready: Ready for Estimation
@@ -0,0 +1,9 @@
1
+ developer_public_key: mykey
2
+ member_token: mytoken
3
+ not_done_columns:
4
+ - Blocked
5
+ - Doing
6
+ - In review
7
+ - Sprint Backlog
8
+ board_aliases:
9
+ MyTrelloBoard: 53186e8391ef8671265eba9d