gitcycle 0.2.15 → 0.2.16

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.
Files changed (4) hide show
  1. data/README.md +2 -1
  2. data/gitcycle.gemspec +2 -2
  3. data/lib/gitcycle.rb +8 -3
  4. metadata +4 -4
data/README.md CHANGED
@@ -174,4 +174,5 @@ $ gitc st - shortcut
174
174
  * [issue number] it marks it pending-qa and failed.. not correct. I'll take a look at this over the weekend -Tung
175
175
  * gitc qa clean # to clean up old branches
176
176
  * gitc qa pass # if ticket resolved, it should stay resolved
177
- * gitc ready # if pull requests already created, it should prompt and explain that a new branch and issue is being created, consider effect of multiple developers
177
+ * gitc ready # if pull requests already created, it should prompt and explain that a new branch and issue is being created, consider effect of multiple developers
178
+ * If feature branch changed between QA branch creation and QA merge, alert QA engineer
data/gitcycle.gemspec CHANGED
@@ -6,7 +6,7 @@ $:.unshift lib unless $:.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "gitcycle"
9
- s.version = '0.2.15'
9
+ s.version = '0.2.16'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = [ 'Winton Welsh' ]
12
12
  s.email = [ 'mail@wintoni.us' ]
@@ -28,4 +28,4 @@ Gem::Specification.new do |s|
28
28
 
29
29
  s.add_dependency "launchy", "= 2.0.5"
30
30
  s.add_dependency "yajl-ruby", "= 1.1.0"
31
- end
31
+ end
data/lib/gitcycle.rb CHANGED
@@ -123,8 +123,13 @@ class Gitcycle
123
123
 
124
124
  if args.length == 1 && args[0] =~ /^https?:\/\//
125
125
  puts "\nRetrieving branch information from gitcycle.\n".green
126
- branch = get('branch', 'branch[lighthouse_url]' => args[0])
127
- checkout_or_track(:name => branch['name'], :remote => 'origin')
126
+ branch = get('branch', 'branch[lighthouse_url]' => args[0], 'create' => 0)
127
+ if branch
128
+ checkout_or_track(:name => branch['name'], :remote => 'origin')
129
+ else
130
+ puts "\nBranch not found!\n".red
131
+ puts "\nDid you mean: gitc branch #{args[0]}\n".yellow
132
+ end
128
133
  else
129
134
  remote, branch = args
130
135
  remote, branch = nil, remote if branch.nil?
@@ -857,4 +862,4 @@ class Gitcycle
857
862
  def yes?(question)
858
863
  q(question, " (#{"y".green}/#{"n".red})").downcase[0..0] == 'y'
859
864
  end
860
- end
865
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitcycle
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 15
10
- version: 0.2.15
9
+ - 16
10
+ version: 0.2.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - Winton Welsh
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-27 00:00:00 -08:00
18
+ date: 2012-03-02 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency