monthly 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2453c04f9094e31d3c8501aaa2d7e4d96d3b825
4
- data.tar.gz: 7e5cf1f07f6053db57e83137aa76bcbf95043f57
3
+ metadata.gz: 728941b650feeb4c08c32881509a7083e8d9c703
4
+ data.tar.gz: 8d9f3a16237a8fba1fd777db65ab14e7dce6780b
5
5
  SHA512:
6
- metadata.gz: 849ca30e014feb96378384af6a0725ef0a88c2d3bfd5ca8a553bda404083a3567e9a4140ae3fe0b33dbb75c5609e1fd160c669b8bba0361bbe21c48f205ca677
7
- data.tar.gz: 72420ba9708f7b1f004a388aa58958627a8f6c0cad3c5e18dca6d4a77436f34c0e20b8e91bd8be484271dde480964784a08cd9f32fb7f10fb23bbb212d535f32
6
+ metadata.gz: 47c69462717f342e96a2d3788a6f4c2a643466b658cb18f89da01c03e2a0c569cd68b62360eb5ae56f00ef827cccd1ee5760dca728eefb7bdbe54dae0d3582fb
7
+ data.tar.gz: 28aa96290d88cbe932695381aea1d3eed303fda271cf90172e6351bcfc5281e6b0fdc13ed8a093f666be78e7dbe209d572bac299d04ac64f99490385e664921a
@@ -59,7 +59,8 @@ module Monthly
59
59
  end
60
60
 
61
61
  def last_day_of_month(date)
62
- Date.new(date.year, date.month + 1, 1).prev_day
62
+ date_next_month = date.next_month
63
+ Date.new(date_next_month.year, date_next_month.month, 1).prev_day
63
64
  end
64
65
 
65
66
  end
@@ -1,3 +1,3 @@
1
1
  module Monthly
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monthly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Søren Torp Petersen