opening_hours_converter 1.5.0 → 1.5.1

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: ac95f6b36e6b0c6062f5ef420f45dd8ad6ff34de
4
- data.tar.gz: b059dce0398318ca355cdc9a183f10cc65255ed7
3
+ metadata.gz: d480aad01bd570933cf1863d32b4d3f9b4ced580
4
+ data.tar.gz: e9bd662f51959bec4487fbe965319ce35adec3b2
5
5
  SHA512:
6
- metadata.gz: c10976b2002f9a3fe7a20db89bec0c4cb992538dede16feb2cbd56f43634a1339d8fc116cb859dca0e8a615d084fd211c5f6c773b4cc6fa6605edb34e0dbaf6e
7
- data.tar.gz: fdacc54c5108c114a086b4c0f69887920ddbcd745d1b8f3c3431953556bc41cf91a53c93bcc7a5b760e3e4cd10af0e9e4d76e8a2371e1562710713fa4b59f279
6
+ metadata.gz: e8ba54372c95bd43926a72a30ce676b64a020557535e1b5cc47bbc5cbcddb6743aa835a728f9cc317856f040f844153e893a27c48fea241d9905a2a43cd93fc6
7
+ data.tar.gz: a5dd981c0319ba802ab48ea2832cbfaa7968f68d91d4df0450c4731024f9b561bbc95d981c41851d4a590455ad6cc785668458dd467abfadef6fcbae9897d141
@@ -104,7 +104,6 @@ module OpeningHoursConverter
104
104
  end
105
105
  end
106
106
  end
107
-
108
107
  result = ""
109
108
 
110
109
  if rules.length == 0
@@ -44,9 +44,11 @@ module OpeningHoursConverter
44
44
  day_start = day_index
45
45
  minute_start = minute_index
46
46
  end
47
- elsif day_index == DAYS_MAX && minute_index == day.length - 1
48
- if day_start >= 0 && minute
47
+ elsif minute && day_index == DAYS_MAX && minute_index == day.length - 1
48
+ if day_start >= 0
49
49
  intervals << OpeningHoursConverter::Interval.new(day_start, minute_start, day_index, minute_index)
50
+ else
51
+ intervals << OpeningHoursConverter::Interval.new(6, minute_index, 6, minute_index)
50
52
  end
51
53
  else
52
54
  if minute && day_start < 0
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.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ziserman Martin