git_clone_url 1.0.1 → 2.0.0.pre.1

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
  SHA1:
3
- metadata.gz: ae6b2cf0fc632a6c27a804671d554cd3cd77c167
4
- data.tar.gz: a628211b4866e28ad1a6a079a3e809bea88a961a
3
+ metadata.gz: a32c9fb3d2c441d9ffd24c8379d0d89798062d7a
4
+ data.tar.gz: ca2d3393d5ba3995cf6253931263fdc7e615a5e9
5
5
  SHA512:
6
- metadata.gz: 7685cbfb7b6af402e57d7f577e85f348b69e524d22ea8a33e1bc5eed328fda366c6ce0f333c4b1f2cc7238b61ac8c67688fd9fa192002e7fd41c36aca8f67bf5
7
- data.tar.gz: efac94b34a412db8999940e2927b799184a25cea2011b4ce2c78a754bcddcfad7cd1c344b166e8cc07c3925b5690a47618b731839397ef20bf0225482d3b195e
6
+ metadata.gz: 6c5ad96e5930499e01e04f04d9819130a614973137e101627c56044f1bfee7396a0c9c2a170d9c47d31ed3f9275e81914c5fb991e961fa6db612a5fa4ae73e70
7
+ data.tar.gz: bd225f3ec05b18028d78ec0a4d138bedb252151655f98c4410d190c83d4f536fe8e470cd451b6d45feeeff06aa58d89b231905a439279ecdd6ad37c878ddbaae
data/README.md CHANGED
@@ -24,7 +24,7 @@ GitCloneUrl.parse(git_url)
24
24
  #=> {scheme: 'git', host: 'github.com', path: '/schacon/ticgit.git' }
25
25
  GitCloneUrl.parse(ssh_url)
26
26
  #=> #<URI::SshGit::Generic git@github.com:schacon/ticgit.git>
27
- #=> {scheme: nil, user: 'git', userinfo: 'git', host: 'github.com', path: '/schacon/ticgit.git' }
27
+ #=> {scheme: nil, user: 'git', userinfo: 'git', host: 'github.com', path: 'schacon/ticgit.git' }
28
28
  GitCloneUrl.parse(https_url)
29
29
  #=> #<URI::HTTPS https://github.com/schacon/ticgit.git>
30
30
  #=> {scheme: 'https', host: 'github.com', path: '/schacon/ticgit.git'}
data/changelog.md CHANGED
@@ -1,3 +1,44 @@
1
+ <a name="2.0.0.pre.1"></a>
2
+ # [2.0.0.pre.1](https://github.com/packsaddle/ruby-git_clone_url/compare/v1.0.1...v2.0.0.pre.1) (2015-12-03)
3
+
4
+
5
+ ## Breaking change
6
+
7
+ * **deps:** update uri-ssh_git version ([0fc9c3f](https://github.com/packsaddle/ruby-git_clone_url/commit/0fc9c3f))
8
+
9
+
10
+ ### diff between v1 and v2 behavior
11
+
12
+ ```diff
13
+ git_url = 'git://github.com/schacon/ticgit.git'
14
+ ssh_url = 'git@github.com:schacon/ticgit.git'
15
+ https_url = 'https://github.com/schacon/ticgit.git'
16
+ https_url_with_userinfo = 'https://user:pass@github.com/schacon/ticgit.git'
17
+
18
+ GitCloneUrl.parse(git_url)
19
+ #=> #<URI::Generic git://github.com/schacon/ticgit.git>
20
+ #=> {scheme: 'git', host: 'github.com', path: '/schacon/ticgit.git' }
21
+ GitCloneUrl.parse(ssh_url)
22
+ #=> #<URI::SshGit::Generic git@github.com:schacon/ticgit.git>
23
+ -#=> {scheme: nil, user: 'git', userinfo: 'git', host: 'github.com', path: '/schacon/ticgit.git' }
24
+ +#=> {scheme: nil, user: 'git', userinfo: 'git', host: 'github.com', path: 'schacon/ticgit.git' }
25
+ GitCloneUrl.parse(https_url)
26
+ #=> #<URI::HTTPS https://github.com/schacon/ticgit.git>
27
+ #=> {scheme: 'https', host: 'github.com', path: '/schacon/ticgit.git'}
28
+ GitCloneUrl.parse(https_url_with_userinfo)
29
+ #=> #<URI::HTTPS https://user:pass@github.com/schacon/ticgit.git>
30
+ #=> {scheme: 'https', userinfo: 'user:pass', user: 'user', password: 'pass',
31
+ # host: 'github.com', path: '/schacon/ticgit.git'}
32
+ ```
33
+
34
+ `git_clone_url` uses `uri-ssh_git` directly, so this changes `git_clone_url`
35
+ behavior.
36
+
37
+ * https://github.com/packsaddle/ruby-git_clone_url/issues/6
38
+ * https://github.com/packsaddle/ruby-uri-ssh_git/issues/14
39
+
40
+
41
+
1
42
  <a name="1.0.1"></a>
2
43
  ## [1.0.1](https://github.com/packsaddle/ruby-git_clone_url/compare/v1.0.0...v1.0.1) (2015-12-02)
3
44
 
data/example/simple.rb CHANGED
@@ -8,7 +8,7 @@ https_url_with_userinfo = 'https://user:pass@github.com/schacon/ticgit.git'
8
8
  GitCloneUrl.parse(git_url)
9
9
  #=> {scheme: 'git', host: 'github.com', path: '/schacon/ticgit.git' }
10
10
  GitCloneUrl.parse(ssh_url)
11
- #=> {scheme: nil, user: 'git', userinfo: 'git', host: 'github.com', path: '/schacon/ticgit.git' }
11
+ #=> {scheme: nil, user: 'git', userinfo: 'git', host: 'github.com', path: 'schacon/ticgit.git' }
12
12
  GitCloneUrl.parse(https_url)
13
13
  #=> {scheme: 'https', host: 'github.com', path: '/schacon/ticgit.git'}
14
14
  GitCloneUrl.parse(https_url_with_userinfo)
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ['lib']
31
31
 
32
- spec.add_runtime_dependency 'uri-ssh_git', '>= 1.0', '< 2.0'
32
+ spec.add_runtime_dependency 'uri-ssh_git', '>= 2.0.pre', '< 3.0'
33
33
 
34
34
  spec.add_development_dependency 'bundler'
35
35
  spec.add_development_dependency 'rake'
@@ -1,3 +1,3 @@
1
1
  module GitCloneUrl
2
- VERSION = '1.0.1'
2
+ VERSION = '2.0.0.pre.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_clone_url
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sanemat
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-02 00:00:00.000000000 Z
11
+ date: 2015-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uri-ssh_git
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: 2.0.pre
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '2.0'
22
+ version: '3.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '1.0'
29
+ version: 2.0.pre
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '2.0'
32
+ version: '3.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -110,9 +110,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - ">="
113
+ - - ">"
114
114
  - !ruby/object:Gem::Version
115
- version: '0'
115
+ version: 1.3.1
116
116
  requirements: []
117
117
  rubyforge_project:
118
118
  rubygems_version: 2.4.5.1