risk_of_burns 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rvmrc +1 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +37 -0
- data/LICENSE.txt +20 -0
- data/README.md +37 -0
- data/Rakefile +47 -0
- data/VERSION +1 -0
- data/bin/risk_of_burns +37 -0
- data/lib/risk_of_burns.rb +0 -0
- data/test/helper.rb +19 -0
- metadata +128 -0
data/.document
ADDED
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm use ruby-1.9.3@risk_of_burns --create --install
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
git (1.2.5)
|
5
|
+
jeweler (1.7.0)
|
6
|
+
bundler (~> 1.0)
|
7
|
+
git (>= 1.2.5)
|
8
|
+
rake
|
9
|
+
rdoc
|
10
|
+
json (1.6.5)
|
11
|
+
minitest (2.10.1)
|
12
|
+
rake (0.9.2.2)
|
13
|
+
rdoc (3.12)
|
14
|
+
json (~> 1.4)
|
15
|
+
redcarpet (1.17.2)
|
16
|
+
reek (1.2.8)
|
17
|
+
ruby2ruby (~> 1.2)
|
18
|
+
ruby_parser (~> 2.0)
|
19
|
+
sexp_processor (~> 3.0)
|
20
|
+
ruby2ruby (1.3.1)
|
21
|
+
ruby_parser (~> 2.0)
|
22
|
+
sexp_processor (~> 3.0)
|
23
|
+
ruby_parser (2.3.1)
|
24
|
+
sexp_processor (~> 3.0)
|
25
|
+
sexp_processor (3.0.10)
|
26
|
+
yard (0.7.4)
|
27
|
+
|
28
|
+
PLATFORMS
|
29
|
+
ruby
|
30
|
+
|
31
|
+
DEPENDENCIES
|
32
|
+
bundler
|
33
|
+
jeweler
|
34
|
+
minitest
|
35
|
+
redcarpet (~> 1.0)
|
36
|
+
reek
|
37
|
+
yard
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2012 John Wilger
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# risk_of_burns #
|
2
|
+
|
3
|
+
risk_of_burns is a simple console application that uses James Shore's [method to
|
4
|
+
calculate the numbers for a risk-adjusted release burn-up chart] [1].
|
5
|
+
|
6
|
+
## Installation ##
|
7
|
+
|
8
|
+
Assuming you have Ruby and Rubygems installed, just run:
|
9
|
+
|
10
|
+
gem install risk_of_burns
|
11
|
+
|
12
|
+
## Usage ##
|
13
|
+
|
14
|
+
Just run:
|
15
|
+
|
16
|
+
risk_of_burns
|
17
|
+
|
18
|
+
The script will ask you a few questions about work completed, velocity and
|
19
|
+
remaining iterations, then it will spit out the numbers for both a "rigorous"
|
20
|
+
and a "risky" project ([as defined by James] [1]).
|
21
|
+
|
22
|
+
## Contributing to risk_of_burns ##
|
23
|
+
|
24
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
25
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
26
|
+
* Fork the project.
|
27
|
+
* Start a feature/bugfix branch.
|
28
|
+
* Commit and push until you are happy with your contribution.
|
29
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
30
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
31
|
+
|
32
|
+
## Copyright ##
|
33
|
+
|
34
|
+
Copyright © 2012 John Wilger. See LICENSE.txt for
|
35
|
+
further details.
|
36
|
+
|
37
|
+
[1]: http://jamesshore.com/Blog/Use-Risk-Management-to-Make-Solid-Commitments.html "Use Risk Management to Make Solid Commitments"
|
data/Rakefile
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "risk_of_burns"
|
18
|
+
gem.homepage = "http://github.com/jwilger/risk_of_burns"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{Calculate cone of uncertainty for ongoing release planning}
|
21
|
+
gem.description = %Q{Uses James Shore's method to calculate risk-adjusted burn-up.}
|
22
|
+
gem.email = "johnwilger@gmail.com"
|
23
|
+
gem.authors = ["John Wilger"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rake/testtask'
|
29
|
+
Rake::TestTask.new(:test) do |test|
|
30
|
+
test.libs << 'lib' << 'test'
|
31
|
+
test.pattern = 'test/**/test_*.rb'
|
32
|
+
test.verbose = true
|
33
|
+
end
|
34
|
+
|
35
|
+
require 'reek/rake/task'
|
36
|
+
Reek::Rake::Task.new do |t|
|
37
|
+
t.fail_on_error = true
|
38
|
+
t.verbose = false
|
39
|
+
t.source_files = 'lib/**/*.rb'
|
40
|
+
end
|
41
|
+
|
42
|
+
task :default => :test
|
43
|
+
|
44
|
+
require 'yard'
|
45
|
+
YARD::Rake::YardocTask.new do |y|
|
46
|
+
y.options = %w(-m markdown)
|
47
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
data/bin/risk_of_burns
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
print "Points completed to date: "
|
4
|
+
points_completed = STDIN.gets.strip.to_i
|
5
|
+
|
6
|
+
print "Projected velocity (per iteration): "
|
7
|
+
velocity = STDIN.gets.strip.to_i
|
8
|
+
|
9
|
+
print "Iterations remaining: "
|
10
|
+
iterations = STDIN.gets.strip.to_i
|
11
|
+
|
12
|
+
|
13
|
+
def calculate_points(type, odds, points_completed, velocity, iterations)
|
14
|
+
risk_factor = {
|
15
|
+
:risky => {
|
16
|
+
'10%' => 1,
|
17
|
+
'50%' => 2,
|
18
|
+
'90%' => 4
|
19
|
+
},
|
20
|
+
:rigorous => {
|
21
|
+
'10%' => 1,
|
22
|
+
'50%' => 1.4,
|
23
|
+
'90%' => 1.8
|
24
|
+
}
|
25
|
+
}
|
26
|
+
points_completed + (velocity * iterations / risk_factor[type][odds]).floor
|
27
|
+
end
|
28
|
+
|
29
|
+
puts "If your project is rigorous (team consistently delivers the same\nvelocity from week to week):"
|
30
|
+
puts "10% chance of delivering: " + calculate_points(:rigorous, '10%', points_completed, velocity, iterations).to_s
|
31
|
+
puts "50% chance of delivering: " + calculate_points(:rigorous, '50%', points_completed, velocity, iterations).to_s
|
32
|
+
puts "90% chance of delivering: " + calculate_points(:rigorous, '90%', points_completed, velocity, iterations).to_s
|
33
|
+
|
34
|
+
puts "If your project is risky (team does not consistently deliver the same\nvelocity from week to week):"
|
35
|
+
puts "10% chance of delivering: " + calculate_points(:risky, '10%', points_completed, velocity, iterations).to_s
|
36
|
+
puts "50% chance of delivering: " + calculate_points(:risky, '50%', points_completed, velocity, iterations).to_s
|
37
|
+
puts "90% chance of delivering: " + calculate_points(:risky, '90%', points_completed, velocity, iterations).to_s
|
File without changes
|
data/test/helper.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'minitest/unit'
|
11
|
+
|
12
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
13
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
+
require 'risk_of_burns'
|
15
|
+
|
16
|
+
class MiniTest::Unit::TestCase
|
17
|
+
end
|
18
|
+
|
19
|
+
MiniTest::Unit.autorun
|
metadata
ADDED
@@ -0,0 +1,128 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: risk_of_burns
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- John Wilger
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-01-23 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: minitest
|
16
|
+
requirement: &2154258820 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2154258820
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: redcarpet
|
27
|
+
requirement: &2154258060 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *2154258060
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: yard
|
38
|
+
requirement: &2154257480 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2154257480
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: &2154256800 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *2154256800
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: jeweler
|
60
|
+
requirement: &2154256180 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *2154256180
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: reek
|
71
|
+
requirement: &2154279100 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *2154279100
|
80
|
+
description: Uses James Shore's method to calculate risk-adjusted burn-up.
|
81
|
+
email: johnwilger@gmail.com
|
82
|
+
executables:
|
83
|
+
- risk_of_burns
|
84
|
+
extensions: []
|
85
|
+
extra_rdoc_files:
|
86
|
+
- LICENSE.txt
|
87
|
+
- README.md
|
88
|
+
files:
|
89
|
+
- .document
|
90
|
+
- .rvmrc
|
91
|
+
- Gemfile
|
92
|
+
- Gemfile.lock
|
93
|
+
- LICENSE.txt
|
94
|
+
- README.md
|
95
|
+
- Rakefile
|
96
|
+
- VERSION
|
97
|
+
- bin/risk_of_burns
|
98
|
+
- lib/risk_of_burns.rb
|
99
|
+
- test/helper.rb
|
100
|
+
homepage: http://github.com/jwilger/risk_of_burns
|
101
|
+
licenses:
|
102
|
+
- MIT
|
103
|
+
post_install_message:
|
104
|
+
rdoc_options: []
|
105
|
+
require_paths:
|
106
|
+
- lib
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
segments:
|
114
|
+
- 0
|
115
|
+
hash: -2926309215532658026
|
116
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
requirements: []
|
123
|
+
rubyforge_project:
|
124
|
+
rubygems_version: 1.8.10
|
125
|
+
signing_key:
|
126
|
+
specification_version: 3
|
127
|
+
summary: Calculate cone of uncertainty for ongoing release planning
|
128
|
+
test_files: []
|