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 +1 -1
- data/lib/gitcycle.rb +5 -3
- data/lib/gitcycle/assist.rb +14 -0
- metadata +5 -4
data/gitcycle.gemspec
CHANGED
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
|
316
|
-
@git_repo
|
317
|
-
@git_login
|
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
|
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:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
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-
|
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
|