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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85efd3ef7382a78839410709a66d068aa9d13de94b3da28994c8afd42dfb03c1
4
- data.tar.gz: a7bbcb3ded14ef503a048724a452917b119150146c07fb5885798d69f2212a61
3
+ metadata.gz: f9408402f2e39213c3163ba8c25eb7f8526cb1045b109c71a747da608da3ca8d
4
+ data.tar.gz: d1db1cc388f11eec686bed5927600f55630b6540cc894baf51786daf80a2d5b6
5
5
  SHA512:
6
- metadata.gz: 10e07635dbe3eeccc3773de65c0400fc907fd28f9bf5c802bbb07b67c2cef5316009705711409f051c760286d40b08691bf3f9431f15922735606037a599ea12
7
- data.tar.gz: 2b57b802d0ef16fecb194e4a25ad181cb98eed71b9f46b5a958a1c8f3014b496afd2a7d9cd16b9994763a663104b519443996aa6cc186630dc6d23108f768f6c
6
+ metadata.gz: 71c1d29dcdcad8bdd249b7b40086eaca9b9e53e49126485088a28125f0541f1de7ceebd1ccdda70b8a6502275c4a93cf97e4d284750fcbf89b3077f444f2606e
7
+ data.tar.gz: 628327cc991fc1c00bed03a4183fdd1f057188747a4e052649b8d9fd5ca21b7845099d4ed7860d08bdb83021b97cc1e4f1b5354117f0f18990cf49a5e8cc398a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 4.0.1 / 2023-07-18
2
+
3
+ * [BUGFIX] Sort datapoints when creating Data object
4
+
1
5
  # 4.0.0 / 2023-07-18
2
6
 
3
7
  * [FEATURE] Support updated table element now in use on github.com. Thanks @shih91!
@@ -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]
@@ -3,5 +3,5 @@
3
3
  ##
4
4
  # Define the version
5
5
  module GithubStats
6
- VERSION = '4.0.0'
6
+ VERSION = '4.0.1'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: githubstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker