opening_hours_converter 1.6.4 → 1.6.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: cdd3f478ea3e920463e625723f6a3667b4fc6fa2
4
- data.tar.gz: 6fa6600d8c4624d3323ecbc6abb470b51695c70f
3
+ metadata.gz: 7620943b112f4e05e8e88a5aba3e54ad9e82cf92
4
+ data.tar.gz: 909f4a789f28ae86c17cd09abbdcf2b66b39dac2
5
5
  SHA512:
6
- metadata.gz: 1de4f1177d0cbb6597c43406903e4d90ab6d88d7346f6193a205cde2c05c31f601321b52d0de8c97dce8d25cc6c923ce625de24325435394de262f9d677b1bdc
7
- data.tar.gz: d2319994203f7b9c8ca1eeeb10c813ba87329eb067347e40ff80551a8bc83771b29fe9fe7ae310296f264cff0e9866e72904b709aeebded4bc21e8614b796d59
6
+ metadata.gz: e279574b1c77844b7d3cc20da4141bb14c5a4e34d61d2b78bd7de239bed0e7695a9a5353c33a9b3ac3e8882cfdec2b6172eaea62b0e34a3b34db539256741da2
7
+ data.tar.gz: d3f5e5e8f9313cce07f64d822415eb21db34806ec900c2b448b25f147d96661a0b2cd53592727add1267e8158f871ddc2f24d4311aa9f8b8b616358744af47bd
@@ -1,5 +1,6 @@
1
1
  require 'opening_hours_converter/constants'
2
2
  require 'json'
3
+ require 'pry-byebug'
3
4
 
4
5
  module OpeningHoursConverter
5
6
  class OpeningHoursParser
@@ -211,7 +212,7 @@ module OpeningHoursConverter
211
212
 
212
213
  general = -1
213
214
  for res_dr_id in 0...result.length
214
- if result[res_dr_id].is_general_for?(OpeningHoursConverter::DateRange.new(dr))
215
+ if result[res_dr_id].is_general_for?(dr_obj)
215
216
  general = res_dr_id
216
217
  end
217
218
  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.6.4
4
+ version: 1.6.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-11-30 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json