opening_hours_converter 1.13.12 → 1.13.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opening_hours_converter/wide_interval.rb +13 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e29118b6122f0fc757389c3ce244c801abea8f3122d335ab6263f6bce8666d3c
|
4
|
+
data.tar.gz: 6aae2c87f2b7a50c9bb7545d3f2d25f923bd367519c175abb56bcb8a88e19656
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c7d01fc34eefa92f860a35f5bd6dab8f5916b64fd29aa07cb1b9a472a9b383a18d6c5eb96a2e74c29a1a0e2f593e449ac2852a0f095226dc8cf27715567cbe0
|
7
|
+
data.tar.gz: '09790d8bd019f108e65714b546a62d8c82d706d17289f1a90eb616b1d68e9472c545470d33ca784c3fc6662e4d8337762abeb1a4476bbd38cb0dbd1038e2f1b0'
|
@@ -53,25 +53,25 @@ module OpeningHoursConverter
|
|
53
53
|
when 'day'
|
54
54
|
if !@end.nil?
|
55
55
|
if @start[:year] && !@end[:year] || @start[:year] && @start[:year] == @end[:year]
|
56
|
-
result = "
|
56
|
+
result = "Du #{@start[:day]} #{IRL_MONTHS[@start[:month] - 1]} #{@start[:year]} au #{@end[:day]} #{IRL_MONTHS[@end[:month] - 1]} #{@start[:year]}"
|
57
57
|
elsif @start[:year] && @end[:year] && @start[:year] != @end[:year]
|
58
|
-
result = "
|
58
|
+
result = "Du #{@start[:day]} #{IRL_MONTHS[@start[:month] - 1]} #{@start[:year]} au #{@end[:day]} #{IRL_MONTHS[@end[:month] - 1]} #{@end[:year]}"
|
59
59
|
elsif @start[:month] != @end[:month]
|
60
|
-
result = "
|
60
|
+
result = "Du #{@start[:day]} #{IRL_MONTHS[@start[:month] - 1]} au #{@end[:day]} #{IRL_MONTHS[@end[:month] - 1]}"
|
61
61
|
else
|
62
|
-
result = "
|
62
|
+
result = "Le #{@start[:day]} #{IRL_MONTHS[@start[:month] - 1]}"
|
63
63
|
end
|
64
64
|
else
|
65
|
-
result = "
|
65
|
+
result = "Le #{@start[:day]} #{IRL_MONTHS[@start[:month] - 1]} #{@start[:year] || ''}"
|
66
66
|
end
|
67
67
|
when 'month'
|
68
68
|
if !@end.nil?
|
69
69
|
if @start[:year] && !@end[:year] || @start[:year] && @start[:year] == @end[:year]
|
70
|
-
result = "
|
70
|
+
result = "De #{IRL_MONTHS[@start[:month] - 1]} #{@start[:year]} à #{IRL_MONTHS[@end[:month] - 1]} #{@start[:year]}"
|
71
71
|
elsif @start[:year] && @end[:year] && @start[:year] != @end[:year]
|
72
|
-
result = "
|
72
|
+
result = "De #{IRL_MONTHS[@start[:month] - 1]} #{@start[:year]} à #{IRL_MONTHS[@end[:month] - 1]} #{@end[:year]}"
|
73
73
|
else
|
74
|
-
result = "
|
74
|
+
result = "De #{IRL_MONTHS[@start[:month] - 1]} à #{IRL_MONTHS[@end[:month] - 1]}"
|
75
75
|
end
|
76
76
|
else
|
77
77
|
result = "#{IRL_MONTHS[@start[:month] - 1]}#{@start[:year] ? " #{@start[:year]}" : ''}"
|
@@ -85,17 +85,17 @@ module OpeningHoursConverter
|
|
85
85
|
when 'holiday'
|
86
86
|
result = if !@end.nil?
|
87
87
|
if !@start[:year]
|
88
|
-
'
|
88
|
+
'Jours fériés'
|
89
89
|
else
|
90
|
-
"
|
90
|
+
"Les jours fériés de #{@start[:year]} à #{@end[:year]}"
|
91
91
|
end
|
92
92
|
elsif !@start[:year]
|
93
|
-
'
|
93
|
+
'Jours fériés'
|
94
94
|
else
|
95
|
-
"
|
95
|
+
"Les jours fériés de #{@start[:year]}"
|
96
96
|
end
|
97
97
|
when 'always'
|
98
|
-
result = '
|
98
|
+
result = 'Toute l\'année'
|
99
99
|
end
|
100
100
|
result
|
101
101
|
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.13.
|
4
|
+
version: 1.13.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ziserman Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|