opening_hours_converter 1.3.0 → 1.3.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: 4642911e8df98a01cfc414042dce0cc11e8c8908
4
- data.tar.gz: 1b5ba34eba12a1a9fc8bcd9d9ab4cb4874898b01
3
+ metadata.gz: 702767227bb2f956ceddf4f0ca6c99352c6e1fea
4
+ data.tar.gz: fa9efab32584b5cea03ccf9ffb94c143eefb91db
5
5
  SHA512:
6
- metadata.gz: 711db0af55afe9cab83cd7feb520a89c053887fd42e8cf1600204bdfb8b0d25c8c96af9dec8a4c7462bef5d0605677b555d0be9629d303bf7d7158fe622209a5
7
- data.tar.gz: 8be38120b5040d1f285a31a1f35f17c9a7133d0314b82aedae2a68cf03f3ce4f51739ed8fb946f0b2be8622b28227bad169baba2782f3387be2c3b76b266a063
6
+ metadata.gz: 9beee7a6b16b7427d968435b79cba79b420802e17419cd3265b97860ccfe18d726816b5feb969e9f8e7bb20e5c2349315490ae69f32966b83ae593ee49494429
7
+ data.tar.gz: e2faf52f40999e498772067bd5893a6986a2e90f9250b73eb65c0fd7ababbb7e93b9d4a51b8898cdb9b6a2c598dc84981e80cbe8e58eddc80077854124a6c345
@@ -21,7 +21,7 @@ module OpeningHoursConverter
21
21
  result = ""
22
22
  wd = @weekdays.concat(@weekdays_over).sort.uniq
23
23
 
24
- if wd.length > 0 && wd[0] == PH_WEEKDAY
24
+ if wd.length > 0 && wd[0] == -2
25
25
  result = "PH"
26
26
  wd.shift
27
27
  end
@@ -111,7 +111,7 @@ module OpeningHoursConverter
111
111
  end
112
112
 
113
113
  def add_ph_weekday
114
- add_weekday(PH_WEEKDAY)
114
+ add_weekday(-2)
115
115
  end
116
116
 
117
117
  def add_overwritten_weekday(weekday)
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.3.0
4
+ version: 1.3.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: 2017-10-17 00:00:00.000000000 Z
11
+ date: 2017-10-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Datetime range to openinghours, openinghours to datetime range. Very
14
14
  strongly inspired by yohours.