githubstats 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/githubstats/data.rb +1 -1
- data/lib/githubstats/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9408402f2e39213c3163ba8c25eb7f8526cb1045b109c71a747da608da3ca8d
|
4
|
+
data.tar.gz: d1db1cc388f11eec686bed5927600f55630b6540cc894baf51786daf80a2d5b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71c1d29dcdcad8bdd249b7b40086eaca9b9e53e49126485088a28125f0541f1de7ceebd1ccdda70b8a6502275c4a93cf97e4d284750fcbf89b3077f444f2606e
|
7
|
+
data.tar.gz: 628327cc991fc1c00bed03a4183fdd1f057188747a4e052649b8d9fd5ca21b7845099d4ed7860d08bdb83021b97cc1e4f1b5354117f0f18990cf49a5e8cc398a
|
data/CHANGELOG.md
CHANGED
data/lib/githubstats/data.rb
CHANGED
@@ -33,7 +33,7 @@ module GithubStats
|
|
33
33
|
# Create a data object and turn on caching
|
34
34
|
|
35
35
|
def initialize(data)
|
36
|
-
@raw = data.map { |d, s| Datapoint.new(Date.parse(d), s.to_i) }
|
36
|
+
@raw = data.map { |d, s| Datapoint.new(Date.parse(d), s.to_i) }.sort_by(&:date)
|
37
37
|
enable_caching %i[to_h today streaks longest_streak streak max mean
|
38
38
|
std_var quartile_boundaries quartiles start_date
|
39
39
|
end_date]
|
data/lib/githubstats/version.rb
CHANGED