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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 30b4d9cee0c2dd9e654552023610892ca6ad053d
4
- data.tar.gz: 89755f439cb2ac93fd42f6d0a686a88e0754656c
2
+ SHA256:
3
+ metadata.gz: 00b5c1e40c540de6c4e803e948d2bc61e9c47028d608507d81ba2f1fec5ea30b
4
+ data.tar.gz: bfce4fc62a58a0de8a9e642cf1342b55eeaa03082b502f84883dbab210206f12
5
5
  SHA512:
6
- metadata.gz: 9f092c84c2cb5259714ba78ae15343bd8c725893185ca1da017301ef874d4efdc47a892ffcb07dcc2893cea971f9142323ffb6a9ac0b6711d4f760c338f95c63
7
- data.tar.gz: 2306385dc8267411070486dc2a9150227e0512efdb9a04e97722316322f43da113cf0fe4ba2e1cc5dc54bf734b1452ad97d67e0614b7f1de5d681ee7e986d789
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.__
@@ -1,9 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- #
3
- # USAGE:
4
- #
5
- # ghq_transfer [--debug] [--valth]
6
- #
2
+
7
3
  lib_path = File.expand_path('../../lib', __FILE__)
8
4
  $:.unshift(lib_path)
9
5
 
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module GhqTransfer
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
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.2.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: 2016-10-02 00:00:00.000000000 Z
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.6.7
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: