gitcycle 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
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.3.4'
9
+ s.version = '0.3.5'
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
@@ -15,6 +15,7 @@ require 'yajl'
15
15
  $:.unshift File.dirname(__FILE__)
16
16
 
17
17
  require "ext/string"
18
+ require "gitcycle/assist"
18
19
  require "gitcycle/branch"
19
20
  require "gitcycle/checkout"
20
21
  require "gitcycle/commit"
@@ -48,6 +49,7 @@ class Gitcycle
48
49
  :last_command_errored => 8,
49
50
  }
50
51
 
52
+ include Assist
51
53
  include Branch
52
54
  include Checkout
53
55
  include Commit
@@ -312,9 +314,9 @@ class Gitcycle
312
314
  def load_git
313
315
  path = git_config_path(Dir.pwd)
314
316
  if path
315
- @git_url = File.read(path).match(/\[remote "origin"\][^\[]*url = ([^\n]+)/m)[1]
316
- @git_repo = @git_url.match(/\/(.+)/)[1].sub(/.git$/,'')
317
- @git_login = @git_url.match(/:(.+)\//)[1]
317
+ @git_url = File.read(path).match(/\[remote "origin"\][^\[]*url = ([^\n]+)/m)[1]
318
+ @git_repo = @git_url.match(/([^\/]+)\.git/)[1]
319
+ @git_login = @git_url.match(/([^\/:]+)\/[^\/]+\.git/)[1]
318
320
  @login, @token = @config["#{@git_login}/#{@git_repo}"] rescue [ nil, nil ]
319
321
  end
320
322
  end
@@ -0,0 +1,14 @@
1
+ class Gitcycle
2
+ module Assist
3
+
4
+ def assist(*args)
5
+ if args.first == 'me'
6
+ elsif args.first == 'complete'
7
+ elsif args.first == 'cancel'
8
+ else
9
+ user = args[0]
10
+ assign_to = args[1]
11
+ end
12
+ end
13
+ end
14
+ 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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 4
10
- version: 0.3.4
9
+ - 5
10
+ version: 0.3.5
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: 2013-10-04 00:00:00 Z
18
+ date: 2013-12-31 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: cucumber
@@ -199,6 +199,7 @@ files:
199
199
  - gitcycle.gemspec
200
200
  - lib/ext/string.rb
201
201
  - lib/gitcycle.rb
202
+ - lib/gitcycle/assist.rb
202
203
  - lib/gitcycle/branch.rb
203
204
  - lib/gitcycle/checkout.rb
204
205
  - lib/gitcycle/commit.rb