opening_hours_converter 1.12.0 → 1.12.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
  SHA256:
3
- metadata.gz: e8c4565d4b2ec3935fb6ca2b3e79375d9bf3a673b10227b4555bfea65e1b6af8
4
- data.tar.gz: 3b783952f44dfe2eebb2af35f395d9882c56e88e95286ce7f06b8622a9c48e00
3
+ metadata.gz: fb58c53c7f7e5cace1d690d6e9b6dff3c643722eb58b94490257065ebf8be23f
4
+ data.tar.gz: 531b6159a4cbb4a560b40c3a50d32874eb871f85503137ee272690ddcdf0fb34
5
5
  SHA512:
6
- metadata.gz: b3f1610f8e8ce1d8ec8aad0fb2d6c6cf55262b7a12711f3fe6eed54272f7c7faf2ae71da24dd7adec516478015884a46edf04c0ee174d8739e25106cae88b6da
7
- data.tar.gz: 63e8f01a0f42038315aef4054bcc9060def0b3cb98f269f40d767ef36abf946d06708e037b7f57217a7ba8c92993498075013e218cb4bc3ea3d2f0837552909b
6
+ metadata.gz: add17a8713d1393894a25f60a894c4e9bba8bf212afe898035d00b69615df01a07f411bee7898378211e4538bc5010fdbcdb22ce2ff9ee83aca4e460fb4268ce
7
+ data.tar.gz: b016a19b72f27ee3cc8eb1e29d1fd83e08efbd190c52ef8c91927544481ae32d220fd24cddba2d2cff75652b0c4af50318731c04c8a61976f054339e4fb6c00f
@@ -256,6 +256,7 @@ module OpeningHoursConverter
256
256
  end
257
257
  end
258
258
  elsif !wide_interval.start[:month].nil?
259
+ years[year] ||= Array.new(OSM_MONTHS.length) { |i| Array.new(MONTH_END_DAY[i]) { false } }
259
260
  if wide_interval.end.nil? || wide_interval.end[:month].nil? || wide_interval.start[:month] == wide_interval.end[:month]
260
261
  years[year][wide_interval.start[:month]-1].each_with_index do |month, i|
261
262
  years[year][wide_interval.start[:month]-1][i] = true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opening_hours_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ziserman Martin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-23 00:00:00.000000000 Z
11
+ date: 2019-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json