scrumninja-git-cli 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/{scrumninja-git-cli → sgc} +0 -0
- data/lib/scrum_ninja_git_cli.rb +13 -18
- data/test/test_scrum_ninja_git_cli.rb +0 -7
- metadata +5 -5
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
File without changes
|
data/lib/scrum_ninja_git_cli.rb
CHANGED
@@ -9,28 +9,27 @@ module ScrumNinjaGitCli
|
|
9
9
|
|
10
10
|
HelpText = <<-EOF
|
11
11
|
|
12
|
-
The '
|
12
|
+
The 'sgc' command is used to support RF's normal release workflow.
|
13
13
|
|
14
14
|
Available commands:
|
15
15
|
|
16
16
|
[Can be run from any branch]
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
story git [any args] Run the git command with the specified args (doesn't complain about env var)
|
17
|
+
sgc
|
18
|
+
sgc list list all stories
|
19
|
+
sgc info 12345 show only the one story
|
20
|
+
sgc xml 12345 show full XML dump (from ScrumNinja API) for one story
|
21
|
+
sgc own 12345[, new_owner_id] Set owner of the given story (defaults to value in .scrumninja.yml)
|
23
22
|
|
24
23
|
[Must be run from master, with clean working state]
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
sgc start 12345 Check out a story branch and change ownership [if not already set]
|
25
|
+
sgc join 12345 Check out a story branch without trying to change ownership
|
26
|
+
sgc dev-task "some task" Check out a dev-task branch (no ScrumNinja interaction)
|
28
27
|
|
29
28
|
[Must be run from story branch, with clean working state]
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
29
|
+
sgc push-branch git: pull --rebase; push origin story_branch
|
30
|
+
sgc merge-from-master git: checkout master; pull; checkout story_branch; merge master
|
31
|
+
sgc deliver merge your story branch into master, then push the result.
|
32
|
+
(DOES NOT update ScrumNinja.)
|
34
33
|
|
35
34
|
Configuration:
|
36
35
|
|
@@ -67,10 +66,6 @@ module ScrumNinjaGitCli
|
|
67
66
|
output HelpText
|
68
67
|
end
|
69
68
|
|
70
|
-
def git(*args)
|
71
|
-
exec("export I_AM_A_GIT_GURU=1; git #{args.join(" ")}")
|
72
|
-
end
|
73
|
-
|
74
69
|
def list
|
75
70
|
stories = session.get_stories
|
76
71
|
output stories.map(&:to_s).join("\n") # TODO: can we drop the #map?
|
@@ -214,11 +214,4 @@ class TestScrumNinjaGitCli < Test::Unit::TestCase
|
|
214
214
|
assert_nothing_raised(Exception) { ScrumNinjaGitCli.run_command('merge-from-master') }
|
215
215
|
end
|
216
216
|
end
|
217
|
-
|
218
|
-
context "#git" do
|
219
|
-
should "run git command with passed-through arguments" do
|
220
|
-
ScrumNinjaGitCli.expects(:exec).with("export I_AM_A_GIT_GURU=1; git arg1 arg2 arg3").returns('some output')
|
221
|
-
ScrumNinjaGitCli.run_command('git', 'arg1', 'arg2', 'arg3')
|
222
|
-
end
|
223
|
-
end
|
224
217
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- John Wilger
|
@@ -17,7 +17,7 @@ bindir: bin
|
|
17
17
|
cert_chain: []
|
18
18
|
|
19
19
|
date: 2010-03-26 00:00:00 -07:00
|
20
|
-
default_executable:
|
20
|
+
default_executable: sgc
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: thoughtbot-shoulda
|
@@ -90,7 +90,7 @@ dependencies:
|
|
90
90
|
description: A command-line interface to integrate the ScrumNinja (http://scrumninja.com) API with a git workflow.
|
91
91
|
email: johnwilger@gmail.com
|
92
92
|
executables:
|
93
|
-
-
|
93
|
+
- sgc
|
94
94
|
extensions: []
|
95
95
|
|
96
96
|
extra_rdoc_files:
|
@@ -103,7 +103,7 @@ files:
|
|
103
103
|
- README.rdoc
|
104
104
|
- Rakefile
|
105
105
|
- VERSION
|
106
|
-
- bin/
|
106
|
+
- bin/sgc
|
107
107
|
- lib/git_wrapper.rb
|
108
108
|
- lib/scrum_ninja.rb
|
109
109
|
- lib/scrum_ninja/server.rb
|