ghuls-lib 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ghuls/lib.rb +1 -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: e8a96f58ec35a0366270e619b780b5a6f91d2241
|
4
|
+
data.tar.gz: d6a1cff3c2a0b2d4eaa39d9ca5fb2371c51547bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92e78a9631836e3c09e8461c4f912305017a9396341090173653bd53871d6052058d636015c3e09895598443bdca8b623f6b5841e82de86edf265af9a6246bc1
|
7
|
+
data.tar.gz: b07829628c275d1c6daa39643c68fb92c4bf7346fc68deae45c96cd9b96a2efdb24a34634ce97cc0ead389408c57f4e36a4394596adfbe9b79011ba16aa53a7a
|
data/lib/ghuls/lib.rb
CHANGED
@@ -207,7 +207,7 @@ module GHULS
|
|
207
207
|
langs.each { |_, b| total += b }
|
208
208
|
lang_percents = {}
|
209
209
|
langs.each do |l, b|
|
210
|
-
percent = calculate_percent(b, total.to_f)
|
210
|
+
percent = self.class.calculate_percent(b, total.to_f)
|
211
211
|
lang_percents[l] = percent.round(2)
|
212
212
|
end
|
213
213
|
lang_percents
|