ghuls-lib 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ghuls/lib.rb +7 -7
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4e2040544766256c602ec373c8009ab23cc84d2
4
- data.tar.gz: 889301d654b0f5bc7d24f237c7c887a821e578f5
3
+ metadata.gz: b2371fa6a77b4f1710e53b6aed217c0df9d6bc33
4
+ data.tar.gz: 82286ac445b9aa32712932eeedf829d9fb78d77d
5
5
  SHA512:
6
- metadata.gz: 83007bb0b206a49e418a21b714813e4778c8bff5f3b265a1c4a2624c83b6ea7f880d5e3f38a17d8bf2c6172303c1d009dcb4429d7ec69e4b1a6dddf83aa0f1fa
7
- data.tar.gz: dc6ea9e9b2d07a7f5beccd73868ca99c85324257da745d5b27445d961833559e52ee91d030f67f7f5c305265cc08f816886b94a85e674c11fe8d20210544aa6e
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 += this_org_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.push(r)
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 colors_lang.nil? || color.nil?
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.push(repo_name) if r[:fork]
271
+ forks << repo_name if r[:fork]
272
272
 
273
273
  if r[:private]
274
- privates.push(repo_name)
274
+ privates << repo_name
275
275
  else
276
- publics.push(repo_name)
276
+ publics << repo_name
277
277
  end
278
278
 
279
- mirrors.push(repo_name) unless r[:mirror_url].nil?
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.0
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-19 00:00:00.000000000 Z
11
+ date: 2015-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit