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
@@ -0,0 +1,190 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.trello.com/1/boards/xxxxx123?key=mykey&token=mytoken
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: Not Found
20
+ headers:
21
+ Cache-Control:
22
+ - max-age=0, must-revalidate, no-cache, no-store
23
+ X-Content-Type-Options:
24
+ - nosniff
25
+ Strict-Transport-Security:
26
+ - max-age=15768000
27
+ X-Xss-Protection:
28
+ - 1; mode=block
29
+ X-Frame-Options:
30
+ - DENY
31
+ X-Trello-Version:
32
+ - 1.823.0
33
+ X-Trello-Environment:
34
+ - Production
35
+ Access-Control-Allow-Origin:
36
+ - "*"
37
+ Access-Control-Allow-Methods:
38
+ - GET, PUT, POST, DELETE
39
+ Access-Control-Allow-Headers:
40
+ - Authorization, Accept, Content-Type
41
+ Expires:
42
+ - Thu, 01 Jan 1970 00:00:00
43
+ Content-Type:
44
+ - text/plain; charset=utf-8
45
+ Content-Length:
46
+ - '15'
47
+ Etag:
48
+ - W/"f-472b03d4"
49
+ Vary:
50
+ - Accept-Encoding
51
+ Date:
52
+ - Thu, 08 Dec 2016 14:37:42 GMT
53
+ Connection:
54
+ - keep-alive
55
+ Set-Cookie:
56
+ - dsc=ecd6bb73d12bbf1c533ff98172b014c54eb148d93ce0c6b0d11717d2328dab55; Path=/;
57
+ Expires=Sun, 11 Dec 2016 14:37:42 GMT; Secure
58
+ body:
59
+ encoding: UTF-8
60
+ string: board not found
61
+ http_version:
62
+ recorded_at: Thu, 08 Dec 2016 14:37:42 GMT
63
+ - request:
64
+ method: get
65
+ uri: https://api.trello.com/1/boards/neUHHzDo?key=mykey&token=mytoken
66
+ body:
67
+ encoding: US-ASCII
68
+ string: ''
69
+ headers:
70
+ Accept:
71
+ - "*/*; q=0.5, application/xml"
72
+ Accept-Encoding:
73
+ - gzip, deflate
74
+ User-Agent:
75
+ - Ruby
76
+ response:
77
+ status:
78
+ code: 200
79
+ message: OK
80
+ headers:
81
+ Cache-Control:
82
+ - max-age=0, must-revalidate, no-cache, no-store
83
+ X-Content-Type-Options:
84
+ - nosniff
85
+ Strict-Transport-Security:
86
+ - max-age=15768000
87
+ X-Xss-Protection:
88
+ - 1; mode=block
89
+ X-Frame-Options:
90
+ - DENY
91
+ X-Trello-Version:
92
+ - 1.823.0
93
+ X-Trello-Environment:
94
+ - Production
95
+ Access-Control-Allow-Origin:
96
+ - "*"
97
+ Access-Control-Allow-Methods:
98
+ - GET, PUT, POST, DELETE
99
+ Access-Control-Allow-Headers:
100
+ - Authorization, Accept, Content-Type
101
+ X-Server-Time:
102
+ - '1481207878569'
103
+ Expires:
104
+ - Thu, 01 Jan 1970 00:00:00
105
+ X-Trello-Index-Last-Update:
106
+ - '320'
107
+ Content-Type:
108
+ - application/json; charset=utf-8
109
+ Content-Length:
110
+ - '819'
111
+ Etag:
112
+ - W/"333-74078a25"
113
+ Vary:
114
+ - Accept-Encoding
115
+ Date:
116
+ - Thu, 08 Dec 2016 14:37:58 GMT
117
+ Connection:
118
+ - keep-alive
119
+ Set-Cookie:
120
+ - dsc=a325ff7dbef77d643ecdb8d237b339cf3394115c6adacfb0aafe6ec3ea1b1f81; Path=/;
121
+ Expires=Sun, 11 Dec 2016 14:37:58 GMT; Secure
122
+ body:
123
+ encoding: UTF-8
124
+ string: '{"id":"577b6e6e00d1313a68d3a60a","name":"Test Planning Board","desc":"","descData":null,"closed":false,"idOrganization":null,"pinned":false,"url":"https://trello.com/b/neUHHzDo/test-planning-board","shortUrl":"https://trello.com/b/neUHHzDo","prefs":{"permissionLevel":"private","voting":"disabled","comments":"members","invitations":"members","selfJoin":false,"cardCovers":true,"cardAging":"regular","calendarFeedEnabled":false,"background":"sky","backgroundImage":null,"backgroundImageScaled":null,"backgroundTile":false,"backgroundBrightness":"dark","backgroundColor":"#00AECC","canBePublic":true,"canBeOrg":true,"canBePrivate":true,"canInvite":true},"labelNames":{"green":"Needs
125
+ QA","yellow":"Under waterline","orange":"","red":"","purple":"Dependent","blue":"Sticky","sky":"","lime":"","pink":"","black":"Pairing"}}'
126
+ http_version:
127
+ recorded_at: Thu, 08 Dec 2016 14:37:58 GMT
128
+ - request:
129
+ method: get
130
+ uri: https://api.trello.com/1/boards/577b6e6e00d1313a68d3a60a/lists?filter=open&key=mykey&token=mytoken
131
+ body:
132
+ encoding: US-ASCII
133
+ string: ''
134
+ headers:
135
+ Accept:
136
+ - "*/*; q=0.5, application/xml"
137
+ Accept-Encoding:
138
+ - gzip, deflate
139
+ User-Agent:
140
+ - Ruby
141
+ response:
142
+ status:
143
+ code: 200
144
+ message: OK
145
+ headers:
146
+ Cache-Control:
147
+ - max-age=0, must-revalidate, no-cache, no-store
148
+ X-Content-Type-Options:
149
+ - nosniff
150
+ Strict-Transport-Security:
151
+ - max-age=15768000
152
+ X-Xss-Protection:
153
+ - 1; mode=block
154
+ X-Frame-Options:
155
+ - DENY
156
+ X-Trello-Version:
157
+ - 1.823.0
158
+ X-Trello-Environment:
159
+ - Production
160
+ Access-Control-Allow-Origin:
161
+ - "*"
162
+ Access-Control-Allow-Methods:
163
+ - GET, PUT, POST, DELETE
164
+ Access-Control-Allow-Headers:
165
+ - Authorization, Accept, Content-Type
166
+ X-Server-Time:
167
+ - '1481207878842'
168
+ Expires:
169
+ - Thu, 01 Jan 1970 00:00:00
170
+ Content-Type:
171
+ - application/json; charset=utf-8
172
+ Content-Length:
173
+ - '544'
174
+ Etag:
175
+ - W/"220-3da36da7"
176
+ Vary:
177
+ - Accept-Encoding
178
+ Date:
179
+ - Thu, 08 Dec 2016 14:37:58 GMT
180
+ Connection:
181
+ - keep-alive
182
+ Set-Cookie:
183
+ - dsc=6dd82d91b8bcc46e9ef5c2bd8fb47a683f9c5e10d16fdda30cdc7b62a89c38c1; Path=/;
184
+ Expires=Sun, 11 Dec 2016 14:37:58 GMT; Secure
185
+ body:
186
+ encoding: UTF-8
187
+ string: '[{"id":"57a78bc5980cdceb09195dc9","name":"Backlog Backup","closed":false,"idBoard":"577b6e6e00d1313a68d3a60a","pos":36863,"subscribed":false},{"id":"58496eff1a13c296478de254","name":"Backlog123","closed":false,"idBoard":"577b6e6e00d1313a68d3a60a","pos":84079,"subscribed":false},{"id":"577b6e75ce0f88ec9af823c0","name":"Done","closed":false,"idBoard":"577b6e6e00d1313a68d3a60a","pos":131071,"subscribed":false},{"id":"578e03cf104153b060cc27bd","name":"Ready","closed":false,"idBoard":"577b6e6e00d1313a68d3a60a","pos":344063,"subscribed":false}]'
188
+ http_version:
189
+ recorded_at: Thu, 08 Dec 2016 14:37:58 GMT
190
+ recorded_with: VCR 3.0.3