jpcalendar 1.1.1 → 1.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: 2116dd85be3082b0a53455b3916dd0f908675e6e
4
- data.tar.gz: 96bdecfdd709f95a38fabd59f5293e798b4d7eb9
3
+ metadata.gz: 16038536ab2393fe6524006437ca115a1b7e195e
4
+ data.tar.gz: fd5d42bf7bb338b580d4eba0d8c231064b78a4da
5
5
  SHA512:
6
- metadata.gz: 9626a11b176db80531b461b5f59e660d064b8c88bc2da68709901118eb9d5d7fc5dc7920129e30aa6370b0342c7895ff3cecdf112b2eb31712b04c26f5f7c55d
7
- data.tar.gz: 83cba8f48247f44484609b8028483a5441152fc35b07f9a8d4a738b7f03fae4874bb4ca32c76e5e247335badbd31809a24972cf485dabe4378569c0e176d1753
6
+ metadata.gz: 7f9198553dd77d25c8fac0ade7635b9616f90cda7cc946484168875446189317c9a525950f45d67f43737dcad98403404320f74b3d56b15867f2537a23846b97
7
+ data.tar.gz: 9e6309625b9679c3da84ed6baf745b9cb0d6fb9bbbc6c09d893085171d76c2fc9ad8e0d03c19e78a8bdfadbc549b4451e6d98487cbd23adc57467d3aa39a7bc4
@@ -120,7 +120,7 @@ module Jpcalendar
120
120
  # 第1週の日付のないところに前月の日付をいれていく
121
121
  blank_date = date_feed[1].take_while{|first_week_day| first_week_day.date == "" }
122
122
  blank_date.size.times do |idx|
123
- prev_month_day = start_date - (idx + 1)
123
+ prev_month_day = start_date - (blank_date.size - idx + 1)
124
124
  date_feed[1][idx].date = prev_month_day
125
125
  date_feed[1][idx].text = date_format(prev_month_day.day, options)
126
126
  date_feed[1][idx].attributes = {:class => "other-month-day prev-month-day"}
@@ -1,3 +1,3 @@
1
1
  module Jpcalendar
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jpcalendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshitsugu fujii
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-17 00:00:00.000000000 Z
11
+ date: 2016-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: holiday_jp