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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76ab6fe0b066c5e83f2c975a040a7a722a61c25c
4
- data.tar.gz: 9192212170e365daca8e7b5a0117b651588518e4
3
+ metadata.gz: 30ccf30e0e2768db535e4cfce320bc26ee7da8b6
4
+ data.tar.gz: c285a00f969c843cef1b39760db0412adb8f2ea5
5
5
  SHA512:
6
- metadata.gz: dc6b889429594820c05e965c656180bd2cce70f7410e0b4000ad7c552301b88baaf25d4fe83ae171ad11d44905745917b1219e6a2ece02ba3c4892436967a4d1
7
- data.tar.gz: c97856e124f28cc246ae3068bd40cc42a511548a9e2b6905771ef37791f1036da7ebe02892291622de595f8d3514f38eefaa7e120e78656d42e1e47e3fb330d6
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opening_hours_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.7
4
+ version: 1.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ziserman Martin