trello_lead_time 0.0.1
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 +7 -0
- data/.gitignore +2 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +81 -0
- data/LICENSE.md +21 -0
- data/README.md +88 -0
- data/Rakefile +1 -0
- data/lib/trello_lead_time.rb +10 -0
- data/lib/trello_lead_time/action.rb +23 -0
- data/lib/trello_lead_time/board.rb +58 -0
- data/lib/trello_lead_time/card.rb +47 -0
- data/lib/trello_lead_time/config.rb +36 -0
- data/lib/trello_lead_time/list.rb +69 -0
- data/lib/trello_lead_time/time_humanizer.rb +13 -0
- data/lib/trello_lead_time/timeline.rb +142 -0
- data/lib/trello_lead_time/version.rb +3 -0
- data/sample.rb +33 -0
- data/spec/fixtures/actions.1111.json +146 -0
- data/spec/fixtures/actions.2222.json +146 -0
- data/spec/fixtures/actions.3333.json +146 -0
- data/spec/fixtures/actions.4444.json +146 -0
- data/spec/fixtures/boards.json +112 -0
- data/spec/fixtures/card.json +45 -0
- data/spec/fixtures/cards.json +18 -0
- data/spec/fixtures/lists.json +10 -0
- data/spec/fixtures/organization.json +12 -0
- data/spec/lib/trello_lead_time/board_spec.rb +115 -0
- data/spec/lib/trello_lead_time/card_spec.rb +24 -0
- data/spec/lib/trello_lead_time/config_spec.rb +50 -0
- data/spec/lib/trello_lead_time/list_spec.rb +6 -0
- data/spec/lib/trello_lead_time/time_humanizer_spec.rb +12 -0
- data/spec/lib/trello_lead_time_spec.rb +9 -0
- data/spec/spec_helper.rb +14 -0
- data/trello_lead_time.gemspec +23 -0
- metadata +124 -0
@@ -0,0 +1,146 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "1234",
|
4
|
+
"idMemberCreator": "1234",
|
5
|
+
"data": {
|
6
|
+
"listAfter": {
|
7
|
+
"name": "Done for 2014-04-11",
|
8
|
+
"id": "3333"
|
9
|
+
},
|
10
|
+
"listBefore": {
|
11
|
+
"name": "Acceptance",
|
12
|
+
"id": "5555"
|
13
|
+
},
|
14
|
+
"board": {
|
15
|
+
"shortLink": "1234",
|
16
|
+
"name": "Transp Backend",
|
17
|
+
"id": "1234"
|
18
|
+
},
|
19
|
+
"card": {
|
20
|
+
"shortLink": "1234",
|
21
|
+
"idShort": 1006,
|
22
|
+
"name": "SEARCH 2.0: Hit HL typeahead and apply filtering/fallbacks",
|
23
|
+
"id": "1234",
|
24
|
+
"idList": "1234"
|
25
|
+
},
|
26
|
+
"old": {
|
27
|
+
"idList": "1234"
|
28
|
+
}
|
29
|
+
},
|
30
|
+
"type": "updateCard",
|
31
|
+
"date": "2014-04-17T17:30:00.000Z",
|
32
|
+
"memberCreator": {
|
33
|
+
"id": "1234",
|
34
|
+
"avatarHash": "1234",
|
35
|
+
"fullName": "Connor Edstrom",
|
36
|
+
"initials": "CE",
|
37
|
+
"username": "connoredstrom"
|
38
|
+
}
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"id": "1234",
|
42
|
+
"idMemberCreator": "1234",
|
43
|
+
"data": {
|
44
|
+
"listAfter": {
|
45
|
+
"name": "Acceptance",
|
46
|
+
"id": "5555"
|
47
|
+
},
|
48
|
+
"listBefore": {
|
49
|
+
"name": "Development",
|
50
|
+
"id": "2222"
|
51
|
+
},
|
52
|
+
"board": {
|
53
|
+
"shortLink": "1234",
|
54
|
+
"name": "Transp Backend",
|
55
|
+
"id": "1234"
|
56
|
+
},
|
57
|
+
"card": {
|
58
|
+
"shortLink": "1234",
|
59
|
+
"idShort": 1006,
|
60
|
+
"name": "SEARCH 2.0: Hit HL typeahead and apply filtering/fallbacks",
|
61
|
+
"id": "1234",
|
62
|
+
"idList": "1234"
|
63
|
+
},
|
64
|
+
"old": {
|
65
|
+
"idList": "1234"
|
66
|
+
}
|
67
|
+
},
|
68
|
+
"type": "updateCard",
|
69
|
+
"date": "2014-04-16T16:20:00.000Z",
|
70
|
+
"memberCreator": {
|
71
|
+
"id": "1234",
|
72
|
+
"avatarHash": "1234",
|
73
|
+
"fullName": "Connor Edstrom",
|
74
|
+
"initials": "CE",
|
75
|
+
"username": "connoredstrom"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"id": "1234",
|
80
|
+
"idMemberCreator": "1234",
|
81
|
+
"data": {
|
82
|
+
"listAfter": {
|
83
|
+
"name": "Development",
|
84
|
+
"id": "2222"
|
85
|
+
},
|
86
|
+
"listBefore": {
|
87
|
+
"name": "Product Backlog",
|
88
|
+
"id": "1111"
|
89
|
+
},
|
90
|
+
"board": {
|
91
|
+
"shortLink": "1234",
|
92
|
+
"name": "Transp Backend",
|
93
|
+
"id": "1234"
|
94
|
+
},
|
95
|
+
"card": {
|
96
|
+
"shortLink": "1234",
|
97
|
+
"idShort": 1006,
|
98
|
+
"name": "SEARCH 2.0: Hit HL typeahead and apply filtering/fallbacks",
|
99
|
+
"id": "1234",
|
100
|
+
"idList": "1234"
|
101
|
+
},
|
102
|
+
"old": {
|
103
|
+
"idList": "1234"
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"type": "updateCard",
|
107
|
+
"date": "2014-04-09T15:05:00.000Z",
|
108
|
+
"memberCreator": {
|
109
|
+
"id": "1234",
|
110
|
+
"avatarHash": "1234",
|
111
|
+
"fullName": "Connor Edstrom",
|
112
|
+
"initials": "CE",
|
113
|
+
"username": "connoredstrom"
|
114
|
+
}
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"id": "1234",
|
118
|
+
"idMemberCreator": "1234",
|
119
|
+
"data": {
|
120
|
+
"board": {
|
121
|
+
"shortLink": "1234",
|
122
|
+
"name": "Transp Backend",
|
123
|
+
"id": "1234"
|
124
|
+
},
|
125
|
+
"list": {
|
126
|
+
"name": "Product Backlog",
|
127
|
+
"id": "1111"
|
128
|
+
},
|
129
|
+
"card": {
|
130
|
+
"shortLink": "1234",
|
131
|
+
"idShort": 1006,
|
132
|
+
"name": "SEARCH 2.0: Hit HL typeahead and apply filtering/fallbacks",
|
133
|
+
"id": "1234"
|
134
|
+
}
|
135
|
+
},
|
136
|
+
"type": "createCard",
|
137
|
+
"date": "2014-04-03T10:00:00.000Z",
|
138
|
+
"memberCreator": {
|
139
|
+
"id": "1234",
|
140
|
+
"avatarHash": "1234",
|
141
|
+
"fullName": "Connor Edstrom",
|
142
|
+
"initials": "CE",
|
143
|
+
"username": "connoredstrom"
|
144
|
+
}
|
145
|
+
}
|
146
|
+
]
|
@@ -0,0 +1,146 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "1234",
|
4
|
+
"idMemberCreator": "1234",
|
5
|
+
"data": {
|
6
|
+
"listAfter": {
|
7
|
+
"name": "Done for 2014-04-11",
|
8
|
+
"id": "3333"
|
9
|
+
},
|
10
|
+
"listBefore": {
|
11
|
+
"name": "Acceptance",
|
12
|
+
"id": "5555"
|
13
|
+
},
|
14
|
+
"board": {
|
15
|
+
"shortLink": "1234",
|
16
|
+
"name": "Transp Backend",
|
17
|
+
"id": "1234"
|
18
|
+
},
|
19
|
+
"card": {
|
20
|
+
"shortLink": "1234",
|
21
|
+
"idShort": 1006,
|
22
|
+
"name": "SEARCH 2.0: Hit HL typeahead and apply filtering/fallbacks",
|
23
|
+
"id": "1234",
|
24
|
+
"idList": "1234"
|
25
|
+
},
|
26
|
+
"old": {
|
27
|
+
"idList": "1234"
|
28
|
+
}
|
29
|
+
},
|
30
|
+
"type": "updateCard",
|
31
|
+
"date": "2014-04-30T15:10:00.000Z",
|
32
|
+
"memberCreator": {
|
33
|
+
"id": "1234",
|
34
|
+
"avatarHash": "1234",
|
35
|
+
"fullName": "Connor Edstrom",
|
36
|
+
"initials": "CE",
|
37
|
+
"username": "connoredstrom"
|
38
|
+
}
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"id": "1234",
|
42
|
+
"idMemberCreator": "1234",
|
43
|
+
"data": {
|
44
|
+
"listAfter": {
|
45
|
+
"name": "Acceptance",
|
46
|
+
"id": "5555"
|
47
|
+
},
|
48
|
+
"listBefore": {
|
49
|
+
"name": "Development",
|
50
|
+
"id": "2222"
|
51
|
+
},
|
52
|
+
"board": {
|
53
|
+
"shortLink": "1234",
|
54
|
+
"name": "Transp Backend",
|
55
|
+
"id": "1234"
|
56
|
+
},
|
57
|
+
"card": {
|
58
|
+
"shortLink": "1234",
|
59
|
+
"idShort": 1006,
|
60
|
+
"name": "SEARCH 2.0: Hit HL typeahead and apply filtering/fallbacks",
|
61
|
+
"id": "1234",
|
62
|
+
"idList": "1234"
|
63
|
+
},
|
64
|
+
"old": {
|
65
|
+
"idList": "1234"
|
66
|
+
}
|
67
|
+
},
|
68
|
+
"type": "updateCard",
|
69
|
+
"date": "2014-04-28T14:40:00.000Z",
|
70
|
+
"memberCreator": {
|
71
|
+
"id": "1234",
|
72
|
+
"avatarHash": "1234",
|
73
|
+
"fullName": "Connor Edstrom",
|
74
|
+
"initials": "CE",
|
75
|
+
"username": "connoredstrom"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"id": "1234",
|
80
|
+
"idMemberCreator": "1234",
|
81
|
+
"data": {
|
82
|
+
"listAfter": {
|
83
|
+
"name": "Development",
|
84
|
+
"id": "2222"
|
85
|
+
},
|
86
|
+
"listBefore": {
|
87
|
+
"name": "Product Backlog",
|
88
|
+
"id": "1111"
|
89
|
+
},
|
90
|
+
"board": {
|
91
|
+
"shortLink": "1234",
|
92
|
+
"name": "Transp Backend",
|
93
|
+
"id": "1234"
|
94
|
+
},
|
95
|
+
"card": {
|
96
|
+
"shortLink": "1234",
|
97
|
+
"idShort": 1006,
|
98
|
+
"name": "SEARCH 2.0: Hit HL typeahead and apply filtering/fallbacks",
|
99
|
+
"id": "1234",
|
100
|
+
"idList": "1234"
|
101
|
+
},
|
102
|
+
"old": {
|
103
|
+
"idList": "1234"
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"type": "updateCard",
|
107
|
+
"date": "2014-04-22T08:00:00.000Z",
|
108
|
+
"memberCreator": {
|
109
|
+
"id": "1234",
|
110
|
+
"avatarHash": "1234",
|
111
|
+
"fullName": "Connor Edstrom",
|
112
|
+
"initials": "CE",
|
113
|
+
"username": "connoredstrom"
|
114
|
+
}
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"id": "1234",
|
118
|
+
"idMemberCreator": "1234",
|
119
|
+
"data": {
|
120
|
+
"board": {
|
121
|
+
"shortLink": "1234",
|
122
|
+
"name": "Transp Backend",
|
123
|
+
"id": "1234"
|
124
|
+
},
|
125
|
+
"list": {
|
126
|
+
"name": "Product Backlog",
|
127
|
+
"id": "1111"
|
128
|
+
},
|
129
|
+
"card": {
|
130
|
+
"shortLink": "1234",
|
131
|
+
"idShort": 1006,
|
132
|
+
"name": "SEARCH 2.0: Hit HL typeahead and apply filtering/fallbacks",
|
133
|
+
"id": "1234"
|
134
|
+
}
|
135
|
+
},
|
136
|
+
"type": "createCard",
|
137
|
+
"date": "2014-04-03T04:00:00.000Z",
|
138
|
+
"memberCreator": {
|
139
|
+
"id": "1234",
|
140
|
+
"avatarHash": "1234",
|
141
|
+
"fullName": "Connor Edstrom",
|
142
|
+
"initials": "CE",
|
143
|
+
"username": "connoredstrom"
|
144
|
+
}
|
145
|
+
}
|
146
|
+
]
|
@@ -0,0 +1,112 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"id": "myboard_id",
|
4
|
+
"name": "Development Team",
|
5
|
+
"desc": "",
|
6
|
+
"descData": null,
|
7
|
+
"closed": false,
|
8
|
+
"idOrganization": "myorg_id",
|
9
|
+
"invited": false,
|
10
|
+
"pinned": true,
|
11
|
+
"starred": false,
|
12
|
+
"url": "http://trello.com/b/1234/board_name",
|
13
|
+
"prefs": {
|
14
|
+
"permissionLevel": "org",
|
15
|
+
"voting": "disabled",
|
16
|
+
"comments": "members",
|
17
|
+
"invitations": "members",
|
18
|
+
"selfJoin": false,
|
19
|
+
"cardCovers": true,
|
20
|
+
"cardAging": "regular",
|
21
|
+
"background": "blue",
|
22
|
+
"backgroundColor": "#23719F",
|
23
|
+
"backgroundImage": null,
|
24
|
+
"backgroundImageScaled": null,
|
25
|
+
"backgroundTile": false,
|
26
|
+
"backgroundBrightness": "unknown",
|
27
|
+
"canBePublic": true,
|
28
|
+
"canBeOrg": true,
|
29
|
+
"canBePrivate": true,
|
30
|
+
"canInvite": true
|
31
|
+
},
|
32
|
+
"invitations": [],
|
33
|
+
"memberships": [
|
34
|
+
{
|
35
|
+
"id": "888888",
|
36
|
+
"idMember": "99999999",
|
37
|
+
"memberType": "admin",
|
38
|
+
"unconfirmed": false,
|
39
|
+
"deactivated": false
|
40
|
+
}
|
41
|
+
],
|
42
|
+
"shortLink": "123456",
|
43
|
+
"subscribed": false,
|
44
|
+
"labelNames": {
|
45
|
+
"red": "",
|
46
|
+
"orange": "",
|
47
|
+
"yellow": "",
|
48
|
+
"green": "",
|
49
|
+
"blue": "",
|
50
|
+
"purple": ""
|
51
|
+
},
|
52
|
+
"powerUps": [],
|
53
|
+
"dateLastActivity": "2014-03-12T16:57:41.519Z",
|
54
|
+
"dateLastView": "2014-03-27T20:24:34.082Z",
|
55
|
+
"shortUrl": "https://trello.com/b/123456678"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"id": "888888888",
|
59
|
+
"name": "Customer On-boarding",
|
60
|
+
"desc": "",
|
61
|
+
"descData": null,
|
62
|
+
"closed": false,
|
63
|
+
"idOrganization": "myorg_id",
|
64
|
+
"invited": false,
|
65
|
+
"pinned": true,
|
66
|
+
"starred": false,
|
67
|
+
"url": "https://trello.com/b/1234556888/customer-on-boarding",
|
68
|
+
"prefs": {
|
69
|
+
"permissionLevel": "org",
|
70
|
+
"voting": "disabled",
|
71
|
+
"comments": "members",
|
72
|
+
"invitations": "members",
|
73
|
+
"selfJoin": true,
|
74
|
+
"cardCovers": true,
|
75
|
+
"cardAging": "regular",
|
76
|
+
"background": "blue",
|
77
|
+
"backgroundColor": "#23719F",
|
78
|
+
"backgroundImage": null,
|
79
|
+
"backgroundImageScaled": null,
|
80
|
+
"backgroundTile": false,
|
81
|
+
"backgroundBrightness": "unknown",
|
82
|
+
"canBePublic": true,
|
83
|
+
"canBeOrg": true,
|
84
|
+
"canBePrivate": true,
|
85
|
+
"canInvite": true
|
86
|
+
},
|
87
|
+
"invitations": [],
|
88
|
+
"memberships": [
|
89
|
+
{
|
90
|
+
"id": "88888888888",
|
91
|
+
"idMember": "08831713",
|
92
|
+
"memberType": "admin",
|
93
|
+
"unconfirmed": false,
|
94
|
+
"deactivated": false
|
95
|
+
}
|
96
|
+
],
|
97
|
+
"shortLink": "777777",
|
98
|
+
"subscribed": false,
|
99
|
+
"labelNames": {
|
100
|
+
"red": "",
|
101
|
+
"orange": "",
|
102
|
+
"yellow": "",
|
103
|
+
"green": "",
|
104
|
+
"blue": "",
|
105
|
+
"purple": ""
|
106
|
+
},
|
107
|
+
"powerUps": [],
|
108
|
+
"dateLastActivity": "2014-03-27T19:23:30.436Z",
|
109
|
+
"dateLastView": "2014-03-26T19:06:08.918Z",
|
110
|
+
"shortUrl": "https://trello.com/b/6666666"
|
111
|
+
}
|
112
|
+
]
|
@@ -0,0 +1,45 @@
|
|
1
|
+
{
|
2
|
+
"id": "533dd01513e035206902124c",
|
3
|
+
"badges": {
|
4
|
+
"votes": 0,
|
5
|
+
"viewingMemberVoted": false,
|
6
|
+
"subscribed": false,
|
7
|
+
"fogbugz": "",
|
8
|
+
"checkItems": 1,
|
9
|
+
"checkItemsChecked": 1,
|
10
|
+
"comments": 0,
|
11
|
+
"attachments": 0,
|
12
|
+
"description": true,
|
13
|
+
"due": null
|
14
|
+
},
|
15
|
+
"checkItemStates": [
|
16
|
+
{
|
17
|
+
"idCheckItem": "533eb14b85db7251533b83e2",
|
18
|
+
"state": "complete"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"closed": false,
|
22
|
+
"dateLastActivity": "2014-04-11T14:24:41.817Z",
|
23
|
+
"desc": "Here is the description",
|
24
|
+
"descData": {
|
25
|
+
"emoji": {}
|
26
|
+
},
|
27
|
+
"due": null,
|
28
|
+
"idBoard": "520d5aa09b5a997f5a000e6b",
|
29
|
+
"idChecklists": [
|
30
|
+
"533eb1319c4629d21838241b"
|
31
|
+
],
|
32
|
+
"idList": "533ed74d095149ab1800b032",
|
33
|
+
"idMembers": [
|
34
|
+
"52053cb7497ccfe83a001f75",
|
35
|
+
"520541f8688f3e662400262c"
|
36
|
+
],
|
37
|
+
"idShort": 1006,
|
38
|
+
"idAttachmentCover": null,
|
39
|
+
"manualCoverAttachment": false,
|
40
|
+
"labels": [],
|
41
|
+
"name": "(3) SEARCH 2.0: Hit HL typeahead and apply filtering/fallbacks",
|
42
|
+
"pos": 81920.375,
|
43
|
+
"shortUrl": "https://trello.com/c/yQxfwOWB",
|
44
|
+
"url": "https://trello.com/c/yQxfwOWB/1006-3-search-2-0-hit-hl-typeahead-and-apply-filtering-fallbacks"
|
45
|
+
}
|