tracker_custom_points 0.0.3

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.
@@ -0,0 +1,4 @@
1
+ config/config.yml
2
+ pkg/*
3
+ *.gem
4
+ .bundle
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in tracker_custom_points.gemspec
4
+ gemspec
@@ -0,0 +1,29 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ tracker_custom_points (0.0.2)
5
+ pivotal-tracker
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ builder (2.1.2)
11
+ happymapper (0.3.2)
12
+ libxml-ruby (~> 1.1.3)
13
+ libxml-ruby (1.1.4)
14
+ mime-types (1.16)
15
+ nokogiri (1.4.3.1)
16
+ pivotal-tracker (0.2.2)
17
+ builder
18
+ happymapper (>= 0.3.2)
19
+ nokogiri (~> 1.4.3.1)
20
+ rest-client (~> 1.6.0)
21
+ rest-client (1.6.1)
22
+ mime-types (>= 1.16)
23
+
24
+ PLATFORMS
25
+ ruby
26
+
27
+ DEPENDENCIES
28
+ pivotal-tracker
29
+ tracker_custom_points!
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2010 Jason Noble
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.
@@ -0,0 +1,67 @@
1
+ = Tracker Custom Points
2
+
3
+ == Quick Start
4
+ cp config.yml.example config.yml
5
+ vi config.yml
6
+ ruby ./tracker_custom_points.rb
7
+
8
+ == Custom Point Values for Pivotal Tracker
9
+
10
+ Pivotal Tracker has three options when it comes to
11
+ point values: Powers of Two, Fibonacci and Linear.
12
+
13
+ I wanted to be able to use the Planning Poker cards
14
+ and use ?, 0, 1/2, 1, 2, 3, 5, 8, 13, 20, 40, 100
15
+ and infinity as point values.
16
+
17
+ == Mapping Planning Poker to Pivotal Tracker
18
+
19
+ This script has a mapping table that maps Tracker's
20
+ point values to the planning poker values and vice-versa.
21
+
22
+ Default Point Mapping:
23
+ Poker Points Pivotal Tracker Points
24
+ =============== ===============================
25
+ 0, 1/2 0
26
+ 1, 2 1
27
+ 3, 5 2
28
+ 8, 13 3
29
+ 20, 40 5
30
+ 100 8
31
+
32
+ If you want to modify these mappings, edit mappings.yml.
33
+
34
+ == How this script works
35
+
36
+ This script will look through your Pivotal Tracker Project(s)
37
+ and for each unfinished story, it will set the estimate in
38
+ Pivotal Tracker.
39
+
40
+ In your pivotal tracker subject line, add the Planning Poker
41
+ point estimate.
42
+
43
+ Change
44
+
45
+ Implement Login Page
46
+
47
+ to
48
+
49
+ (5) Implement Login Page
50
+
51
+ This script will then change the point estimate on that story
52
+ according to your mappings.
53
+
54
+
55
+ == Note on Patches/Pull Requests
56
+
57
+ * Fork the project.
58
+ * Make your feature addition or bug fix.
59
+ * Add tests for it. This is important so I don't break it in a
60
+ future version unintentionally.
61
+ * Commit, do not mess with rakefile, version, or history.
62
+ (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
63
+ * Send me a pull request. Bonus points for topic branches.
64
+
65
+ == Copyright
66
+
67
+ Copyright (c) 2010 Jason Noble. See LICENSE for details.
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -0,0 +1,37 @@
1
+ require 'rubygems'
2
+ require 'pivotal-tracker'
3
+ require 'yaml'
4
+
5
+ if File.exists?(File.join(ENV['HOME'], '.tracker_custom_points_config.yml'))
6
+ config = YAML.load(open(File.join(ENV['HOME'], '.tracker_custom_points_config.yml')))
7
+ else
8
+ puts "You do not have your tracker_custom_points_config.yml file setup"
9
+ puts "\tcp #{File.join(File.dirname(__FILE__), '../config/config.yml.example')} ~/.tracker_custom_points_config.yml"
10
+ exit
11
+ end
12
+
13
+ if File.exists?(File.join(ENV['HOME'], '.tracker_custom_points_mappings.yml'))
14
+ mappings = YAML.load(open(File.join(ENV['HOME'], '.tracker_custom_points_mappings.yml')))
15
+ else
16
+ mappings = YAML.load(open(File.join(File.dirname(__FILE__), '../config/mappings.yml')))
17
+ end
18
+
19
+ PivotalTracker::Client.token = config['token']
20
+
21
+ config['projects'].each do |project_id|
22
+ project = PivotalTracker::Project.find(project_id)
23
+ stories = project.stories.all(:current_state => ['finished', 'delivered', 'unscheduled', 'unstarted', 'started'])
24
+ stories.each do |story|
25
+ point_estimate = story.name[ /\(([\d\/]+)\)/, 1]
26
+ if point_estimate && mappings[point_estimate] && story.estimate != mappings[point_estimate]
27
+ print "Updating story #{story.id} point estimate to #{mappings[point_estimate]}..."
28
+ begin
29
+ story.update(:estimate => mappings[point_estimate])
30
+ rescue RestClient::RequestFailed
31
+ print "Update failed"
32
+ ensure
33
+ puts ""
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,4 @@
1
+ token: your_pivotal_token_here # Available at https://www.pivotaltracker.com/profile
2
+ projects:
3
+ - project_id # Project Name
4
+ - project_id # Project Name
@@ -0,0 +1,12 @@
1
+ ---
2
+ "0": 0
3
+ "1/2": 0
4
+ "1": 1
5
+ "2": 1
6
+ "3": 2
7
+ "5": 2
8
+ "8": 3
9
+ "13": 3
10
+ "20": 5
11
+ "40": 5
12
+ "100": 8
File without changes
@@ -0,0 +1,3 @@
1
+ module TrackerCustomPoints
2
+ VERSION = "0.0.3"
3
+ end
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "tracker_custom_points/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "tracker_custom_points"
7
+ s.version = TrackerCustomPoints::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Jason Noble"]
10
+ s.email = ["perlwizard@gmail.com"]
11
+ s.homepage = "http://github.org/jasonnoble/tracker_custom_points"
12
+ s.summary = %q{Custom Point Values for Pivotal Tracker}
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
+ s.require_paths = ["lib"]
18
+
19
+ s.add_dependency "pivotal-tracker"
20
+ end
metadata ADDED
@@ -0,0 +1,92 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tracker_custom_points
3
+ version: !ruby/object:Gem::Version
4
+ hash: 25
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 3
10
+ version: 0.0.3
11
+ platform: ruby
12
+ authors:
13
+ - Jason Noble
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-10-22 00:00:00 -04:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: pivotal-tracker
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ description:
36
+ email:
37
+ - perlwizard@gmail.com
38
+ executables:
39
+ - tracker_custom_points.rb
40
+ extensions: []
41
+
42
+ extra_rdoc_files: []
43
+
44
+ files:
45
+ - .gitignore
46
+ - Gemfile
47
+ - Gemfile.lock
48
+ - LICENSE
49
+ - README.rdoc
50
+ - Rakefile
51
+ - bin/tracker_custom_points.rb
52
+ - config/config.yml.example
53
+ - config/mappings.yml
54
+ - lib/tracker_custom_points.rb
55
+ - lib/tracker_custom_points/version.rb
56
+ - tracker_custom_points.gemspec
57
+ has_rdoc: true
58
+ homepage: http://github.org/jasonnoble/tracker_custom_points
59
+ licenses: []
60
+
61
+ post_install_message:
62
+ rdoc_options: []
63
+
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ hash: 3
72
+ segments:
73
+ - 0
74
+ version: "0"
75
+ required_rubygems_version: !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ hash: 3
81
+ segments:
82
+ - 0
83
+ version: "0"
84
+ requirements: []
85
+
86
+ rubyforge_project:
87
+ rubygems_version: 1.3.7
88
+ signing_key:
89
+ specification_version: 3
90
+ summary: Custom Point Values for Pivotal Tracker
91
+ test_files: []
92
+