prophet 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prophet/prophet.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d406c9bd4203b9aa5c02875eafd8295d102746d3
|
4
|
+
data.tar.gz: 24e1380804b9b326c782ce7b170c95a3b9886d43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b801cca85b70e5d1509f3fa20fae331ce6e91dda9ccf35f89bb97c162f82455e56304c771edbd10ff40e9e987475495c4ec8dffc22766f4018f75e05779eff2
|
7
|
+
data.tar.gz: 57e9e478771fe063f828d236705bf143d943986d28cc5228725da32f6c92408a48bc54bfb2de143fbe6101271c4fabb757626d250c2db3abb89be2245dc0b6ec
|
data/lib/prophet/prophet.rb
CHANGED
@@ -127,7 +127,10 @@ class Prophet
|
|
127
127
|
github.login
|
128
128
|
@log.info "Successfully logged into GitHub (API v#{github.api_version}) with user '#{user}'."
|
129
129
|
# Ensure the user has access to desired project.
|
130
|
-
|
130
|
+
# NOTE: Both variants should work:
|
131
|
+
# 'ssh://git@github.com:user/project.git'
|
132
|
+
# 'git@github.com:user/project.git'
|
133
|
+
@project ||= /com:(.*)\.git/.match(git_config['remote.origin.url'])[1]
|
131
134
|
begin
|
132
135
|
github.repo @project
|
133
136
|
@log.info "Successfully accessed GitHub project '#{@project}'"
|