git-storyid 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/git-storyid.gemspec +2 -2
- data/lib/git_storyid.rb +4 -0
- data/spec/git_storyid_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0201975705716feec79195f5fbbb2dc51a9a9c88
|
4
|
+
data.tar.gz: 87ae0b19b2d35fd0255f22302c60b930952d81a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab96891e85865ed508da008ac6dd1c4f208393f121bae4914b691fa7495810a244fac89ec475a8cb41399a37de1bac9569c465731a1622dd348b259fff0b6614
|
7
|
+
data.tar.gz: d1207fa1e01cc79bca7651af9e369f6dd4615574235ed88b09830f205be95de920563835bf7c104b4bce2c668f51447d0935982ef71bed1e962c13a5dfcd39b9
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.4
|
data/git-storyid.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: git-storyid 0.3.
|
5
|
+
# stub: git-storyid 0.3.4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "git-storyid"
|
9
|
-
s.version = "0.3.
|
9
|
+
s.version = "0.3.4"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
data/lib/git_storyid.rb
CHANGED
@@ -20,6 +20,9 @@ class GitStoryid
|
|
20
20
|
opts.on("-f", "--finish", "Specify that this commit finishes a story or fixes a bug") do
|
21
21
|
@finish_stories = true
|
22
22
|
end
|
23
|
+
opts.on("-d", "--deliver", "Specify that this commit delivers a story or a bug") do
|
24
|
+
@deliver_stories = true
|
25
|
+
end
|
23
26
|
end
|
24
27
|
parser.parse!(arguments)
|
25
28
|
|
@@ -114,6 +117,7 @@ class GitStoryid
|
|
114
117
|
end
|
115
118
|
|
116
119
|
def finish_story_prefix(story)
|
120
|
+
return "Delivers " if @deliver_stories
|
117
121
|
return "" unless @finish_stories
|
118
122
|
story.story_type == "bug" ? "Fixes " : "Finishes "
|
119
123
|
end
|
data/spec/git_storyid_spec.rb
CHANGED
@@ -131,6 +131,12 @@ EOI
|
|
131
131
|
run('-f')
|
132
132
|
commands.should include(["git", "commit", "-m", "[Finishes #44647731] Feature: Strip Default paypal credentials"])
|
133
133
|
end
|
134
|
+
|
135
|
+
it "should support delivering" do
|
136
|
+
GitStoryid.any_instance.stubs(:readline).returns('1')
|
137
|
+
run('-d')
|
138
|
+
commands.should include(["git", "commit", "-m", "[Delivers #44647731] Feature: Strip Default paypal credentials"])
|
139
|
+
end
|
134
140
|
end
|
135
141
|
|
136
142
|
it "should quit if no stories specified" do
|