pt-flow 2.0.0 → 2.1.0

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: 5d0165983118b411b69b77a207aaa6abbf12d70b
4
- data.tar.gz: 9dd93cc2c89ab1f519d296d6b17681bc97371afb
3
+ metadata.gz: 89d06e1a1769aa52604bf5827858ee31b671fd69
4
+ data.tar.gz: a472ec4bab325646365a658270d31082376934e2
5
5
  SHA512:
6
- metadata.gz: 3e49c820e03156f0d5b8e23ff04f83ce9cb92a478481b7fda7d0298d5d03577da8675bba27967c5e5b73c49d75c036d27d70e6b035087a27d48cadc04749832e
7
- data.tar.gz: c81b57a79d36a7eb6a79f09cca3dd717b632c4c4c259074e15b84ba7fa023402d3a7436543e763fc7e90836e7364903f3283daa4eb88f6f7a8c9e7710638fbe9
6
+ metadata.gz: b0fc0c510f4a8a096e93d275694abe07bc3b68a1e6aad01b6354fab4562f6b6c8df43dd6780765cd22eee6730bd42cdfc3cbdfaa58e291395e6fdf3c4b4a3239
7
+ data.tar.gz: a06bd642578bb1e5d9444c167ce8fd543914b1e5606735bb8f200e1ba8686190abd272562efa080d6a395a5283592e2a65ddc844deb6f8a325c972b58be12e6a
@@ -84,7 +84,9 @@ module PT::Flow
84
84
  end
85
85
 
86
86
  def task_title
87
- current_task.name.gsub('"',"'") + " [Delivers ##{current_task.id}]"
87
+ task_title = current_task.name.gsub('"',"'") + " [Delivers ##{current_task.id}]"
88
+ task_title = 'Bugfix: ' + task_title if current_task.story_type == 'bug'
89
+ task_title
88
90
  end
89
91
 
90
92
  def deliver!
@@ -1,5 +1,5 @@
1
1
  module PT
2
2
  module Flow
3
- VERSION = '2.0.0'
3
+ VERSION = '2.1.0'
4
4
  end
5
5
  end
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <story>
3
+ <id type="integer">4492080</id>
4
+ <project_id type="integer">102622</project_id>
5
+ <story_type>bug</story_type>
6
+ <url>http://www.pivotaltracker.com/story/show/4492080</url>
7
+ <current_state>unstarted</current_state>
8
+ <description>Generic description</description>
9
+ <name>This is a bug</name>
10
+ <requested_by>Jon Mischo</requested_by>
11
+ <created_at type="datetime">2010/07/27 21:51:01 UTC</created_at>
12
+ <updated_at type="datetime">2010/07/27 22:20:46 UTC</updated_at>
13
+ </story>
@@ -137,5 +137,19 @@ module PT::Flow
137
137
  end
138
138
  end
139
139
 
140
+ context 'finishing a bug' do
141
+ before do
142
+ system('git remote rm origin')
143
+ system('git remote add origin git@github.com:cookpad/pt-flow.git')
144
+ system('git checkout -B master.this-is-a-bug.4492080')
145
+ end
146
+
147
+ it "prepends title with Bugfix: " do
148
+ UI.any_instance.should_receive(:run).with('git push origin master.this-is-a-bug.4492080 -u')
149
+ UI.any_instance.should_receive(:run).with("hub pull-request -b master -h cookpad:master.this-is-a-bug.4492080 -m \"Bugfix: This is a bug [Delivers #4492080]\"")
150
+ UI.new('finish')
151
+ end
152
+ end
153
+
140
154
  end
141
155
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pt-flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-25 00:00:00.000000000 Z
11
+ date: 2014-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pt
@@ -173,6 +173,7 @@ files:
173
173
  - spec/fixtures/stories.xml
174
174
  - spec/fixtures/story_4459994.xml
175
175
  - spec/fixtures/story_4460038.xml
176
+ - spec/fixtures/story_4492080.xml
176
177
  - spec/lib/pt-flow/ui_spec.rb
177
178
  - spec/spec_helper.rb
178
179
  - spec/support/dummy.rb
@@ -210,6 +211,7 @@ test_files:
210
211
  - spec/fixtures/stories.xml
211
212
  - spec/fixtures/story_4459994.xml
212
213
  - spec/fixtures/story_4460038.xml
214
+ - spec/fixtures/story_4492080.xml
213
215
  - spec/lib/pt-flow/ui_spec.rb
214
216
  - spec/spec_helper.rb
215
217
  - spec/support/dummy.rb