pt-flow 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pt-flow/ui.rb +3 -1
- data/lib/pt-flow/version.rb +1 -1
- data/spec/fixtures/story_4492080.xml +13 -0
- data/spec/lib/pt-flow/ui_spec.rb +14 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 89d06e1a1769aa52604bf5827858ee31b671fd69
|
|
4
|
+
data.tar.gz: a472ec4bab325646365a658270d31082376934e2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0fc0c510f4a8a096e93d275694abe07bc3b68a1e6aad01b6354fab4562f6b6c8df43dd6780765cd22eee6730bd42cdfc3cbdfaa58e291395e6fdf3c4b4a3239
|
|
7
|
+
data.tar.gz: a06bd642578bb1e5d9444c167ce8fd543914b1e5606735bb8f200e1ba8686190abd272562efa080d6a395a5283592e2a65ddc844deb6f8a325c972b58be12e6a
|
data/lib/pt-flow/ui.rb
CHANGED
|
@@ -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!
|
data/lib/pt-flow/version.rb
CHANGED
|
@@ -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>
|
data/spec/lib/pt-flow/ui_spec.rb
CHANGED
|
@@ -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.
|
|
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
|
+
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
|