pt-flow 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,29 +1,25 @@
1
- # Pt::Flow
1
+ # pt-flow
2
2
 
3
3
  TODO: Write a gem description.
4
4
 
5
5
  ## Installation
6
6
 
7
- Add this line to your application's Gemfile:
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
- TODO: Write usage instructions here
22
-
23
- ## Contributing
24
-
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Added some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
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
@@ -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 '#{github_url}/pull/new/#{current_branch}?title=#{task.name} [##{task.id}]'`
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 github_url
63
- @local_config[:github_url]
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
@@ -1,5 +1,5 @@
1
1
  module PT
2
2
  module Flow
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  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.3
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: &70177310003000 !ruby/object:Gem::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: *70177310003000
24
+ version_requirements: *70315155548120
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: git_tracker
27
- requirement: &70177310001320 !ruby/object:Gem::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: *70177310001320
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: 9979673984538748
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: 9979673984538748
77
+ hash: -1958667379439082875
78
78
  requirements: []
79
79
  rubyforge_project:
80
80
  rubygems_version: 1.8.11