gitlang 0.1.2 → 0.1.3
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/Gemfile.lock +1 -1
- data/README.md +4 -0
- data/lib/gitlang/github_stats.rb +2 -0
- data/lib/gitlang/version.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: e1497f01ff3645f59a4208fc58cb6b19bba87b03
|
|
4
|
+
data.tar.gz: 865448b526481f236026d59311b28f5bc8bd55b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 942b72623ef66aa4aa3a97594bdd7cf98ea03fda12e4452e1a5d8bb5fd0970c05682e26219baf69674963bc059de5d6b3d5eb8f773c5ed68e52f7cbc16380184
|
|
7
|
+
data.tar.gz: e227995072622bb695b0ad8d034340b15184dc03cdfd2c86ee2f3b31d35d3faf67622949242f51b04f00e56caa3636058fca4c691d02c003a378821ba7a856cb
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -51,6 +51,10 @@ This gem can be used in conjuction with the redirection operators. For example,
|
|
|
51
51
|
gitlang relative_usage_per_language [organization_name] > [file_name]
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
+
## Supported Ruby versions
|
|
55
|
+
|
|
56
|
+
This gem is tested against **Ruby 2.3**.
|
|
57
|
+
|
|
54
58
|
## License
|
|
55
59
|
|
|
56
60
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/gitlang/github_stats.rb
CHANGED
|
@@ -29,6 +29,8 @@ module Gitlang
|
|
|
29
29
|
(BigDecimal.new(usage) / total * 100)
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
+
return results_pre_lare if results_pre_lare.empty?
|
|
33
|
+
|
|
32
34
|
# Largest remainder method is used in order to avoid cases where the sum
|
|
33
35
|
# of the relative usage is over or under 100%.
|
|
34
36
|
# More info at https://en.wikipedia.org/wiki/Largest_remainder_method.
|
data/lib/gitlang/version.rb
CHANGED