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 +4 -4
- data/lib/jpcalendar/generator.rb +1 -1
- data/lib/jpcalendar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16038536ab2393fe6524006437ca115a1b7e195e
|
|
4
|
+
data.tar.gz: fd5d42bf7bb338b580d4eba0d8c231064b78a4da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f9198553dd77d25c8fac0ade7635b9616f90cda7cc946484168875446189317c9a525950f45d67f43737dcad98403404320f74b3d56b15867f2537a23846b97
|
|
7
|
+
data.tar.gz: 9e6309625b9679c3da84ed6baf745b9cb0d6fb9bbbc6c09d893085171d76c2fc9ad8e0d03c19e78a8bdfadbc549b4451e6d98487cbd23adc57467d3aa39a7bc4
|
data/lib/jpcalendar/generator.rb
CHANGED
|
@@ -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"}
|
data/lib/jpcalendar/version.rb
CHANGED
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.
|
|
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:
|
|
11
|
+
date: 2016-01-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: holiday_jp
|