github_downloader 0.0.1 → 0.0.2

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: 6bde27212d1f9823b9bd580c9beb38134fb30b2f
4
- data.tar.gz: 8598e26553c658c728e0e1b1e15f460e6cdac8da
3
+ metadata.gz: 3a4d90a87197037f8914bb331fda0994a92d43ff
4
+ data.tar.gz: 5a395d094ba276d06b33100c42e3c8cdd073efdf
5
5
  SHA512:
6
- metadata.gz: e671a044ab224e15ee2bf36c2679f4c0f1203c63af140d976604ee25f150563be73f43ca12cfaa9f9db3246559175b33c31ab0984296ccc9afa85d75ad77eaf2
7
- data.tar.gz: 4ac523ecb512bfb0fec77ec4e977b928b071331ee8bcc9624153b642017c5fb4467f3b4517e6ccd8d7255cbe7f7822aaf39d0d93c6c9f7aa65551c1a6c6807de
6
+ metadata.gz: 564f6b229cefc9a4fd1e3f80e2f9dfae46d74d46139021f60a9f515b189572b379a9568d8db2d9ca4d9b2fd96ec928957ff1c0d5b2a91990101ff84241043ee6
7
+ data.tar.gz: 463ffe31261bf3c8e05f77cb553050e9c88ac053c394823695e20066cce77f3f007ca7526ffe31d6bc0c59fb69de840d7d608905936f05623c444d1d801b7480
data/README.md CHANGED
@@ -1,28 +1,32 @@
1
1
  # GithubDownloader
2
2
 
3
- TODO: Write a gem description
3
+ A simple gem for bulk downloading all the GitHub repositories you have access to for an user account or an organization account.
4
+
5
+ It will download all the repositories you have access to with your account.
4
6
 
5
7
  ## Installation
6
8
 
7
- Add this line to your application's Gemfile:
9
+ $ gem install github_downloader
10
+
11
+ ## Usage
8
12
 
9
- gem 'github_downloader'
13
+ Once installed, you can use the gem by typing the command `ghdl` with some parameters.
10
14
 
11
- And then execute:
15
+ For a comprehensive help with all available parameters, you should execute:
12
16
 
13
- $ bundle
17
+ $ ghdl --help
14
18
 
15
- Or install it yourself as:
19
+ An example for downloading all repos for an organization in the current directory:
16
20
 
17
- $ gem install github_downloader
21
+ $ ghdl -u your_github_user -p your_github_password -g organization_name
18
22
 
19
- ## Usage
23
+ An example for downloading all repos of a given user in a specific directory:
20
24
 
21
- TODO: Write usage instructions here
25
+ $ ghdl -u your_github_user -p your_github_password -o /an/output/directory/ -r a_github_user
22
26
 
23
27
  ## Contributing
24
28
 
25
- 1. Fork it ( http://github.com/<my-github-username>/github_downloader/fork )
29
+ 1. Fork it ( http://github.com/mrmans0n/github-downloader/fork )
26
30
  2. Create your feature branch (`git checkout -b my-new-feature`)
27
31
  3. Commit your changes (`git commit -am 'Add some feature'`)
28
32
  4. Push to the branch (`git push origin my-new-feature`)
@@ -55,7 +55,7 @@ module GithubDownloader
55
55
  user_repo = options[:from]
56
56
 
57
57
  github = Github.new basic_auth: "#{user}:#{pass}" do |config|
58
- config.org = organization
58
+ config.org = organization unless organization.blank?
59
59
  config.auto_pagination = true
60
60
  end
61
61
 
@@ -72,4 +72,4 @@ module GithubDownloader
72
72
  end
73
73
  end
74
74
  end
75
- end
75
+ end
@@ -1,3 +1,3 @@
1
1
  module GithubDownloader
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_downloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nacho Lopez