gitcycle 0.1.22 → 0.2.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.
Files changed (4) hide show
  1. data/README.md +4 -0
  2. data/gitcycle.gemspec +1 -1
  3. data/lib/gitcycle.rb +15 -0
  4. metadata +4 -4
data/README.md CHANGED
@@ -131,3 +131,7 @@ Todo
131
131
  * gitc qa pass # since we're changing this to pass all the tickets, we need to loop through all the merged issues and update the lighthouse state to pending-qa
132
132
  * gitc pull doesnt work in rc: https://gist.github.com/7e508977fbb762d186a6
133
133
  * Tag issue with milestone
134
+ * There's still a Tagging Issue I tried to fix parseLabel http://d.pr/8eOS , Pass should remove Pending *, but remove the Branch Name
135
+ * gitc log, diff, merge, rm, status, reset, mv, commit, diff
136
+ * gitc ready - possibly do syntax checks
137
+ * gitc commands should not track branches, so that they have to use the gitc push vs using git push
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.1.22'
9
+ s.version = '0.2.0'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = [ 'Winton Welsh' ]
12
12
  s.email = [ 'mail@wintoni.us' ]
data/lib/gitcycle.rb CHANGED
@@ -181,6 +181,13 @@ class Gitcycle
181
181
  end
182
182
  end
183
183
 
184
+ def push
185
+ branch = branches(:current => true)
186
+
187
+ puts "\nPushing branch '#{branch}'.\n".green
188
+ run("git push origin #{branch}")
189
+ end
190
+
184
191
  def qa(*issues)
185
192
  require_git && require_config
186
193
 
@@ -357,6 +364,14 @@ class Gitcycle
357
364
 
358
365
  def start(args=[])
359
366
  command = args.shift
367
+
368
+ `git --help`.scan(/\s{3}(\w+)\s{3}/).flatten.each do |cmd|
369
+ if command == cmd && !self.respond_to?(command)
370
+ args.unshift("git", command)
371
+ Kernel.exec(*args)
372
+ end
373
+ end
374
+
360
375
  if command.nil?
361
376
  puts "\nNo command specified\n".red
362
377
  elsif command[0..0] == '-'
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: 55
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 22
10
- version: 0.1.22
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Winton Welsh