gito 0.4.12 → 0.4.13

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55cdd09aa85faa95b08298e5d0f50ffd9e429b2d
4
- data.tar.gz: 2987b85e6cfe4f323c1092f5d00b85c9fa54fbf7
3
+ metadata.gz: 49e47bc21126de083d1478756095ab6a44b6e043
4
+ data.tar.gz: 83ab39c3cbc421e5ca29c9274914126b6f7103ab
5
5
  SHA512:
6
- metadata.gz: 022cd0ec94dedc1003ad9e0e8821fe884172f2661d77b295be4a7db02e9b05d5ac047b8f6e7131130747647c85d4b2e388f6f4be84d95a83eb64f3f2c4d38137
7
- data.tar.gz: ed49f4328a8c73245b5ce8ad2e6ac3d51af3a1c83a75f771a4646b63deb790507266b38a09bbb773fbaf7c30d7b887787d28d09212da338aab616d3e1d489e12
6
+ metadata.gz: df3dcea26fed1eb9902097c5f43752219f0eb9669e2a317d6664f9857e30621f757a25c76696ee3b823ed84033f3469815ef68cdc4236fc6398dd662950d8e40
7
+ data.tar.gz: 47799b95a7958d54b35ca421de64c6a2040b938359f46063c844a9565fadb1aaccd0b8d9d7f1ce9d167c9941462ce93a82f3e3fdb169ec85c0e030a92c4b63f5
data/lib/gito/project.rb CHANGED
@@ -74,7 +74,7 @@ class Project
74
74
  starts_with_git = @base_url.split(//).first(4).join.eql? 'git@'
75
75
  ends_with_git = @base_url.split(//).last(4).join.eql? '.git'
76
76
 
77
- return "git@github.com:#{@base_url}.git" if @base_url.split('/').length == 2
77
+ return "git@github.com:#{@base_url}.git" if @base_url.split('/').length == 2 && !@base_url.include?("@")
78
78
 
79
79
  # ends with git but doesnt start with git
80
80
  return @base_url if ends_with_git && !starts_with_git
@@ -84,6 +84,7 @@ class Project
84
84
  # ends with git but doesnt start with git
85
85
  return "git@github.com:#{user_repo_pair}.git" if !ends_with_git && !starts_with_git
86
86
 
87
+ # git@github.com:sky-uk/uma-skyq-android.git
87
88
  @base_url
88
89
  end
89
90
 
data/lib/gito/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gito
2
- VERSION = '0.4.12'
2
+ VERSION = '0.4.13'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.12
4
+ version: 0.4.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-26 00:00:00.000000000 Z
11
+ date: 2017-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake