monthly 0.1.2 → 0.1.3

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: 728941b650feeb4c08c32881509a7083e8d9c703
4
- data.tar.gz: 8d9f3a16237a8fba1fd777db65ab14e7dce6780b
3
+ metadata.gz: d03e445111b01d670bc4ec56620614d022de60f8
4
+ data.tar.gz: a596b6f66465b6cb04fcff834d39b5cb895b1b74
5
5
  SHA512:
6
- metadata.gz: 47c69462717f342e96a2d3788a6f4c2a643466b658cb18f89da01c03e2a0c569cd68b62360eb5ae56f00ef827cccd1ee5760dca728eefb7bdbe54dae0d3582fb
7
- data.tar.gz: 28aa96290d88cbe932695381aea1d3eed303fda271cf90172e6351bcfc5281e6b0fdc13ed8a093f666be78e7dbe209d572bac299d04ac64f99490385e664921a
6
+ metadata.gz: 2b01016b641132d42cddad48aa96d257625c6bcdc3a56bcd755484f763445f78c35b8be6f85c6536bd93d2cbbb5bc313309bfdc9c9e9b8f4e9f64b2179387a66
7
+ data.tar.gz: 3adc760f0047ed560b4330685288cefa09a05cf9155022e483ea72e06bf83c7c11b10f9e7c3a68b185405427668c4c32a3bf97cbba06abcecdfed932667e7ce1
@@ -35,7 +35,8 @@ module Monthly
35
35
  end
36
36
 
37
37
  def last_day_of_month(date)
38
- Date.new(date.year, date.month + 1, 1).prev_day.day
38
+ date_next_month = date.next_month
39
+ Date.new(date_next_month.year, date_next_month.month, 1).prev_day.day
39
40
  end
40
41
 
41
42
  end
@@ -1,3 +1,3 @@
1
1
  module Monthly
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Søren Torp Petersen