ghuls 1.4.2 → 1.4.3
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 +18 -11
- 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: 13c6d080b29670af384549e29e366764ca27987c
|
4
|
+
data.tar.gz: 99b6cbd49810cb647992fe14ca5c053b29180359
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c4b7a69199edccd29db9e957bafbd934131da9ad8f1135ad72ca84e9380fb2f5e48c122d107e0e738d9b57560e23069d4e7692845e522a3f416b667546ce590
|
7
|
+
data.tar.gz: c72f1c3c7e565f75b98e23a1699c77a3f09a022600c399de9ec4e9843f3abbaf200bab43331bd7c8dd13b45578a1f30e3dc2af41eea745346f6be60cc916ec92
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
## Version 1
|
3
|
+
### Version 1.4.3
|
4
|
+
* Update to use ghuls-lib 1.2.1.
|
5
|
+
* Provides slightly more information.
|
6
|
+
* Will now analyze the organizations even if the user does not have any personal repositories.
|
7
|
+
* Data output uses the username given by the lib instead of the one entered in the arguments. This provides more accurate casing. For example, if you entered "programfox", it will use "ProgramFOX".
|
8
|
+
|
3
9
|
### Version 1.4.2
|
4
10
|
* Update to require ghuls-lib 1.1.3 for a major bug fix.
|
5
11
|
* Actually require certain minimum versions of things.
|
data/lib/ghuls/cli.rb
CHANGED
@@ -95,22 +95,29 @@ module GHULS
|
|
95
95
|
exit if failed?
|
96
96
|
increment
|
97
97
|
@opts[:get] = GHULS::Lib.get_random_user(@gh) if @opts[:get].nil?
|
98
|
-
user_percents = GHULS::Lib.analyze_user(@opts[:get], @gh)
|
99
|
-
increment
|
100
|
-
org_percents = GHULS::Lib.analyze_orgs(@opts[:get], @gh)
|
101
|
-
increment
|
102
98
|
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
99
|
+
user = GHULS::Lib.get_user_and_check(@opts[:get], @gh)
|
100
|
+
if user == false
|
101
|
+
puts 'Sorry, something wen\'t wrong.'
|
102
|
+
puts "We could not find any user named #{@opts[:get]}."
|
103
|
+
puts 'If you believe this is an error, please report it as a bug.'
|
104
|
+
else
|
105
|
+
user_percents = GHULS::Lib.analyze_user(@opts[:get], @gh)
|
106
|
+
increment
|
107
|
+
org_percents = GHULS::Lib.analyze_orgs(@opts[:get], @gh)
|
108
|
+
increment
|
109
|
+
if !user_percents.nil?
|
110
|
+
puts "Getting language data for #{user[:username]}..."
|
111
|
+
output(user_percents)
|
112
|
+
else
|
113
|
+
puts 'Could not find any personal data to analyze.'
|
114
|
+
end
|
115
|
+
if !org_percents.nil?
|
107
116
|
puts 'Getting language data for their organizations...'
|
108
117
|
output(org_percents)
|
109
118
|
else
|
110
|
-
|
119
|
+
puts 'Could not find any organizaztion data to analyze.'
|
111
120
|
end
|
112
|
-
else
|
113
|
-
fail_after_analyze
|
114
121
|
end
|
115
122
|
exit
|
116
123
|
end
|
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.3
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|