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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f7598eeb7cb6738f017cf1a785eb5afddcc90717575a5a489d3c4d797579988
4
- data.tar.gz: 7ec00410febbdb1faa8c801dc23d1ab826a5d36035a449bfcd5df96475391ae0
3
+ metadata.gz: e29118b6122f0fc757389c3ce244c801abea8f3122d335ab6263f6bce8666d3c
4
+ data.tar.gz: 6aae2c87f2b7a50c9bb7545d3f2d25f923bd367519c175abb56bcb8a88e19656
5
5
  SHA512:
6
- metadata.gz: 39efeed6fd42120adb95e32505c5654bc8ddea7471d612aea2f1051856b20dcdda5bced0678374c09f9c9f9c922dab8c3b755719fba6610d84b8bb1c40c7c9c1
7
- data.tar.gz: b5d8e74cb8320c6d97a6690a8969bc5fafebef332c14885712321c37a49265c676eec278c9727497df0695fad7f0b52afda0e1118cf8415166c27dd796864661
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 = "du #{@start[:day]} #{IRL_MONTHS[@start[:month] - 1]} #{@start[:year]} au #{@end[:day]} #{IRL_MONTHS[@end[:month] - 1]} #{@start[:year]}"
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 = "du #{@start[:day]} #{IRL_MONTHS[@start[:month] - 1]} #{@start[:year]} au #{@end[:day]} #{IRL_MONTHS[@end[:month] - 1]} #{@end[:year]}"
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 = "du #{@start[:day]} #{IRL_MONTHS[@start[:month] - 1]} au #{@end[:day]} #{IRL_MONTHS[@end[:month] - 1]}"
60
+ result = "Du #{@start[:day]} #{IRL_MONTHS[@start[:month] - 1]} au #{@end[:day]} #{IRL_MONTHS[@end[:month] - 1]}"
61
61
  else
62
- result = "le #{@start[:day]} #{IRL_MONTHS[@start[:month] - 1]}"
62
+ result = "Le #{@start[:day]} #{IRL_MONTHS[@start[:month] - 1]}"
63
63
  end
64
64
  else
65
- result = "le #{@start[:day]} #{IRL_MONTHS[@start[:month] - 1]} #{@start[:year] || ''}"
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 = "de #{IRL_MONTHS[@start[:month] - 1]} #{@start[:year]} à #{IRL_MONTHS[@end[:month] - 1]} #{@start[:year]}"
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 = "de #{IRL_MONTHS[@start[:month] - 1]} #{@start[:year]} à #{IRL_MONTHS[@end[:month] - 1]} #{@end[:year]}"
72
+ result = "De #{IRL_MONTHS[@start[:month] - 1]} #{@start[:year]} à #{IRL_MONTHS[@end[:month] - 1]} #{@end[:year]}"
73
73
  else
74
- result = "de #{IRL_MONTHS[@start[:month] - 1]} à #{IRL_MONTHS[@end[:month] - 1]}"
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
- 'jours fériés'
88
+ 'Jours fériés'
89
89
  else
90
- "les jours fériés de #{@start[:year]} à #{@end[:year]}"
90
+ "Les jours fériés de #{@start[:year]} à #{@end[:year]}"
91
91
  end
92
92
  elsif !@start[:year]
93
- 'jours fériés'
93
+ 'Jours fériés'
94
94
  else
95
- "les jours fériés de #{@start[:year]}"
95
+ "Les jours fériés de #{@start[:year]}"
96
96
  end
97
97
  when 'always'
98
- result = 'tout le temps'
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.12
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-06-25 00:00:00.000000000 Z
11
+ date: 2020-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json