ghuls-lib 2.2.0 → 2.2.1
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 +7 -7
- 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: b2371fa6a77b4f1710e53b6aed217c0df9d6bc33
|
|
4
|
+
data.tar.gz: 82286ac445b9aa32712932eeedf829d9fb78d77d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e0046a17a4ddfa12da60cfb639decb789d54bbd540d40c5f69b201e39b423636c73b61a102584afbf43a4d5a5d5cdc9ed5e0639689ce4c5d656f6ff7c7ea793
|
|
7
|
+
data.tar.gz: 9f6a796ab03d1986af65482c920dcb9373fc9eb9a8d4e90eb872ec4dce1ddcda2ff334551a45843a7d3b900b987d70e97ba183ba5c4647646d37510f06b85773
|
data/lib/ghuls/lib.rb
CHANGED
|
@@ -65,7 +65,7 @@ module GHULS
|
|
|
65
65
|
orgs.each do |o|
|
|
66
66
|
this_org_repos = github.repositories(o[:login])
|
|
67
67
|
next unless this_org_repos.any?
|
|
68
|
-
repos
|
|
68
|
+
repos.concat(this_org_repos)
|
|
69
69
|
end
|
|
70
70
|
true_repos = []
|
|
71
71
|
repos.each do |r|
|
|
@@ -73,7 +73,7 @@ module GHULS
|
|
|
73
73
|
next if contributors.empty?
|
|
74
74
|
contributors.each do |c|
|
|
75
75
|
if c[:login] =~ /^#{username}$/i
|
|
76
|
-
true_repos
|
|
76
|
+
true_repos << r
|
|
77
77
|
else
|
|
78
78
|
next
|
|
79
79
|
end
|
|
@@ -211,7 +211,7 @@ module GHULS
|
|
|
211
211
|
def self.get_color_for_language(lang, colors)
|
|
212
212
|
color_lang = colors[lang]
|
|
213
213
|
color = color_lang['color']
|
|
214
|
-
if
|
|
214
|
+
if color_lang.nil? || color.nil?
|
|
215
215
|
return StringUtility.random_color_six
|
|
216
216
|
else
|
|
217
217
|
return color
|
|
@@ -268,15 +268,15 @@ module GHULS
|
|
|
268
268
|
privates = []
|
|
269
269
|
repos.each do |r|
|
|
270
270
|
repo_name = r[:full_name]
|
|
271
|
-
forks
|
|
271
|
+
forks << repo_name if r[:fork]
|
|
272
272
|
|
|
273
273
|
if r[:private]
|
|
274
|
-
privates
|
|
274
|
+
privates << repo_name
|
|
275
275
|
else
|
|
276
|
-
publics
|
|
276
|
+
publics << repo_name
|
|
277
277
|
end
|
|
278
278
|
|
|
279
|
-
mirrors
|
|
279
|
+
mirrors << repo_name unless r[:mirror_url].nil?
|
|
280
280
|
end
|
|
281
281
|
|
|
282
282
|
{
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ghuls-lib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.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-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: octokit
|