opening_hours_converter 1.4.4 → 1.4.5

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: 51910f5b1ad844e6dd0389e0543f5fcec9de91a5
4
- data.tar.gz: acdac6e0de9c5ea000f48f9ea8d18675c724d00f
3
+ metadata.gz: c152985bff2c56142a62a668ee5e10209768ae28
4
+ data.tar.gz: 258d8e96c600d02017b99b821fd6e7b95b1a0892
5
5
  SHA512:
6
- metadata.gz: ecaa948f5f328f760038fb8d604b07972e7787a0378cc29ac2f766591a4da8cf29c1babba14e9075fa412e263ae33fe929c0f109729b0230206ce0b35d2e5920
7
- data.tar.gz: afcd55214ec201a091a5608fcb838d468b5005af049d67638208d8b1c06294235f6b14f9180a236ed9e9666c31924a961cf8b0157f983686d6b1051946b7e56b
6
+ metadata.gz: 79e61d2b66eb38e03a8e5f45e6bd4056f584096095f4cf330b414b836f381859f964f6dbf66b1e49ee103bc8c53b763006fd3d5cb93ff3e709960a507c1fbe6a
7
+ data.tar.gz: d1666cdf52c8a913eee2b4b95d50057bf0739f73c1fd0f3aaeb3d073b1aaa4d30d22afcc96b90fad49894edc80d1e1770df35f318646750f9bfd8116be7002c4
@@ -334,7 +334,11 @@ module OpeningHoursConverter
334
334
 
335
335
  if single_month.length > 1
336
336
  month_to = single_month[1].split(' ')
337
- month_to = { day: month_to[1].to_i, month: OSM_MONTHS.find_index(month_to[0]) + 1 }
337
+ if month_to.length > 1
338
+ month_to = { day: month_to[1].to_i, month: OSM_MONTHS.find_index(month_to[0]) + 1 }
339
+ else
340
+ month_to = { day: month_to[0].to_i, month: month_from[:month] }
341
+ end
338
342
  if month_to[:month] < 1
339
343
  raise ArgumentError, "Invalid month : #{month_to.inspect}"
340
344
  end
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.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ziserman Martin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-31 00:00:00.000000000 Z
11
+ date: 2017-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json