ghuls 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/ghuls/cli.rb +10 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c7d9916445b75a0652ba767a30d44d44124973d
|
4
|
+
data.tar.gz: 299c2eb5fcf5ff483037524ce183d122cf0014b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bd1dbe5f636ea08e469d3694af2e20bd68ab41840daa3b275275f09e69de1add6b6131335aaa465dc2a5ba50ca707e2876128f32077f12609034b5989418a04
|
7
|
+
data.tar.gz: 1014efe81b7bc3ed4e61311c1a893f040cf5ad45d45ebb415fcd084f79e76269326eadfb50425b4c5a79f18a1d0e840610c479dd9bf414688f1ff4e126442ed0
|
data/CHANGELOG.md
CHANGED
data/lib/ghuls/cli.rb
CHANGED
@@ -2,7 +2,7 @@ require 'octokit'
|
|
2
2
|
require 'base64'
|
3
3
|
require 'rainbow'
|
4
4
|
require 'progress_bar'
|
5
|
-
require 'ghuls'
|
5
|
+
require 'ghuls/lib'
|
6
6
|
|
7
7
|
module GHULS
|
8
8
|
class CLI
|
@@ -12,10 +12,10 @@ module GHULS
|
|
12
12
|
args.each do |arg|
|
13
13
|
case arg
|
14
14
|
when '-h', '--help' then @opts[:help] = true
|
15
|
-
when '-un', '--user' then @opts[:user] =
|
16
|
-
when '-pw', '--pass' then @opts[:pass] =
|
17
|
-
when '-t', '--token' then @opts[:token] =
|
18
|
-
when '-g', '--get' then @opts[:get] =
|
15
|
+
when '-un', '--user' then @opts[:user] = GHULS::Lib.get_next(arg, args)
|
16
|
+
when '-pw', '--pass' then @opts[:pass] = GHULS::Lib.get_next(arg, args)
|
17
|
+
when '-t', '--token' then @opts[:token] = GHULS::Lib.get_next(arg, args)
|
18
|
+
when '-g', '--get' then @opts[:get] = GHULS::Lib.get_next(arg, args)
|
19
19
|
when '-d', '--debug' then @opts[:debug] = true
|
20
20
|
when '-r', '--random' then @opts[:get] = nil
|
21
21
|
end
|
@@ -52,7 +52,7 @@ module GHULS
|
|
52
52
|
parse_options(args)
|
53
53
|
@bar = ProgressBar.new(5) if @opts[:debug]
|
54
54
|
increment
|
55
|
-
config =
|
55
|
+
config = GHULS::Lib.configure_stuff(@opts)
|
56
56
|
increment
|
57
57
|
if config == false
|
58
58
|
puts 'Error: authentication failed, check your username/password ' \
|
@@ -74,7 +74,7 @@ module GHULS
|
|
74
74
|
|
75
75
|
def output(percents)
|
76
76
|
percents.each do |l, p|
|
77
|
-
color =
|
77
|
+
color = GHULS::Lib.get_color_for_language(l.to_s, @colors)
|
78
78
|
puts Rainbow("#{l}: #{p}%").color(color)
|
79
79
|
end
|
80
80
|
end
|
@@ -94,10 +94,10 @@ module GHULS
|
|
94
94
|
puts @help if @opts[:help]
|
95
95
|
exit if failed?
|
96
96
|
increment
|
97
|
-
@opts[:get] =
|
98
|
-
user_percents =
|
97
|
+
@opts[:get] = GHULS::Lib.get_random_user(@gh) if @opts[:get].nil?
|
98
|
+
user_percents = GHULS::Lib.analyze_user(@opts[:get], @gh)
|
99
99
|
increment
|
100
|
-
org_percents =
|
100
|
+
org_percents = GHULS::Lib.analyze_orgs(@opts[:get], @gh)
|
101
101
|
increment
|
102
102
|
|
103
103
|
if user_percents != false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghuls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eli Foster
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|