pt-flow 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/pt-flow/ui.rb CHANGED
@@ -20,7 +20,7 @@ class PT::Flow::UI < PT::UI
20
20
  run("git push origin #{current_branch}")
21
21
  task = PivotalTracker::Story.find(current_task_id, @project.id)
22
22
  finish_task(task)
23
- pull_request_url = "#{github_page_url}/pull/new/#{current_target}...#{current_branch}?title=#{task.name} [##{task.id}]&body=#{task.url}"
23
+ pull_request_url = "#{github_page_url}/pull/new/#{current_target}...#{current_branch}?title=#{CGI::escape(task.name)} [##{task.id}]&body=#{task.url}"
24
24
  run("open '#{pull_request_url}'")
25
25
  end
26
26
 
@@ -1,5 +1,5 @@
1
1
  module PT
2
2
  module Flow
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@
7
7
  <estimate type="integer">-1</estimate>
8
8
  <current_state>unstarted</current_state>
9
9
  <description>Generic description</description>
10
- <name>Unestimated Feature</name>
10
+ <name>It's an Unestimated Feature</name>
11
11
  <requested_by>Jon Mischo</requested_by>
12
12
  <created_at type="datetime">2010/07/27 21:51:01 UTC</created_at>
13
13
  <updated_at type="datetime">2010/07/27 22:20:46 UTC</updated_at>
@@ -66,7 +66,7 @@ describe PT::Flow::UI do
66
66
 
67
67
  it "pushes the current branch to origin, flags the story as finished, and opens a github pull request" do
68
68
  PT::Flow::UI.any_instance.should_receive(:run).with('git push origin new_feature-4459994')
69
- PT::Flow::UI.any_instance.should_receive(:run).with("open 'https://github.com/balvig/pt-flow/pull/new/new_feature...new_feature-4459994?title=Unestimated Feature [#4459994]&body=http://www.pivotaltracker.com/story/show/4459994'")
69
+ PT::Flow::UI.any_instance.should_receive(:run).with("open 'https://github.com/balvig/pt-flow/pull/new/new_feature...new_feature-4459994?title=It%27s+an+Unestimated+Feature [#4459994]&body=http://www.pivotaltracker.com/story/show/4459994'")
70
70
  PT::Flow::UI.new %w{ finish }
71
71
  WebMock.should have_requested(:put, "#{endpoint}/projects/102622/stories/4459994").with(body: /<current_state>finished<\/current_state>/)
72
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pt-flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pt
16
- requirement: &70225619639680 !ruby/object:Gem::Requirement
16
+ requirement: &70363867714080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70225619639680
24
+ version_requirements: *70363867714080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70225619638420 !ruby/object:Gem::Requirement
27
+ requirement: &70363867713140 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '2.9'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70225619638420
35
+ version_requirements: *70363867713140
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: webmock
38
- requirement: &70225619637260 !ruby/object:Gem::Requirement
38
+ requirement: &70363867712620 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70225619637260
46
+ version_requirements: *70363867712620
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: guard
49
- requirement: &70225619636300 !ruby/object:Gem::Requirement
49
+ requirement: &70363867711820 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70225619636300
57
+ version_requirements: *70363867711820
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: guard-rspec
60
- requirement: &70225619635260 !ruby/object:Gem::Requirement
60
+ requirement: &70363867710560 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70225619635260
68
+ version_requirements: *70363867710560
69
69
  description: Some extra methods for the pt gem to use in our dev flow.
70
70
  email:
71
71
  - jens@balvig.com
@@ -117,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  segments:
119
119
  - 0
120
- hash: -3027269139786448864
120
+ hash: -2688729796521630858
121
121
  required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  none: false
123
123
  requirements:
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  segments:
128
128
  - 0
129
- hash: -3027269139786448864
129
+ hash: -2688729796521630858
130
130
  requirements: []
131
131
  rubyforge_project:
132
132
  rubygems_version: 1.8.11