statisfy 0.0.9 → 0.0.10

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/statisfy/monthly.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a41b2e365d8635fabfc742f25def7ac567eeff9e73f7e133f8b935fbd549d5fd
4
- data.tar.gz: 7ab00c9602030012aa8db20a021a0a868553b4824e667a6eee890e9f073f98cf
3
+ metadata.gz: fefc77edb493e9b299329483e6eee64b163557b2320f03225a492dd60731860e
4
+ data.tar.gz: 15efdf6901e8c514011b538da459b2dc2ebd37bcad6e85ec5d5b6d9482116974
5
5
  SHA512:
6
- metadata.gz: bf6f4c3038deea64ac641547e441a277e9c7d82bed9c4c89aef6cdb6209ce91308ac2603a1c13ce8a73767b8b72241fb11b88657968c5f41bef6636a352a9a43
7
- data.tar.gz: fd2ca239cd106501448b2615a26faebd67c45d3b1160ac52eaeef202edcf5ce3efa4d8fff6eb691b267803ea82eefbda5ecd56441c207cef4770f9953dbaabeb
6
+ metadata.gz: 611b63cc3aed721b7f2410af146af9d6a410c8672fa55d9a46dae4231ab8a26d067a7ebb004202611b82d2d35aeb17db0595dcf47c1712bc7ff56f084adbc416
7
+ data.tar.gz: b9e84f2a477d91ae022f41a0b8f3f6d604be81654dd83900076d72e6d26c341ea4189b2fe65225cccd3eb1ee389f90095e2ab44cc6f4142ee613c50c309661b8
@@ -22,7 +22,7 @@ module Statisfy
22
22
 
23
23
  if start_at.present? || scope&.created_at.present?
24
24
  start_at ||= scope.created_at
25
- n_months = (Time.zone.today.year + Time.zone.today.month) - (start_at.year + start_at.month)
25
+ n_months = (Time.zone.today.year * 12 + Time.zone.today.month) - (start_at.year * 12 + start_at.month)
26
26
  end
27
27
 
28
28
  relevant_months = (0..n_months).map do |i|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statisfy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michaël Villeneuve