githubstats 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/githubstats.gemspec +1 -1
- data/lib/githubstats/data.rb +6 -2
- 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: aeabae6421a6cb8d6513c9e8239cfa72034de08a
|
4
|
+
data.tar.gz: 0a1afa5c7332e3853c318b53f1fce40f28270511
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfb8b96d4858fb49c3ea8f1338e9d6c7b39d14e9a034897da3e30c3889d041c4fdfb0950c1cb40a3632ac0be48fdf5f55d91f615f8c762c8f7136fa2b8536979
|
7
|
+
data.tar.gz: 9c3fa8d5789143af8c30d3bbbacd8b9fdca7576a1b5c7b96267c0e8bb07fec4f7dce77fda1296ea90912a2a2586832bc0825a7b28eeb98b67dbd7646eaf343c4
|
data/.travis.yml
CHANGED
data/githubstats.gemspec
CHANGED
data/lib/githubstats/data.rb
CHANGED
@@ -126,8 +126,12 @@ module GithubStats
|
|
126
126
|
# The value is the upper bound of the quartile (inclusive)
|
127
127
|
|
128
128
|
def quartile_boundaries
|
129
|
-
|
130
|
-
|
129
|
+
top = scores.reject { |x| outliers.take(3).include? x }.max
|
130
|
+
range = (0..top).to_a
|
131
|
+
mids = (1..3).map do |q|
|
132
|
+
index = q * range.size / 4 - 1
|
133
|
+
range[index]
|
134
|
+
end
|
131
135
|
bounds = (mids + [max.score]).uniq.sort
|
132
136
|
[0] * (5 - bounds.size) + bounds
|
133
137
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: githubstats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curb
|