pt-flow 0.0.5 → 0.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.
data/README.md CHANGED
@@ -10,16 +10,28 @@ Install the gem:
10
10
 
11
11
  ## Usage
12
12
 
13
+ - flow start
14
+ - flow finish
15
+ - flow deliver
16
+
13
17
  ### Committer
14
- - flow checkout
15
- - commit, commit
16
- - git commit -m '[fixes] bug for bla bla' or git commit -m '[completed] cropping story'
17
- - git push origin 325325
18
- - flow request
19
- - cap staging deploy:migrations BRANCH=325325
18
+
19
+ ```bash
20
+ $ flow start
21
+ # shows lists of tasks, choosing one starts/assigns the task and checks out a new branch.
22
+
23
+ $ flow finish
24
+ # pushes branch to origin, finishes task on pt and opens github on pull request page.
25
+ # follow with cap staging deploy:migrations BRANCH=325325 etc...
26
+ ```
20
27
 
21
28
  ### Reviewer
22
- - git fetch
23
- - git checkout 325325325
24
- - flow merge
25
- - cap production deploy
29
+
30
+ ```bash
31
+ $ git fetch
32
+ $ git checkout 325325
33
+ # run tests, review code etc...
34
+
35
+ $ flow deliver
36
+ # merges with master, pushes master to origin, deletes local/remote branch, delivers task on pt
37
+ # follow with cap production deploy:migrations etc...
data/lib/pt-flow/ui.rb CHANGED
@@ -1,17 +1,6 @@
1
1
  class PT::Flow::UI < PT::UI
2
2
 
3
- def setup
4
- `git-tracker install`
5
- message 'git-tracker ready to add story numbers to commits'
6
- congrats 'All done!'
7
- end
8
-
9
- def list
10
- @params[0] ||= 'all'
11
- super
12
- end
13
-
14
- def checkout
3
+ def start
15
4
  tasks = @client.get_work(@project)
16
5
  table = PT::TasksTable.new(tasks)
17
6
  if @params[0]
@@ -25,19 +14,21 @@ class PT::Flow::UI < PT::UI
25
14
  if result.errors.any?
26
15
  error(result.errors.errors)
27
16
  else
17
+ start_task(task)
28
18
  congrats("Task assigned to #{owner}, checking out new branch!")
19
+ `git checkout -B #{task.id}`
29
20
  end
30
-
31
- `git checkout -B #{task.id}`
32
21
  end
33
22
 
34
- def request
23
+ def finish
35
24
  `git push origin #{current_branch}`
36
25
  task = PivotalTracker::Story.find(current_branch, @project.id)
37
- `open '#{github_page_url}/pull/new/#{current_branch}?title=#{task.name} [##{task.id}]&body=#{task.url}'`
26
+ finish_task(task)
27
+ pull_request_url = "#{github_page_url}/pull/new/#{current_branch}?title=#{task.name} [##{task.id}]&body=#{task.url}"
28
+ `open '#{pull_request_url}'`
38
29
  end
39
30
 
40
- def merge
31
+ def deliver
41
32
  branch = @params[0] || current_branch
42
33
  `git checkout master`
43
34
  `git merge #{branch}`
@@ -1,5 +1,5 @@
1
1
  module PT
2
2
  module Flow
3
- VERSION = "0.0.5"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
data/pt-flow.gemspec CHANGED
@@ -16,5 +16,4 @@ Gem::Specification.new do |gem|
16
16
  gem.version = PT::Flow::VERSION
17
17
 
18
18
  gem.add_dependency 'pt'
19
- gem.add_dependency 'git_tracker'
20
19
  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.0.5
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-10-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pt
16
- requirement: &70124415401320 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,18 +21,12 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70124415401320
25
- - !ruby/object:Gem::Dependency
26
- name: git_tracker
27
- requirement: &70124415400740 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
28
25
  none: false
29
26
  requirements:
30
27
  - - ! '>='
31
28
  - !ruby/object:Gem::Version
32
29
  version: '0'
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: *70124415400740
36
30
  description: Some extra methods for the pt gem to use in our dev flow.
37
31
  email:
38
32
  - jens@balvig.com
@@ -65,7 +59,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
59
  version: '0'
66
60
  segments:
67
61
  - 0
68
- hash: 543320345213138605
62
+ hash: 2763872611259201268
69
63
  required_rubygems_version: !ruby/object:Gem::Requirement
70
64
  none: false
71
65
  requirements:
@@ -74,10 +68,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
68
  version: '0'
75
69
  segments:
76
70
  - 0
77
- hash: 543320345213138605
71
+ hash: 2763872611259201268
78
72
  requirements: []
79
73
  rubyforge_project:
80
- rubygems_version: 1.8.11
74
+ rubygems_version: 1.8.23
81
75
  signing_key:
82
76
  specification_version: 3
83
77
  summary: Some extra methods for the pt gem to use in our dev flow.