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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9526514c47f5ee6e74ab4ed239a579b064477f69
4
- data.tar.gz: 39604a240b8d8a33a195a9d0d54004de679fe725
3
+ metadata.gz: aeabae6421a6cb8d6513c9e8239cfa72034de08a
4
+ data.tar.gz: 0a1afa5c7332e3853c318b53f1fce40f28270511
5
5
  SHA512:
6
- metadata.gz: d2e8abcfbc2bc84431fbded07842d591264382303d14c66f46e716ecc632c7a61b4108996cfee8f56f8ceda34105195afb6b669e38ae0339d29f31cdfe474260
7
- data.tar.gz: e18f0e35c987c073373ecdcbf194bfd15f53613fd617b03c9f52cb3a262ee47a0d53ea9aaeddb10e553733655ed8b14b4444854bc21f8ad6cdda48d3a2fd4880
6
+ metadata.gz: cfb8b96d4858fb49c3ea8f1338e9d6c7b39d14e9a034897da3e30c3889d041c4fdfb0950c1cb40a3632ac0be48fdf5f55d91f615f8c762c8f7136fa2b8536979
7
+ data.tar.gz: 9c3fa8d5789143af8c30d3bbbacd8b9fdca7576a1b5c7b96267c0e8bb07fec4f7dce77fda1296ea90912a2a2586832bc0825a7b28eeb98b67dbd7646eaf343c4
data/.travis.yml CHANGED
@@ -4,6 +4,11 @@ rvm:
4
4
  - 2.1.0
5
5
  - 2.0.0
6
6
  - 1.9.3
7
+ env:
8
+ - WITH_RUGGED=no
9
+ - WITH_RUGGED=yes
10
+ before_script:
11
+ - '[[ "$WITH_RUGGED" == "no" ]] || gem install rugged'
7
12
  notifications:
8
13
  email: false
9
14
  irc:
data/githubstats.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'githubstats'
3
- s.version = '0.2.8'
3
+ s.version = '0.2.9'
4
4
  s.date = Time.now.strftime("%Y-%m-%d")
5
5
 
6
6
  s.summary = 'Present Github contributions stats in a consumable format'
@@ -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
- range = (0..scores.reject { |x| outliers.take(3).include? x }.max).to_a
130
- mids = (1..3).map { |q| range[(q * range.size / 4) - 1] }
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.8
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-14 00:00:00.000000000 Z
11
+ date: 2014-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb