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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 757a81b3f19ee8d91bc9db03cf31703b37497aed
4
- data.tar.gz: 8d066a7703fc70bd9bc87870aac767e3f013f7b2
3
+ metadata.gz: 0201975705716feec79195f5fbbb2dc51a9a9c88
4
+ data.tar.gz: 87ae0b19b2d35fd0255f22302c60b930952d81a5
5
5
  SHA512:
6
- metadata.gz: 5bf8479a6b9f94c9e8e92639511268525e56d7fd4b0b6ee8bb2c617a5176276d734d8167fb5bc6e6e85f1ff251e2c5d655ced3ae2d232b7cfe4552be962116fb
7
- data.tar.gz: c83427661cfe8e12cec738c976d4083b791be0c24f1d349f6440a56a81f8fe2c808b9a635c5a6af3af0e647595a53dfd233764a26a0224d9a50f2bb7a1484fc2
6
+ metadata.gz: ab96891e85865ed508da008ac6dd1c4f208393f121bae4914b691fa7495810a244fac89ec475a8cb41399a37de1bac9569c465731a1622dd348b259fff0b6614
7
+ data.tar.gz: d1207fa1e01cc79bca7651af9e369f6dd4615574235ed88b09830f205be95de920563835bf7c104b4bce2c668f51447d0935982ef71bed1e962c13a5dfcd39b9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.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.3 ruby lib
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.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
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-storyid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdan Gusiev