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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -1
  3. data/lib/gsrd.rb +6 -3
  4. data/lib/gsrd/version.rb +1 -1
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88ad3eb5d59e445530c2669f79553cb75355bf83
4
- data.tar.gz: 5cc395ee1d8ce608d070aa2007324919fbb4a432
3
+ metadata.gz: d935b035132f3d517c23f1603c7919790fa6bf05
4
+ data.tar.gz: 0c12e05a80e0ed5c22673954d217155729a6c4b5
5
5
  SHA512:
6
- metadata.gz: 3696da3fa5f0691fb751a1ba1934143b6d378448500a63fd16e8b470430ea30cfd3a7475247d4b05575694139d77ebaf5eb5106dd9eb359aceffd9e494db6799
7
- data.tar.gz: ab7eea98fa0e4b5192fcaf8e20cab426e7cb27ef27fc84349d2d919db9642e8ac50fc32633a3d053df8ea7b4379c2571f8ef54a982bc8e891772589c717fa7d8
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). You just need to select the option `public_repo` as shown below:
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
  ![public_repo](images/option.png)
19
21
 
22
+ If you want to download the private ones as well, select `repo`:
23
+
24
+ ![repo](images/repo.png)
25
+
20
26
  ## Installation
21
27
 
22
28
  ```ruby
@@ -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======= Repos downloaded to gsrd-downloads directory =======\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
@@ -1,3 +1,3 @@
1
1
  module Gsrd
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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
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-07-27 00:00:00.000000000 Z
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.6
89
+ rubygems_version: 2.6.7
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: GitHub Starred Repos Downloader