github-cloner 0.5.3 → 0.6.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
2
  SHA1:
3
- metadata.gz: 36edbd1fb2b630625fe5874a0dccb0da52b358de
4
- data.tar.gz: bdba8b2695460ed2487e90ec94ecfd342bd737d3
3
+ metadata.gz: 954e1b98e02564d5936939adf5965462c5d05131
4
+ data.tar.gz: 58f054766320348f3352e81b1f8e8667cc1a2b38
5
5
  SHA512:
6
- metadata.gz: 67407bf293bfdc4dca96351e44b8a5c991f44d6889ae098f9c16511940c977c4009004210fee38b6d32c21ddcb93b8789390c4d307e4b85aac8f14947136aeaf
7
- data.tar.gz: b17439b5268306e29ded000c5c4d4bd16ecca639fdb8a611991795930b1f0d12a000e41878fe41086d16873ee29f80b2450d43364a428738cbde7248a6ef5f4a
6
+ metadata.gz: 06f16e6b8fe8ef6c342dd70c98e2393f1a38ace5399d696be83aa84393bb1d314fb5ec17c0bf93e7ab664f86868db41d424a715245d19bc94dcfc367df440bca
7
+ data.tar.gz: 6bdc5503322086e4e3592f0665050edb3b1286df711ddcc8ba6f5f05458d6688dca6c01c8186f4a5bf8a25a2e57ec4f415debb5675a3c4c49eeb3e13f4707218
@@ -7,6 +7,12 @@ This change log follows the conventions of [keepachangelog.com](http://keepachan
7
7
 
8
8
  - N/A
9
9
 
10
+ ## 0.6.0 - 2017-12-30
11
+
12
+ - Update gem dependencies
13
+ - Clone the repositories to the same base directory
14
+ - Remove some unused dependencies
15
+
10
16
  ## 0.5.3 - 2016-10-30
11
17
 
12
18
  - Remove the `guard` related gems to lower the requirement for `ruby_dep`
data/README.md CHANGED
@@ -47,8 +47,6 @@ Specific options:
47
47
  where LANG is main language as shown on Github
48
48
  -a, --[no-]all-repos All repository only (optional)
49
49
  default to original/non-forked repositories only
50
- -g, --[no-]group-by-user Group the output by {BASE_DIR}/{USER}/{LANG}
51
- default to {BASE_DIR}/{LANG}/{USER}
52
50
  -c, --[no-]clone Clone the repositories to the path specified (optional)
53
51
  default to --no-clone e.g. dry-run only
54
52
 
@@ -175,8 +173,8 @@ Process 1 of 1 : git clone git@github.com:littlebee/got.git /Users/bchoomnuan/De
175
173
 
176
174
  ### TODO
177
175
 
178
- - Replace system call with the ruby library like [grit](https://github.com/mojombo/grit) or something similar
179
- - Allow the `https` when performing the clone
176
+ - [ ] Replace system call with the ruby library like [grit](https://github.com/mojombo/grit) or something similar
177
+ - [ ] Allow the `https` when performing the clone
180
178
 
181
179
  ### Related Projects
182
180
 
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ Rake::TestTask.new do |t|
6
6
  t.test_files = FileList["test/lib/#{project_name}/test_*.rb"]
7
7
  t.verbose = true
8
8
  end
9
- task default: [:test, :rubocop]
9
+ task default: [:test]
10
10
  task :pry do
11
11
  require 'pry'
12
12
  require 'awesome_print'
@@ -26,19 +26,14 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
27
27
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
28
28
  spec.require_paths = ['lib']
29
-
30
- spec.add_runtime_dependency 'github_api', '~> 0.13'
31
-
32
- spec.add_development_dependency 'awesome_print', '~> 1.6'
33
- spec.add_development_dependency 'bundler', '~> 1.10'
34
- spec.add_development_dependency 'gem-ctags', '~> 1.0'
35
- #spec.add_development_dependency 'guard', '~> 2.12'
36
- #spec.add_development_dependency 'guard-minitest', '~> 2.4'
37
- spec.add_development_dependency 'minitest', '~> 5.6'
29
+ spec.add_runtime_dependency 'github_api', '~> 0.18'
30
+ spec.add_development_dependency 'awesome_print', '~> 1.8'
31
+ spec.add_development_dependency 'bundler', '~> 1.16'
32
+ spec.add_development_dependency 'minitest', '~> 5.10'
38
33
  spec.add_development_dependency 'minitest-spec-context', '~> 0.0'
39
- spec.add_development_dependency 'pry', '~> 0.10'
40
- spec.add_development_dependency 'pry-byebug', '~> 3.1' if RUBY_VERSION >= '2.0.0'
34
+ spec.add_development_dependency 'pry', '~> 0.11'
35
+ spec.add_development_dependency 'pry-byebug', '~> 3.5'
41
36
  spec.add_development_dependency 'rake', '~> 10.4'
42
- spec.add_development_dependency 'rubocop', '~> 0.31'
43
- spec.add_development_dependency 'yard', '~> 0.8'
37
+ spec.add_development_dependency 'rubocop', '~> 0.52'
38
+ spec.add_development_dependency 'yard', '~> 0.9'
44
39
  end
@@ -68,11 +68,8 @@ module GithubCloner
68
68
  # Note: need to cleanup the language like 'Emacs Lisp' to 'Emacs_Lisp' or 'emacs_lisp'
69
69
  language = FilenameCleaner.sanitize(language, '_', false)
70
70
 
71
- if args[:group_by_user]
72
- output_path = [base_path, org_name, language, repo_name].join(File::SEPARATOR)
73
- else
74
- output_path = [base_path, language, org_name, repo_name].join(File::SEPARATOR)
75
- end
71
+ # Simplify this to one directory for a given organization/username
72
+ output_path = [base_path, org_name, repo_name].join(File::SEPARATOR)
76
73
 
77
74
  puts "Process #{i+1} of #{projects.size} : git clone git@#{args[:repo_host]}:#{[org_name, repo_name].join(File::SEPARATOR)}.git #{output_path}"
78
75
 
@@ -12,7 +12,7 @@ module GithubCloner
12
12
  options.base_dir = "."
13
13
  options.repo_host = "github.com"
14
14
  options.all_repos = false
15
- options.group_by_user = false
15
+ # options.group_by_user = false
16
16
  options.clone_repos = false
17
17
  options.languages = []
18
18
 
@@ -65,11 +65,11 @@ module GithubCloner
65
65
  options.all_repos = all_repos
66
66
  end
67
67
 
68
- opts.on("-g", "--[no-]group-by-user",
69
- "Group the output by {BASE_DIR}/{USER}/{LANG}",
70
- "default to {BASE_DIR}/{LANG}/{USER}") do |gbu|
71
- options.group_by_user = gbu
72
- end
68
+ # opts.on("-g", "--[no-]group-by-user",
69
+ # "Group the output by {BASE_DIR}/{USER}/{LANG}",
70
+ # "default to {BASE_DIR}/{LANG}/{USER}") do |gbu|
71
+ # options.group_by_user = gbu
72
+ # end
73
73
 
74
74
  opts.on( "-c", "--[no-]clone",
75
75
  "Clone the repositories to the path specified (optional)",
@@ -1,3 +1,3 @@
1
1
  module GithubCloner
2
- VERSION = '0.5.3'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-cloner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burin Choomnuan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-30 00:00:00.000000000 Z
11
+ date: 2017-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github_api
@@ -16,70 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.13'
19
+ version: '0.18'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.13'
26
+ version: '0.18'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: awesome_print
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.6'
33
+ version: '1.8'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.6'
40
+ version: '1.8'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.10'
47
+ version: '1.16'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.10'
55
- - !ruby/object:Gem::Dependency
56
- name: gem-ctags
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '1.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '1.0'
54
+ version: '1.16'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: minitest
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '5.6'
61
+ version: '5.10'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '5.6'
68
+ version: '5.10'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: minitest-spec-context
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -100,28 +86,28 @@ dependencies:
100
86
  requirements:
101
87
  - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: '0.10'
89
+ version: '0.11'
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: '0.10'
96
+ version: '0.11'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: pry-byebug
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
101
  - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: '3.1'
103
+ version: '3.5'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: '3.1'
110
+ version: '3.5'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: rake
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -142,28 +128,28 @@ dependencies:
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: '0.31'
131
+ version: '0.52'
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
136
  - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: '0.31'
138
+ version: '0.52'
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: yard
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
143
  - - "~>"
158
144
  - !ruby/object:Gem::Version
159
- version: '0.8'
145
+ version: '0.9'
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
150
  - - "~>"
165
151
  - !ruby/object:Gem::Version
166
- version: '0.8'
152
+ version: '0.9'
167
153
  description: " Clone/list multiple Github repositories for a given user/organization
168
154
  including private repos easily.\n e.g.$github-cloner --base-dir ~/projects --user
169
155
  awesome_dev --language \"Emacs Lisp\" --clone\n "
@@ -210,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
196
  version: '0'
211
197
  requirements: []
212
198
  rubyforge_project:
213
- rubygems_version: 2.4.5.1
199
+ rubygems_version: 2.5.2
214
200
  signing_key:
215
201
  specification_version: 4
216
202
  summary: Clone/list Github repository for a given user/organization include private/public