factorylabs-cargo 0.0.2.7 → 0.0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +46 -44
- data/lib/cargo.rb +1 -1
- data/lib/cargo/commands/hack.rb +1 -1
- data/lib/cargo/commands/ship.rb +1 -0
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -2,50 +2,43 @@
|
|
2
2
|
|
3
3
|
http://www.factorylabs.com/images/cargo.png
|
4
4
|
|
5
|
-
Cargo is a set of tools to help streamline using git.
|
6
|
-
|
7
|
-
workflow.
|
5
|
+
Cargo is a set of tools to help streamline using git and Pivotal Tracker for agile development. Starting a story creates
|
6
|
+
a new branch and finishing a story merges the branch back into master. This can be done either with browser integration or a set of command line tools.
|
8
7
|
|
9
|
-
More features will be added.
|
10
|
-
other features are on the unofficial list.
|
8
|
+
More features will be added. This is still alpha software
|
11
9
|
|
12
|
-
|
13
|
-
|
14
|
-
== FEATURES:
|
15
|
-
|
16
|
-
* Commands to streamline git usage.
|
17
|
-
* Server/userscript integration with Pivotal Tracker (and growlnotify).
|
10
|
+
== INSTALL:
|
18
11
|
|
19
|
-
|
12
|
+
sudo gem install factorylabs-cargo --source=http://gems.github.com
|
20
13
|
|
21
|
-
|
22
|
-
|
23
|
-
* cargo (runs the cargo server that listens for incoming events)
|
24
|
-
cargo[git:master] $ cargo
|
25
|
-
=> Starting Cargo 0.0.2 on http://0.0.0.0:8081
|
26
|
-
=> Ctrl-C to shutdown server
|
27
|
-
** Cargo listening at 0.0.0.0:8081
|
14
|
+
== Setup:
|
28
15
|
|
29
|
-
|
30
|
-
(
|
16
|
+
echo "api_key: YOUR_PIVOTAL_TRACKER_API_KEY" > ~/.cargo.yml
|
17
|
+
echo "project: PIVOTAL_TRACKER_PROJECT_ID" > RAILS_ROOT/.cargo.yml (optional hack will prompt for project if it isn't configured)
|
31
18
|
|
32
|
-
|
33
|
-
install the user script. Once installed you'll be asked when starting a story
|
34
|
-
if a branch should be created automatically, and asked if you'd like your
|
35
|
-
changes committed when finishing a story (prompting is configurable).
|
19
|
+
== SYNOPSIS:
|
36
20
|
|
37
21
|
=== Git Wrapper Commands:
|
38
22
|
|
39
|
-
* hack (
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
23
|
+
* hack (start a new story and create a branch for that story)
|
24
|
+
use hack from the command line at the root of your project
|
25
|
+
call it with a story id or with no arguments it will pull the
|
26
|
+
unstarted stories from the Tracker project and allow you to choose one
|
27
|
+
|
28
|
+
hack will start the story via the Pivotal Tracker API and start a new
|
29
|
+
branch with the story name and id
|
30
|
+
cargo[git:master] $ hack
|
31
|
+
Already on "master"
|
32
|
+
From git@github.com:factorylabs/cargo
|
33
|
+
* branch master -> FETCH_HEAD
|
34
|
+
Fetching tracker stories
|
35
|
+
Choose a story
|
36
|
+
1) 'Keyword search' issues
|
37
|
+
2) 'Detail view' issues
|
38
|
+
Enter story number: [Type # Here]
|
39
|
+
Switched to a new branch "keyword_search_issues-1234"
|
40
|
+
cargo[git:keyword_search_issues-1234] $
|
41
|
+
|
49
42
|
* pack (switch to master and merge branch)
|
50
43
|
cargo[git:fix_issue_1234] $ pack
|
51
44
|
Switched to branch "master"
|
@@ -56,7 +49,7 @@ changes committed when finishing a story (prompting is configurable).
|
|
56
49
|
nothing to commit (working directory clean)
|
57
50
|
cargo[git:master] $
|
58
51
|
|
59
|
-
* ship (switch to master and merge branch push to remote origin, delete topic branch)
|
52
|
+
* ship (switch to master and merge branch push to remote origin, delete topic branch, mark story as finished)
|
60
53
|
cargo[git:fix_issue_1234] $ ship
|
61
54
|
Switched to branch "master"
|
62
55
|
Counting objects: 60, done.
|
@@ -67,6 +60,7 @@ changes committed when finishing a story (prompting is configurable).
|
|
67
60
|
41e9cfb..b51cba0 master -> master
|
68
61
|
cargo[git:master] $ git branch
|
69
62
|
* master
|
63
|
+
Marking story as finished
|
70
64
|
cargo[git:master] $
|
71
65
|
|
72
66
|
* yank (rebase current branch with latest from master)
|
@@ -78,6 +72,22 @@ changes committed when finishing a story (prompting is configurable).
|
|
78
72
|
Current branch fix_issue_1234 is up to date.
|
79
73
|
cargo[git:fix_issue_1234] $
|
80
74
|
|
75
|
+
=== Cargo Server:
|
76
|
+
|
77
|
+
* cargo (runs the cargo server that listens for incoming events)
|
78
|
+
cargo[git:master] $ cargo
|
79
|
+
=> Starting Cargo 0.0.2 on http://0.0.0.0:8081
|
80
|
+
=> Ctrl-C to shutdown server
|
81
|
+
** Cargo listening at 0.0.0.0:8081
|
82
|
+
|
83
|
+
To install the userscript in either Firefox, or the nightly build of WebKit
|
84
|
+
(requirements outlined below) browse to http://localhost:8081/cargo.user.js
|
85
|
+
|
86
|
+
If you have the proper setup (Greasemonkey / GreaseKit) you'll be prompted to
|
87
|
+
install the user script. Once installed you'll be asked when starting a story
|
88
|
+
if a branch should be created automatically, and asked if you'd like your
|
89
|
+
changes committed when finishing a story (prompting is configurable).
|
90
|
+
|
81
91
|
== REQUIREMENTS:
|
82
92
|
|
83
93
|
The Cargo server and userscript integration for pivotal tracker requires one of
|
@@ -91,14 +101,6 @@ Future support will include:
|
|
91
101
|
|
92
102
|
* Fluid support should be coming with the next public update of Safari.
|
93
103
|
|
94
|
-
== INSTALL:
|
95
|
-
|
96
|
-
sudo gem install factorylabs-cargo --source=http://gems.github.com
|
97
|
-
|
98
|
-
== Setup:
|
99
|
-
|
100
|
-
echo "api_key: YOUR_PIVOTAL_TRACKER_API_KEY" > ~/.cargo.yml
|
101
|
-
|
102
104
|
== LICENSE:
|
103
105
|
|
104
106
|
(The MIT License)
|
data/lib/cargo.rb
CHANGED
data/lib/cargo/commands/hack.rb
CHANGED
@@ -27,7 +27,7 @@ module Cargo
|
|
27
27
|
|
28
28
|
def fetch_stories
|
29
29
|
puts "Fetching tracker stories"
|
30
|
-
stories = current_project.stories('state:unstarted')
|
30
|
+
stories = current_project.stories('state:unstarted')[0..10]
|
31
31
|
puts "Choose a story"
|
32
32
|
stories.each_with_index do |story, i|
|
33
33
|
puts "#{i+1}) #{story.name}"
|
data/lib/cargo/commands/ship.rb
CHANGED
@@ -12,6 +12,7 @@ module Cargo
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def finish_story(story_id)
|
15
|
+
puts 'Marking story as finished'
|
15
16
|
story = Pickler::Tracker::Story.new(@current_project,@current_project.tracker.get_xml("/projects/#{@current_project.id}/stories/#{story_id}")["story"])
|
16
17
|
story.finish!
|
17
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: factorylabs-cargo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.2.
|
4
|
+
version: 0.0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Factory Design Labs
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-05-
|
12
|
+
date: 2009-05-27 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: 1.8.0
|
54
54
|
version:
|
55
|
-
description: http://www.factorylabs.com/images/cargo.png Cargo is a set of tools to help streamline using git
|
55
|
+
description: http://www.factorylabs.com/images/cargo.png Cargo is a set of tools to help streamline using git and Pivotal Tracker for agile development. Starting a story creates a new branch and finishing a story merges the branch back into master. This can be done either with browser integration or a set of command line tools. More features will be added. This is still alpha software
|
56
56
|
email:
|
57
57
|
- interactive@factorylabs.com
|
58
58
|
executables:
|
@@ -116,7 +116,7 @@ rubyforge_project: cargo
|
|
116
116
|
rubygems_version: 1.2.0
|
117
117
|
signing_key:
|
118
118
|
specification_version: 2
|
119
|
-
summary: http://www.factorylabs.com/images/cargo.png Cargo is a set of tools to help streamline using git
|
119
|
+
summary: http://www.factorylabs.com/images/cargo.png Cargo is a set of tools to help streamline using git and Pivotal Tracker for agile development
|
120
120
|
test_files:
|
121
121
|
- test/base_test.rb
|
122
122
|
- test/config_test.rb
|