trello_lead_time 0.1.1 → 0.1.2
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/Gemfile.lock +1 -1
- data/README.md +14 -6
- data/lib/trello_lead_time/version.rb +1 -1
- data/sample.rb +13 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 904205f708050d8b62075e053346c1fd68d55df8
|
4
|
+
data.tar.gz: 973dc0bcbd6b5d5870b32b740dce5f1c71b098c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59c7f5637a70509d785cf64ac2469383b57efcff616beb14588d23f030103e58674545520626ff7ea6cc8b85a9ec0ca887411b245e9ee9fc81bb3c2b2ff2ab80
|
7
|
+
data.tar.gz: 791bd8306d02dc97906a83015721bb4b7aa22c1cab8ecab0b2f051d5df832dfcd3a8e0909083a6b7aef0f5d6b35537d3bea7b8d7e6d893eeebce9e0647ef155f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -55,7 +55,7 @@ When analyzing the timeline of each Trello card, the gem has to find out when it
|
|
55
55
|
You must provide a regular expression that will be compared to the names of lists a Trello card was in (at some point of its life) to identify when it was marked done.
|
56
56
|
|
57
57
|
list_name_matcher_for_done = /^Live/
|
58
|
-
|
58
|
+
|
59
59
|
Now that all those variables are set, you can configure the gem!
|
60
60
|
|
61
61
|
TrelloLeadTime.configure do |cfg|
|
@@ -75,14 +75,22 @@ Easy right? Now let's put it to use!
|
|
75
75
|
|
76
76
|
board = TrelloLeadTime::Board.from_url board_url
|
77
77
|
source_lists.each do |source_list|
|
78
|
+
totals = board.totals(source_list)
|
79
|
+
averages = board.averages(source_list)
|
80
|
+
|
78
81
|
puts "Using cards in list: #{source_list}"
|
79
|
-
puts "
|
80
|
-
puts "
|
81
|
-
puts "
|
82
|
-
puts "
|
82
|
+
puts "\tAverage Card Age: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(averages[:age][:overall])}"
|
83
|
+
puts "\tAverage Lead Time: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(averages[:lead_time][:overall])}"
|
84
|
+
puts "\tAverage Queue Time: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(averages[:queue_time][:overall])}"
|
85
|
+
puts "\tAverage Cycle Time: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(averages[:lead_time][:overall])}"
|
86
|
+
puts ""
|
87
|
+
puts "\tTotal Card Age: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(totals[:age][:overall])}"
|
88
|
+
puts "\tTotal Lead Time: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(totals[:lead_time][:overall])}"
|
89
|
+
puts "\tTotal Queue Time: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(totals[:queue_time][:overall])}"
|
90
|
+
puts "\tTotal Cycle Time: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(totals[:lead_time][:overall])}"
|
83
91
|
puts ""
|
84
92
|
end
|
85
93
|
|
86
|
-
For each of the source lists, the cards are analyzed and aggregate (average) metrics are displayed. This takes some time because the Trello API must be hit for each card being analyzed. Therefore, the longer the lists in Trello, the longer it takes to process.
|
94
|
+
For each of the source lists, the cards are analyzed and aggregate (average and total) metrics are displayed. This takes some time because the Trello API must be hit for each card being analyzed. Therefore, the longer the lists in Trello, the longer it takes to process.
|
87
95
|
|
88
96
|
See [sample.rb](sample.rb) for an entire listing of the explanation above.
|
data/sample.rb
CHANGED
@@ -23,11 +23,20 @@ puts "#{board_url}"
|
|
23
23
|
puts "-" * 40
|
24
24
|
|
25
25
|
board = TrelloLeadTime::Board.from_url board_url
|
26
|
+
|
26
27
|
source_lists.each do |source_list|
|
28
|
+
totals = board.totals(source_list)
|
29
|
+
averages = board.averages(source_list)
|
30
|
+
|
27
31
|
puts "Using cards in list: #{source_list}"
|
28
|
-
puts "
|
29
|
-
puts "
|
30
|
-
puts "
|
31
|
-
puts "
|
32
|
+
puts "\tAverage Card Age: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(averages[:age][:overall])}"
|
33
|
+
puts "\tAverage Lead Time: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(averages[:lead_time][:overall])}"
|
34
|
+
puts "\tAverage Queue Time: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(averages[:queue_time][:overall])}"
|
35
|
+
puts "\tAverage Cycle Time: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(averages[:lead_time][:overall])}"
|
36
|
+
puts ""
|
37
|
+
puts "\tTotal Card Age: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(totals[:age][:overall])}"
|
38
|
+
puts "\tTotal Lead Time: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(totals[:lead_time][:overall])}"
|
39
|
+
puts "\tTotal Queue Time: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(totals[:queue_time][:overall])}"
|
40
|
+
puts "\tTotal Cycle Time: #{TrelloLeadTime::TimeHumanizer.humanize_seconds(totals[:lead_time][:overall])}"
|
32
41
|
puts ""
|
33
42
|
end
|