month_date 0.0.2.1 → 0.0.2.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: d00de48aa2f3263ac3231c89c46e372fa6fba058
4
- data.tar.gz: bfacb9543b101bef29ddea8fdb2399e29aaf550a
3
+ metadata.gz: b9f25631633895fc8311027eebbea530498e41e7
4
+ data.tar.gz: 1957a9bf38a9c5b1f0d2eee8497e1bc5f221e8f7
5
5
  SHA512:
6
- metadata.gz: 846e47746d4af4d292a20d343440d737bdea024495001b7f2e906d4e683087c162faa804bc9787d9380901f61b4e7b30a8bd42451cae8469faeb4b51ec659d7d
7
- data.tar.gz: 887744afae4bbff231ff3c77b5536563959ea8f5522037cc126193980812373d2dafff8ffbb02247eb9e59adbab77dd58c25c3585a80e0b6d46a2cf6233d76f3
6
+ metadata.gz: c4ac34acf487552a5f358053e818073018a75a817139182ff05bdef8a1ed41dc26c454cfcab061ba3b5ac21e0e3fe6f70833fcfa8285446c144286e8b9335435
7
+ data.tar.gz: 4a9b9cc6d0f3d4a117292653341bdd5ba0c4ba5c938f3ee5e69898ab7806e66d5ff5b3f3aa259bd469201d1e7d6d5f0214a8159c3502c2b1764f5991da70f9fd
@@ -1,3 +1,3 @@
1
1
  module MonthDate
2
- VERSION = "0.0.2.1"
2
+ VERSION = "0.0.2.2"
3
3
  end
data/lib/month_date.rb CHANGED
@@ -22,7 +22,7 @@ module MonthDate
22
22
  def MonthDate.date_in_month(year, month)
23
23
  days = self.days_in_month(year, month)
24
24
  ary = []
25
- days.upto(1) do |day|
25
+ 1.upto(days) do |day|
26
26
  date = Date.new(year, month, day)
27
27
  ary << date.strftime("%Y%m%d")
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: month_date
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.1
4
+ version: 0.0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ctxhou