ghuls-lib 2.0.1 → 2.0.2
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/lib/ghuls/lib.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 299e01ecedca7f648fcd46e367f08fc6debdacea
|
|
4
|
+
data.tar.gz: 0035f3c9b4247553ef559da16d251f637a130224
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41c8c3bfe9b9bf38efcf38a5dc7c1e40ed0e1e131a0ba23582b2b082e04e4f21329dfaddc6ed271a90167991419718aeb3ce2b6ae067c4cb7a77e18756bb4294
|
|
7
|
+
data.tar.gz: 830a185c4f1d08ff03937b2a92e7b69eb3e275206eace94bf11b5accaa743aea78b52d6ff459ece0e7a2aa326400afd768ffad8ef0eea89a6f4d57e572236827
|
data/lib/ghuls/lib.rb
CHANGED
|
@@ -185,7 +185,6 @@ module GHULS
|
|
|
185
185
|
# { :Ruby => 129890, :CoffeeScript => 5970 }
|
|
186
186
|
def self.get_user_langs(username, github)
|
|
187
187
|
repos = get_user_repos(username, github)
|
|
188
|
-
p repos
|
|
189
188
|
langs = {}
|
|
190
189
|
repos[:public].each do |r|
|
|
191
190
|
repo_langs = github.languages(r)
|
|
@@ -265,6 +264,7 @@ module GHULS
|
|
|
265
264
|
def self.analyze_orgs(username, github)
|
|
266
265
|
langs = get_org_langs(username, github)
|
|
267
266
|
return nil if langs.empty?
|
|
267
|
+
return langs
|
|
268
268
|
end
|
|
269
269
|
|
|
270
270
|
# Performs the main analysis of the user.
|
|
@@ -275,6 +275,7 @@ module GHULS
|
|
|
275
275
|
def self.analyze_user(username, github)
|
|
276
276
|
langs = get_user_langs(username, github)
|
|
277
277
|
return nil if langs.empty?
|
|
278
|
+
return langs
|
|
278
279
|
end
|
|
279
280
|
|
|
280
281
|
using StringUtility
|