pt-flow 0.0.3 → 0.0.4
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 +15 -19
- data/lib/pt-flow/ui.rb +5 -12
- data/lib/pt-flow/version.rb +1 -1
- metadata +7 -7
data/README.md
CHANGED
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# pt-flow
|
|
2
2
|
|
|
3
3
|
TODO: Write a gem description.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
gem 'pt-flow'
|
|
10
|
-
|
|
11
|
-
And then execute:
|
|
12
|
-
|
|
13
|
-
$ bundle
|
|
14
|
-
|
|
15
|
-
Or install it yourself as:
|
|
7
|
+
Install the gem:
|
|
16
8
|
|
|
17
9
|
$ gem install pt-flow
|
|
18
10
|
|
|
19
11
|
## Usage
|
|
20
12
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
13
|
+
### 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
|
|
20
|
+
|
|
21
|
+
### Reviewer
|
|
22
|
+
- git fetch
|
|
23
|
+
- git checkout 325325325
|
|
24
|
+
- flow merge
|
|
25
|
+
- cap production deploy
|
data/lib/pt-flow/ui.rb
CHANGED
|
@@ -6,15 +6,6 @@ class PT::Flow::UI < PT::UI
|
|
|
6
6
|
congrats 'All done!'
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
-
def load_local_config
|
|
10
|
-
config = super
|
|
11
|
-
unless config[:github_url]
|
|
12
|
-
config[:github_url] = ask "What is the url for the Github repo?"
|
|
13
|
-
save_config(config, LOCAL_CONFIG_PATH)
|
|
14
|
-
end
|
|
15
|
-
config
|
|
16
|
-
end
|
|
17
|
-
|
|
18
9
|
def list
|
|
19
10
|
@params[0] ||= 'all'
|
|
20
11
|
super
|
|
@@ -43,7 +34,7 @@ class PT::Flow::UI < PT::UI
|
|
|
43
34
|
def request
|
|
44
35
|
`git push origin #{current_branch}`
|
|
45
36
|
task = PivotalTracker::Story.find(current_branch, @project.id)
|
|
46
|
-
`open '#{
|
|
37
|
+
`open '#{github_page_url}/pull/new/#{current_branch}?title=#{task.name} [##{task.id}]'`
|
|
47
38
|
end
|
|
48
39
|
|
|
49
40
|
def merge
|
|
@@ -59,8 +50,10 @@ class PT::Flow::UI < PT::UI
|
|
|
59
50
|
|
|
60
51
|
private
|
|
61
52
|
|
|
62
|
-
def
|
|
63
|
-
|
|
53
|
+
def github_page_url
|
|
54
|
+
repo_url = `git config --get remote.origin.url`.strip
|
|
55
|
+
stub = repo_url.match(/:(\S+\/\S+)\.git/)[1]
|
|
56
|
+
"https://github.com/#{stub}"
|
|
64
57
|
end
|
|
65
58
|
|
|
66
59
|
def current_branch
|
data/lib/pt-flow/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.0.4
|
|
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: &
|
|
16
|
+
requirement: &70315155548120 !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: *
|
|
24
|
+
version_requirements: *70315155548120
|
|
25
25
|
- !ruby/object:Gem::Dependency
|
|
26
26
|
name: git_tracker
|
|
27
|
-
requirement: &
|
|
27
|
+
requirement: &70315155545140 !ruby/object:Gem::Requirement
|
|
28
28
|
none: false
|
|
29
29
|
requirements:
|
|
30
30
|
- - ! '>='
|
|
@@ -32,7 +32,7 @@ dependencies:
|
|
|
32
32
|
version: '0'
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
|
-
version_requirements: *
|
|
35
|
+
version_requirements: *70315155545140
|
|
36
36
|
description: Some extra methods for the pt gem to use in our dev flow.
|
|
37
37
|
email:
|
|
38
38
|
- jens@balvig.com
|
|
@@ -65,7 +65,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
65
65
|
version: '0'
|
|
66
66
|
segments:
|
|
67
67
|
- 0
|
|
68
|
-
hash:
|
|
68
|
+
hash: -1958667379439082875
|
|
69
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
70
|
none: false
|
|
71
71
|
requirements:
|
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
74
74
|
version: '0'
|
|
75
75
|
segments:
|
|
76
76
|
- 0
|
|
77
|
-
hash:
|
|
77
|
+
hash: -1958667379439082875
|
|
78
78
|
requirements: []
|
|
79
79
|
rubyforge_project:
|
|
80
80
|
rubygems_version: 1.8.11
|