gitcloudcli 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3fe7f6a0cc420ec1deec8b9f8573b74b1d3b5cc56de2a91b514f922ff31f838d
4
- data.tar.gz: 61b248b92a12ea3094e779d17a782bc1e6045b22e7a453632e8e5faea028fe3b
3
+ metadata.gz: f8e8f4acf20f6c67f05216080213225cb9b0d68ae934149bc507bfb8d1477877
4
+ data.tar.gz: d1c1257f94570b56c132b9824c63338e0c6e03cd988aba2878ab4247e099493c
5
5
  SHA512:
6
- metadata.gz: 685df883931641fea05ee3425c4ec9086d897ee8656c1679b63b0be3fb1d55faac43530d3f428bc8403faf7de65af6d4e256cba3b5a2082b0e54a57ca59ecee0
7
- data.tar.gz: 117121fecad51d53ab3f63522686de5280e0c546da040a5c3aae871831d286d54be7171cc9c598937dda70dd643ca2393e71df9f13520a9f43751f33384297f1
6
+ metadata.gz: 55371b3edf98294301381bf77df3dc3593b95c94161fae28de8abab4c53035da2f48461d30afc825ca044281b3d118d892eb868d43697e1e02cfcc16dc69743a
7
+ data.tar.gz: 000dd525776cf8c607e6d0e965f8da8297cf13899b61bce977a469304b191cd4bf18d0c27d6bc6d2f8ee2329ef624004e10c26dbd2701343f6c9cba401299da8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitcloudcli (1.0.0)
4
+ gitcloudcli (1.0.2)
5
5
  thor
6
6
 
7
7
  GEM
@@ -6,10 +6,9 @@ require "net/http"
6
6
  module Gitcloudcli
7
7
  class Github < Git
8
8
  def initialize(url, token)
9
- uri = URI::parse(url)
10
- result = uri.path.to_s.split("/")
11
- @username=result[1]
12
- @repo=result[2].to_s.split(".")[0]
9
+ result = url.to_s.split /:|\//
10
+ @repo=result.pop.to_s.split(".").first
11
+ @username=result.pop
13
12
  @token=token
14
13
  end
15
14
 
@@ -1,3 +1,3 @@
1
1
  module Gitcloudcli
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitcloudcli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhangheng