Sha256: 5a215d106eff68966dfa4af18128b692690043edb2b6aa78ea003c9f18adae55

Contents?: true

Size: 748 Bytes

Versions: 4

Compression:

Stored size: 748 Bytes

Contents

require '../lib/git_clone_url'

git_url = 'git://github.com/schacon/ticgit.git'
ssh_url = 'git@github.com:schacon/ticgit.git'
https_url = 'https://github.com/schacon/ticgit.git'
https_url_with_userinfo = 'https://user:pass@github.com/schacon/ticgit.git'

GitCloneUrl.parse(git_url)
#=> {scheme: 'git', host: 'github.com', path: '/schacon/ticgit.git' }
GitCloneUrl.parse(ssh_url)
#=> {scheme: nil, user: 'git', userinfo: 'git', host: 'github.com', path: '/schacon/ticgit.git' }
GitCloneUrl.parse(https_url)
#=> {scheme: 'https', host: 'github.com', path: '/schacon/ticgit.git'}
GitCloneUrl.parse(https_url_with_userinfo)
#=> {scheme: 'https', userinfo: 'user:pass', user: 'user', password: 'pass',
# host: 'github.com', path: '/schacon/ticgit.git'}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
git_clone_url-1.0.1 example/simple.rb
git_clone_url-1.0.0 example/simple.rb
git_clone_url-0.1.1 example/simple.rb
git_clone_url-0.1.0 example/simple.rb