git-pivot 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/git-pivot.gemspec +1 -1
- data/lib/git-pivot/git.rb +3 -3
- data/lib/git-pivot/manager.rb +2 -3
- data/lib/git-pivot/pivotal.rb +6 -3
- data/lib/git-pivot/shared.rb +2 -1
- metadata +2 -2
data/.gitignore
CHANGED
data/git-pivot.gemspec
CHANGED
data/lib/git-pivot/git.rb
CHANGED
@@ -12,14 +12,14 @@ module GitPivot
|
|
12
12
|
|
13
13
|
def finish(commit)
|
14
14
|
if has_changes? && commit
|
15
|
-
out "Please enter your commit message: "
|
15
|
+
out "Please enter your commit message: ", false
|
16
16
|
close_commit input
|
17
17
|
elsif has_changes?
|
18
|
-
exit out "Please commit changes before closing ticket
|
18
|
+
exit out "Please commit changes before closing ticket."
|
19
19
|
end
|
20
20
|
|
21
21
|
merge_branch
|
22
|
-
out "Merged changes back to master
|
22
|
+
out "Merged changes back to master."
|
23
23
|
end
|
24
24
|
|
25
25
|
def config(param)
|
data/lib/git-pivot/manager.rb
CHANGED
@@ -19,9 +19,8 @@ module GitPivot
|
|
19
19
|
id, text = GitPivot::Pivotal.start(ticket, options[:mine])
|
20
20
|
|
21
21
|
out text
|
22
|
-
out "\n"
|
23
22
|
out GitPivot::Git.start(id)
|
24
|
-
out "
|
23
|
+
out "You are now licensed to develop. Godspeed."
|
25
24
|
end
|
26
25
|
|
27
26
|
|
@@ -31,7 +30,7 @@ module GitPivot
|
|
31
30
|
def finish
|
32
31
|
GitPivot::Pivotal.finish
|
33
32
|
GitPivot::Git.finish(options[:commit])
|
34
|
-
out "Story complete
|
33
|
+
out "Story complete."
|
35
34
|
end
|
36
35
|
end
|
37
36
|
end
|
data/lib/git-pivot/pivotal.rb
CHANGED
@@ -33,13 +33,16 @@ module GitPivot
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def finish
|
36
|
-
current_story
|
37
|
-
out "
|
36
|
+
current_story
|
37
|
+
exit out "You are not currently working on a story."
|
38
|
+
|
39
|
+
@story.update(completed: :true)
|
40
|
+
out "Marked story as finished."
|
38
41
|
end
|
39
42
|
|
40
43
|
def info
|
41
44
|
current_story
|
42
|
-
return "No info found for Pivotal Tracker
|
45
|
+
return "No info found for Pivotal Tracker." if @story.nil?
|
43
46
|
"""
|
44
47
|
-- Pivotal Info --
|
45
48
|
Name: #{@story.name}
|
data/lib/git-pivot/shared.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: git-pivot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Luke van der Hoeven
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-05-
|
13
|
+
date: 2011-05-23 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|