prophet 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/prophet/prophet.rb +4 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc6bec0fbbd9a3cebc05993321820babc2a22624
4
- data.tar.gz: f94afc0b2e929ecbb9e35565a0100b496ac5b11e
3
+ metadata.gz: d406c9bd4203b9aa5c02875eafd8295d102746d3
4
+ data.tar.gz: 24e1380804b9b326c782ce7b170c95a3b9886d43
5
5
  SHA512:
6
- metadata.gz: b6e9c8a96a6917acf4baad32f43eb65328c005d318e506d76c4a9e674c9e53d3858ae258270188c94cf79d6b46c5cb2cf9a9d8056778cf676997102c529ab359
7
- data.tar.gz: f2cbc8e6592bba409df24c417ddc9aeaf653d7ecbfd41ff7ac6ec4439dc558abc265730393a1811abf0d28b1b4bf8efe9064471e139e9fdd848f883a1b41597c
6
+ metadata.gz: 5b801cca85b70e5d1509f3fa20fae331ce6e91dda9ccf35f89bb97c162f82455e56304c771edbd10ff40e9e987475495c4ec8dffc22766f4018f75e05779eff2
7
+ data.tar.gz: 57e9e478771fe063f828d236705bf143d943986d28cc5228725da32f6c92408a48bc54bfb2de143fbe6101271c4fabb757626d250c2db3abb89be2245dc0b6ec
@@ -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
- @project ||= /:(.*)\.git/.match(git_config['remote.origin.url'])[1]
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}'"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prophet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Bamberger