git_pivotal_tracker 0.0.1 → 0.0.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.
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  git-tracker
2
2
  ===========
3
3
 
4
- Inspired by [Hashrocket's blend of git and Pivotal Tracker](http://reinh.com/blog/2009/03/02/a-git-workflow-for-agile-teams.html) and [a popular article on effective git workflows](http://blog.carbonfive.com/2010/11/01/integrating-topic-branches-in-git/), I wanted to build a tool to simplify the workflow between the two.
4
+ Inspired by [Hashrocket's blend of git and Pivotal Tracker](http://reinh.com/blog/2009/03/02/a-git-workflow-for-agile-teams.html) and [Carbon Five's article on effective git workflows](http://blog.carbonfive.com/2010/11/01/integrating-topic-branches-in-git/) and [the git-pivotal gem](https://github.com/trydionel/git-pivotal), I wanted a tool that makes the git workflow fun and simple.
5
5
 
6
- It also includes a git prepare-commit-msg hook that appends the story id to all your commit messages from a topic branch:
6
+ Included in this is a git prepare-commit-msg hook that appends the story id in the proper format to all your commit messages so that they show up in Tracker:
7
7
  [https://www.pivotaltracker.com/help/api?version=v3#github_hooks](https://www.pivotaltracker.com/help/api?version=v3#github_hooks)
8
8
 
9
9
  Features
@@ -27,52 +27,57 @@ Print out the Pivotal Tracker story information for the current topic branch
27
27
  Examples
28
28
  --------
29
29
 
30
- FIXME (code sample of usage)
30
+ * FIXME (code sample of usage)
31
31
 
32
32
  Requirements
33
33
  ------------
34
34
 
35
- * github
36
- * tracker project
37
- * github to tracker api integration turned on
35
+ * a github account
36
+ * a Pivotal Tracker project
37
+ * Pivotal Tracker api service hook turned on for your github project (under Admin -> Service Hooks)
38
38
 
39
39
  Install
40
40
  -------
41
41
 
42
- * gem install git_pivotal_tracker
42
+ ``gem install git_pivotal_tracker``
43
43
 
44
44
  Once installed, git pivotal needs two bits of info: your Pivotal Tracker API Token and your Pivotal Tracker project id:
45
45
 
46
- git config --global pivotal.api-token 123a456b
46
+ ``git config --global pivotal.api-token 123a456b``
47
47
 
48
48
  The project id is best placed within your project's git config:
49
49
 
50
- git config -f .git/config pivotal.project-id 88888
50
+ ``git config -f .git/config pivotal.project-id 88888``
51
51
 
52
52
  If you prefer to merge back to a branch other than master when you've finished a story, you can configure that:
53
53
 
54
- git config --global pivotal.integration-branch develop
54
+ ``git config --global pivotal.integration-branch develop``
55
55
 
56
56
  If you prefer to fetch and rebase from origin before merging (default is no):
57
57
 
58
- git config --global pivotal.rebase 1
58
+ ``git config --global pivotal.rebase 1``
59
59
 
60
60
  If you prefer to fast-forward your merges into the integration branch (default is --no-ff):
61
61
 
62
- git config --global pivotal.fast-forward 1
62
+ ``git config --global pivotal.fast-forward 1``
63
63
 
64
64
  If your Pivotal Tracker user name is different than your git user name:
65
65
 
66
- git config --global pivotal.full-name 'Ben Lindsey'
66
+ ``git config --global pivotal.full-name 'Ben Lindsey'``
67
+
68
+ If you would like verbose logging turned on for git commands:
69
+
70
+ ``git config --global pivotal.verbose 1``
67
71
 
68
72
  Author
69
73
  ------
70
74
 
71
75
  * Ben Lindsey <ben@carbonfive.com>
72
76
 
73
- Acknowledgements
77
+ Contributors
74
78
  ------
75
- * Inspired by [trydionel](https://github.com/trydionel/git-pivotal)
79
+
80
+ * [https://github.com/lyahdav](Liron Yahdav)
76
81
 
77
82
  License
78
83
  -------
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.email = ["ben@carbonfive.com"]
13
13
  s.homepage = "https://github.com/blindsey/git_pivotal_tracker"
14
14
  s.summary = "A git workflow integrated with Pivotal Tracker"
15
- s.description = "git_pivotal_tracker provides a set of scripts that integrates directly with git to start and finish Pivotal Tracker stories on topic branches"
15
+ s.description = "provides a set of git workflow tools to start and finish Pivotal Tracker stories in topic branches"
16
16
 
17
17
  s.required_rubygems_version = ">= 1.3.6"
18
18
 
@@ -7,14 +7,14 @@ module GitPivotalTracker
7
7
  def initialize(*args)
8
8
  directories = Dir.pwd.split(::File::SEPARATOR)
9
9
  begin
10
- break if File.directory?(File.join(*directories, GIT_DIR))
10
+ break if File.directory?(File.join(directories, GIT_DIR))
11
11
  end while directories.pop
12
12
 
13
13
  raise "No #{GIT_DIR} directory found" if directories.empty?
14
- root = File.join(*directories, GIT_DIR)
14
+ root = File.join(directories, GIT_DIR)
15
15
  @repository = Grit::Repo.new(root)
16
16
 
17
- new_hook_path = File.join(*directories, GIT_DIR, 'hooks', 'prepare-commit-msg')
17
+ new_hook_path = File.join(root, 'hooks', 'prepare-commit-msg')
18
18
  unless File.executable?(new_hook_path)
19
19
  puts "Installing prepare-commit-msg hook..."
20
20
  old_hook_path = File.join(File.dirname(__FILE__), '..', '..', 'bin', 'prepare-commit-msg')
@@ -1,3 +1,3 @@
1
1
  module GitPivotalTracker
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: git_pivotal_tracker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ben Lindsey
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-13 00:00:00 -07:00
13
+ date: 2011-07-14 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -46,7 +46,7 @@ dependencies:
46
46
  version: "0"
47
47
  type: :runtime
48
48
  version_requirements: *id003
49
- description: git_pivotal_tracker provides a set of scripts that integrates directly with git to start and finish Pivotal Tracker stories on topic branches
49
+ description: provides a set of git workflow tools to start and finish Pivotal Tracker stories in topic branches
50
50
  email:
51
51
  - ben@carbonfive.com
52
52
  executables: