opening_hours_converter 1.7.7 → 1.7.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opening_hours_converter/wide_interval.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30ccf30e0e2768db535e4cfce320bc26ee7da8b6
|
4
|
+
data.tar.gz: c285a00f969c843cef1b39760db0412adb8f2ea5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5007ef773d5052eae15330a08573084c36bda853fe7cf2cd1494a968381873478bf2a7b250626480c30e9425ba5435bdccce66d40c9fa6971c9ba597b20ec9a
|
7
|
+
data.tar.gz: 169357bf5d3af40acbeabc85daae7b93c67d5153459dd8c519dff92b1d25b0affa3a7df07cef997f457b1725876795a8f881ee26555cb16d48db1c81dc8557f4
|
@@ -485,7 +485,7 @@ module OpeningHoursConverter
|
|
485
485
|
if year == in_day.start[:year]
|
486
486
|
for month in in_day.start[:month]..12
|
487
487
|
if month == in_day.start[:month]
|
488
|
-
days_count += MONTH_END_DAY[month - 1] - in_day.start[:day]
|
488
|
+
days_count += MONTH_END_DAY[month - 1] - in_day.start[:day] + 1
|
489
489
|
else
|
490
490
|
days_count += MONTH_END_DAY[month - 1]
|
491
491
|
end
|
@@ -506,13 +506,13 @@ module OpeningHoursConverter
|
|
506
506
|
end
|
507
507
|
else
|
508
508
|
if in_day.start[:month] == in_day.end[:month]
|
509
|
-
days_count += in_day.end[:day] - in_day.start[:day]
|
509
|
+
days_count += in_day.end[:day] - in_day.start[:day] + 1
|
510
510
|
else
|
511
511
|
for month in in_day.start[:month]..in_day.end[:month]
|
512
512
|
if month == in_day.end[:month]
|
513
513
|
days_count += in_day.end[:day]
|
514
514
|
elsif month == in_day.start[:month]
|
515
|
-
days_count += MONTH_END_DAY[month - 1] - in_day.start[:day]
|
515
|
+
days_count += MONTH_END_DAY[month - 1] - in_day.start[:day] + 1
|
516
516
|
else
|
517
517
|
days_count += MONTH_END_DAY[month - 1]
|
518
518
|
end
|
@@ -521,13 +521,13 @@ module OpeningHoursConverter
|
|
521
521
|
end
|
522
522
|
else
|
523
523
|
if in_day.start[:month] == in_day.end[:month]
|
524
|
-
days_count += in_day.end[:day] - in_day.start[:day]
|
524
|
+
days_count += in_day.end[:day] - in_day.start[:day] + 1
|
525
525
|
else
|
526
526
|
for month in in_day.start[:month]..in_day.end[:month]
|
527
527
|
if month == in_day.end[:month]
|
528
528
|
days_count += in_day.end[:day]
|
529
529
|
elsif month == in_day.start[:month]
|
530
|
-
days_count += MONTH_END_DAY[month - 1] - in_day.start[:day]
|
530
|
+
days_count += MONTH_END_DAY[month - 1] - in_day.start[:day] + 1
|
531
531
|
else
|
532
532
|
days_count += MONTH_END_DAY[month - 1]
|
533
533
|
end
|