gsrd 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -1
- data/lib/gsrd.rb +6 -3
- data/lib/gsrd/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d935b035132f3d517c23f1603c7919790fa6bf05
|
4
|
+
data.tar.gz: 0c12e05a80e0ed5c22673954d217155729a6c4b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7deb0a0f4629cee5adbf13fccbde845353e4bff322558026c34772589cf824a4953e4621bafc80631b9dd073d916c0c229c792f642d920ad6f6c363a948f953
|
7
|
+
data.tar.gz: ac1d99e567ec6f5b95a3ef8d63bac899b5b9e23a4ab6627ad5b640e0ced1f74ccfa5c4d17e08acaa9fb5723d603eb8e44d1180bab790cc7fd138414997f83d89
|
data/README.md
CHANGED
@@ -13,10 +13,16 @@
|
|
13
13
|
## Configuration
|
14
14
|
|
15
15
|
### Getting your credential
|
16
|
-
In order to keep your privacy, create your [personal token on Github](https://github.com/settings/tokens).
|
16
|
+
In order to keep your privacy, create your [personal token on Github](https://github.com/settings/tokens).
|
17
|
+
|
18
|
+
If you just need to allow access to the public, repos select the option `public_repo` as shown below:
|
17
19
|
|
18
20
|

|
19
21
|
|
22
|
+
If you want to download the private ones as well, select `repo`:
|
23
|
+
|
24
|
+

|
25
|
+
|
20
26
|
## Installation
|
21
27
|
|
22
28
|
```ruby
|
data/lib/gsrd.rb
CHANGED
@@ -35,6 +35,7 @@ module Gsrd
|
|
35
35
|
Dir.mkdir(@directory_name) unless File.exists?(@directory_name)
|
36
36
|
|
37
37
|
@pagination = 1
|
38
|
+
@count = 0
|
38
39
|
|
39
40
|
loop do
|
40
41
|
|
@@ -51,11 +52,13 @@ module Gsrd
|
|
51
52
|
puts "Download URL: " + @download_uri
|
52
53
|
puts "started: " + Time.now.strftime("%d/%m/%Y %H:%M:%S")
|
53
54
|
|
54
|
-
@wget = "wget -O " + @directory_name + "/" + @file_name + " " + @download_uri
|
55
|
+
@wget = "wget -O " + @directory_name + "/" + @file_name + " " + @download_uri + " -q --show-progress"
|
55
56
|
|
56
57
|
`#{@wget}`
|
57
58
|
|
58
59
|
puts "finished: " + Time.now.strftime("%d/%m/%Y %H:%M:%S")
|
60
|
+
|
61
|
+
@count += 1
|
59
62
|
|
60
63
|
end
|
61
64
|
|
@@ -65,7 +68,7 @@ module Gsrd
|
|
65
68
|
|
66
69
|
end
|
67
70
|
|
68
|
-
puts "\n\n=======
|
71
|
+
puts "\n\n======= " + @count + " repos were downloaded to gsrd-downloads directory =======\n\n"
|
69
72
|
|
70
73
|
end
|
71
74
|
|
@@ -74,4 +77,4 @@ module Gsrd
|
|
74
77
|
gsrd = Download.new(ARGV[0])
|
75
78
|
gsrd.go()
|
76
79
|
|
77
|
-
end
|
80
|
+
end
|
data/lib/gsrd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gsrd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leonardo Cardoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.6.
|
89
|
+
rubygems_version: 2.6.7
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: GitHub Starred Repos Downloader
|