ghq_transfer 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +13 -1
- data/bin/ghq_transfer +1 -5
- data/lib/ghq_transfer.rb +6 -6
- data/lib/ghq_transfer/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 00b5c1e40c540de6c4e803e948d2bc61e9c47028d608507d81ba2f1fec5ea30b
|
4
|
+
data.tar.gz: bfce4fc62a58a0de8a9e642cf1342b55eeaa03082b502f84883dbab210206f12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37e765b9f3366a96a3e151eb541354cfd66d2305c6a2d2e7c9bb734a9af64cad2d4fa8b02d71c65a13720d42a99770ccfcb8548c52563ed2d5670dcee32f77cc
|
7
|
+
data.tar.gz: 73f1fa04ba2632786198fe7d74ffddb78023180757ef581162bda03e76f663833d4570fdd7ed27fff2b02b412e70cb56de6eb240b21f487c726af72f90a1834f
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ghq_transfer
|
1
|
+
# ghq_transfer [![Gem Version](https://badge.fury.io/rb/ghq_transfer.svg)](http://badge.fury.io/rb/ghq_transfer)
|
2
2
|
|
3
3
|
Transfer local repositories from flatten directory style to [ghq](https://github.com/motemen/ghq) convention style.
|
4
4
|
|
@@ -25,6 +25,7 @@ Following the __dry run mode__.
|
|
25
25
|
|
26
26
|
```sh
|
27
27
|
% ghq_transfer --dry-run
|
28
|
+
*** dry run ***
|
28
29
|
/Users/account/.ghq/rabbit -> /Users/account/.ghq/github.com/rabbit-shocker/rabbit
|
29
30
|
/Users/account/.ghq/racc -> /Users/account/.ghq/github.com/tenderlove/racc
|
30
31
|
/Users/account/.ghq/rack -> /Users/account/.ghq/github.com/rack/rack
|
@@ -45,6 +46,17 @@ Apply the ghq convention layout to your `ghq root` repositories.
|
|
45
46
|
|
46
47
|
```sh
|
47
48
|
% ghq_transfer --valth
|
49
|
+
*** valth!! ***
|
50
|
+
/Users/account/.ghq/rabbit -> /Users/account/.ghq/github.com/rabbit-shocker/rabbit
|
51
|
+
/Users/account/.ghq/racc -> /Users/account/.ghq/github.com/tenderlove/racc
|
52
|
+
/Users/account/.ghq/rack -> /Users/account/.ghq/github.com/rack/rack
|
53
|
+
/Users/account/.ghq/rack-attack -> /Users/account/.ghq/github.com/kickstarter/rack-attack
|
54
|
+
/Users/account/.ghq/rack-cache -> /Users/account/.ghq/github.com/rtomayko/rack-cache
|
55
|
+
/Users/account/.ghq/rack-mini-profiler -> /Users/account/.ghq/github.com/MiniProfiler/rack-mini-profiler
|
56
|
+
/Users/account/.ghq/rack-pjax -> /Users/account/.ghq/github.com/eval/rack-pjax
|
57
|
+
/Users/account/.ghq/rack-protection -> /Users/account/.ghq/github.com/rkh/rack-protection
|
58
|
+
/Users/account/.ghq/rack-test -> /Users/account/.ghq/github.com/brynary/rack-test
|
59
|
+
/Users/account/.ghq/rails -> /Users/account/.ghq/github.com/rails/rails
|
48
60
|
```
|
49
61
|
|
50
62
|
:star2: __Execute apply mode after dry run mode, strongly recommended.__
|
data/bin/ghq_transfer
CHANGED
data/lib/ghq_transfer.rb
CHANGED
@@ -26,13 +26,13 @@ module GhqTransfer
|
|
26
26
|
|
27
27
|
origin_url.chomp!
|
28
28
|
|
29
|
-
host, user, repo = if /^git@.+/ === origin_url
|
30
|
-
extract_paths_from_ssh(origin_url)
|
31
|
-
else
|
32
|
-
extract_paths_from_https(origin_url)
|
33
|
-
end
|
34
|
-
|
35
29
|
begin
|
30
|
+
host, user, repo = if /^git@.+/ === origin_url
|
31
|
+
extract_paths_from_ssh(origin_url)
|
32
|
+
else
|
33
|
+
extract_paths_from_https(origin_url)
|
34
|
+
end
|
35
|
+
|
36
36
|
dest_dir = ghq_root.join(host, user)
|
37
37
|
dest_path = dest_dir.join(repo)
|
38
38
|
|
data/lib/ghq_transfer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghq_transfer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Koichi ITO
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Transfer local repositories from flatten directory style to ghq convention
|
14
14
|
style.
|
@@ -43,10 +43,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
43
|
version: '0'
|
44
44
|
requirements: []
|
45
45
|
rubyforge_project:
|
46
|
-
rubygems_version: 2.
|
46
|
+
rubygems_version: 2.7.7
|
47
47
|
signing_key:
|
48
48
|
specification_version: 4
|
49
49
|
summary: Transfer local repositories from flatten directory style to ghq convention
|
50
50
|
style.
|
51
51
|
test_files: []
|
52
|
-
has_rdoc:
|