colissimo_zone 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3ea1dd78cd04b265c0bac90255922964d2681907
4
+ data.tar.gz: 92ce8399da4c70c502b0316851596dafb8ffffe3
5
+ SHA512:
6
+ metadata.gz: 88dc7f79b7a2de5127199f8d3cbadd1217e410ee8497f3e260566c25d7340505fb0a875e315e1f613eea4f27b311fc731704d94e5611c041f7a739568819724d
7
+ data.tar.gz: 3d0c8fd5bf9cea49e737f8f79c00ad64fdea123abafe9c27b35701f47ffe53ec7b7ea54f2870e6a663b17dbaec320517aeb09788a91cd8cd4a9864a1e6ea8585
data/Rakefile CHANGED
@@ -9,20 +9,18 @@ task :update do
9
9
  require 'nokogiri'
10
10
  require 'yaml'
11
11
  require 'bigdecimal'
12
-
12
+
13
13
  data = []
14
-
14
+
15
15
  zone_prices = {
16
- BigDecimal("12.70") => "1",
17
- BigDecimal("15.20") => "2",
16
+ BigDecimal("13.85") => "1",
17
+ BigDecimal("16.55") => "2",
18
18
  }
19
-
19
+
20
20
  browser = Watir::Browser.new
21
- browser.goto 'http://www.colissimo.fr/'
22
- browser.link(:text => "Envoyer un colis").click
23
- browser.link(:text => "Colissimo Outre-mer").click
24
- browser.link(:text => "Calculer le tarif").click
25
-
21
+ browser.driver.manage.timeouts.implicit_wait = 60
22
+ browser.goto 'http://www.colissimo.fr/portail_colissimo/ficheProduitAction.do?f=FR-6'
23
+
26
24
  country_select = browser.select_list(:name => 'paysDestinationFicheProduit')
27
25
  Watir::Wait.until { country_select.options.size > 0 }
28
26
  doc = Nokogiri::HTML(country_select.html)
@@ -32,7 +30,7 @@ task :update do
32
30
 
33
31
  countries.each do |code, name|
34
32
  country_select.select name
35
-
33
+
36
34
  solution_select = browser.select_list(:name => 'solutionAffranchissement')
37
35
  solution_select.when_present.select "Guichet"
38
36
  browser.text_field(:name => 'poids').when_present.set '1'
@@ -47,13 +45,14 @@ task :update do
47
45
  standard_available = false
48
46
  end
49
47
  browser.select_list(:name => 'natureEnvoi').select select_option
50
- browser.image(:src => "img/misc/boutonCalculTarif.gif").when_present.click
48
+ sleep 1
49
+ browser.image(:src => "http://1.1.1.3/bmi/www.colissimo.fr/portail_colissimo/img/misc/boutonCalculTarif.gif").when_present.click
51
50
  price_text = browser.p(:class => "price").when_present.text
52
51
  price, = price_text.scan(/(\d+\.\d{2})/).first
53
52
  if price
54
53
  price = BigDecimal(price) - price_diff
55
54
  zone = zone_prices[price]
56
- puts "Zone not found for price #{price.to_s} on #{name}" unless zone
55
+ puts "Zone not found for price #{price.to_s("F")} on #{name}" unless zone
57
56
  else
58
57
  puts "No price on #{name}"
59
58
  zone = nil
@@ -68,18 +67,12 @@ task :update do
68
67
  data << country_data
69
68
  end
70
69
 
71
-
72
-
73
70
  zone_prices = {
74
- BigDecimal("16.15") => "A",
75
- BigDecimal("19.80") => "B",
76
- BigDecimal("23.20") => "C",
77
- BigDecimal("26.40") => "D",
71
+ BigDecimal("14.85") => "A",
72
+ BigDecimal("19.35") => "B",
73
+ BigDecimal("26.30") => "C",
78
74
  }
79
- browser.goto 'http://www.colissimo.fr/'
80
- browser.link(:text => "Envoyer un colis").click
81
- browser.link(:text => "Colissimo International").click
82
- browser.link(:text => "Calculer le tarif").click
75
+ browser.goto 'http://www.colissimo.fr/portail_colissimo/ficheProduitAction.do?f=FR-9'
83
76
  solution_select = browser.select_list(:name => 'solutionAffranchissement')
84
77
  solution_select.select "Guichet"
85
78
  country_select = browser.select_list(:name => 'paysDestination')
@@ -88,7 +81,7 @@ task :update do
88
81
  options = doc.css("option")
89
82
  options.shift
90
83
  countries = options.map { |option| [option["value"], option.text] }
91
-
84
+
92
85
  countries.each do |code, name|
93
86
  country_select.select name
94
87
  browser.text_field(:name => 'poids').when_present.set '1'
@@ -102,15 +95,16 @@ task :update do
102
95
  price_diff = 6
103
96
  standard_available = false
104
97
  end
105
-
98
+
106
99
  browser.select_list(:name => 'natureEnvoi').select select_option
107
- browser.image(:src => "img/misc/boutonCalculTarif.gif").when_present.click
100
+ sleep 1
101
+ browser.image(:src => "http://1.1.1.3/bmi/www.colissimo.fr/portail_colissimo/img/misc/boutonCalculTarif.gif").when_present.click
108
102
  price_text = browser.p(:class => "price").when_present.text
109
103
  price, = price_text.scan(/(\d+\.\d{2})/).first
110
104
  if price
111
105
  price = BigDecimal(price) - price_diff
112
106
  zone = zone_prices[price]
113
- puts "Zone not found for price #{price.to_s} on #{name}" unless zone
107
+ puts "Zone not found for price #{price.to_s("F")} on #{name}" unless zone
114
108
  else
115
109
  puts "No price on #{name}"
116
110
  zone = nil
@@ -1,3 +1,3 @@
1
1
  module ColissimoZone
2
- VERSION = "0.2"
2
+ VERSION = "0.3"
3
3
  end
@@ -2,118 +2,94 @@
2
2
  - :name: GUADELOUPE
3
3
  :code: GP
4
4
  :zone: '1'
5
- :standard_available: true
5
+ :standard_available: false
6
6
  - :name: GUYANE FRANÇAISE
7
7
  :code: GF
8
8
  :zone: '1'
9
- :standard_available: true
9
+ :standard_available: false
10
10
  - :name: MARTINIQUE
11
11
  :code: MQ
12
12
  :zone: '1'
13
- :standard_available: true
13
+ :standard_available: false
14
14
  - :name: MAYOTTE
15
15
  :code: YT
16
16
  :zone: '1'
17
- :standard_available: true
18
- - :name: NAVIRES DE L'ARMEE
19
- :code: NAV
20
- :zone:
21
- :standard_available: true
17
+ :standard_available: false
22
18
  - :name: NOUVELLE-CALÉDONIE
23
19
  :code: NC
24
20
  :zone: '2'
25
- :standard_available: true
21
+ :standard_available: false
26
22
  - :name: POLYNÉSIE FRANÇAISE
27
23
  :code: PF
28
24
  :zone: '2'
29
- :standard_available: true
25
+ :standard_available: false
30
26
  - :name: RÉUNION
31
27
  :code: RE
32
28
  :zone: '1'
33
- :standard_available: true
29
+ :standard_available: false
34
30
  - :name: SAINT-BARTHÉLEMY
35
31
  :code: GP2
36
32
  :zone: '1'
37
- :standard_available: true
33
+ :standard_available: false
38
34
  - :name: SAINT-MARTIN
39
35
  :code: GP3
40
36
  :zone: '1'
41
- :standard_available: true
37
+ :standard_available: false
42
38
  - :name: SAINT-PIERRE-ET-MIQUELON
43
39
  :code: PM
44
40
  :zone: '1'
45
- :standard_available: true
41
+ :standard_available: false
46
42
  - :name: WALLIS ET FUTUNA
47
43
  :code: WF
48
44
  :zone: '2'
49
- :standard_available: true
50
- - :name: 25000 (SECTEUR POSTAL)
51
- :code: FS2
52
- :zone:
53
- :standard_available: true
54
- - :name: 55000 (SECTEUR POSTAL)
55
- :code: FS5
56
- :zone:
57
- :standard_available: true
58
- - :name: 69000 (SECTEUR POSTAL)
59
- :code: FS6
60
- :zone:
61
- :standard_available: true
62
- - :name: 71000 (SECTEUR POSTAL)
63
- :code: FS7
64
- :zone:
65
- :standard_available: true
66
- - :name: 85000 (SECTEUR POSTAL)
67
- :code: FS8
68
- :zone:
69
- :standard_available: true
45
+ :standard_available: false
70
46
  - :name: Afghanistan
71
47
  :code: AF
72
- :zone: D
73
- :standard_available: true
48
+ :zone: C
49
+ :standard_available: false
74
50
  - :name: Afrique Du Sud
75
51
  :code: ZA
76
52
  :zone: C
77
- :standard_available: true
53
+ :standard_available: false
78
54
  - :name: Albanie
79
55
  :code: AL
80
56
  :zone: B
81
- :standard_available: true
57
+ :standard_available: false
82
58
  - :name: Algerie
83
59
  :code: DZ
84
60
  :zone: B
85
- :standard_available: true
61
+ :standard_available: false
86
62
  - :name: Allemagne
87
63
  :code: DE
88
64
  :zone: A
89
- :standard_available: true
65
+ :standard_available: false
90
66
  - :name: Angola
91
67
  :code: AO
92
68
  :zone: C
93
69
  :standard_available: true
94
70
  - :name: Anguilla
95
71
  :code: AI
96
- :zone: D
72
+ :zone: C
97
73
  :standard_available: true
98
74
  - :name: Antarctique
99
75
  :code: AQ
100
- :zone: D
76
+ :zone: C
101
77
  :standard_available: true
102
78
  - :name: Antigua-Et-Barbuda
103
79
  :code: AG
104
- :zone: D
105
- :standard_available: true
80
+ :zone: C
81
+ :standard_available: false
106
82
  - :name: Antilles Neerlandaises
107
83
  :code: AN
108
- :zone: D
109
- :standard_available: true
84
+ :zone: C
85
+ :standard_available: false
110
86
  - :name: Arabie Saoudite
111
87
  :code: SA
112
88
  :zone: C
113
89
  :standard_available: true
114
90
  - :name: Argentine
115
91
  :code: AR
116
- :zone: D
92
+ :zone: C
117
93
  :standard_available: true
118
94
  - :name: Armenie
119
95
  :code: AM
@@ -121,16 +97,16 @@
121
97
  :standard_available: true
122
98
  - :name: Aruba
123
99
  :code: AW
124
- :zone: D
125
- :standard_available: true
100
+ :zone: C
101
+ :standard_available: false
126
102
  - :name: Ascension
127
103
  :code: AC
128
104
  :zone: C
129
- :standard_available: true
105
+ :standard_available: false
130
106
  - :name: Australie
131
107
  :code: AU
132
- :zone: D
133
- :standard_available: true
108
+ :zone: C
109
+ :standard_available: false
134
110
  - :name: Autriche
135
111
  :code: AT
136
112
  :zone: A
@@ -138,67 +114,67 @@
138
114
  - :name: Azerbaijan
139
115
  :code: AZ
140
116
  :zone: B
141
- :standard_available: true
117
+ :standard_available: false
142
118
  - :name: Bahamas
143
119
  :code: BS
144
- :zone: D
145
- :standard_available: true
120
+ :zone: C
121
+ :standard_available: false
146
122
  - :name: Bahrein
147
123
  :code: BH
148
124
  :zone: C
149
- :standard_available: true
125
+ :standard_available: false
150
126
  - :name: Bangladesh
151
127
  :code: BD
152
- :zone: D
153
- :standard_available: true
128
+ :zone: C
129
+ :standard_available: false
154
130
  - :name: Barbade
155
131
  :code: BB
156
- :zone: D
132
+ :zone: C
157
133
  :standard_available: true
158
134
  - :name: Belarus
159
135
  :code: BY
160
136
  :zone: B
161
- :standard_available: true
137
+ :standard_available: false
162
138
  - :name: Belgique
163
139
  :code: BE
164
140
  :zone: A
165
- :standard_available: true
141
+ :standard_available: false
166
142
  - :name: Belize
167
143
  :code: BZ
168
- :zone: D
169
- :standard_available: true
144
+ :zone: C
145
+ :standard_available: false
170
146
  - :name: Benin
171
147
  :code: BJ
172
148
  :zone: C
173
- :standard_available: true
149
+ :standard_available: false
174
150
  - :name: Bermudes
175
151
  :code: BM
176
- :zone: D
152
+ :zone: C
177
153
  :standard_available: true
178
154
  - :name: Bolivie
179
155
  :code: BO
180
- :zone: D
181
- :standard_available: true
156
+ :zone: C
157
+ :standard_available: false
182
158
  - :name: Bosnie-Herzegovines
183
159
  :code: BA
184
160
  :zone: B
185
- :standard_available: true
161
+ :standard_available: false
186
162
  - :name: Botswana
187
163
  :code: BW
188
164
  :zone: C
189
- :standard_available: true
165
+ :standard_available: false
190
166
  - :name: Bresil
191
167
  :code: BR
192
- :zone: D
193
- :standard_available: true
168
+ :zone: C
169
+ :standard_available: false
194
170
  - :name: Brunei Darussalam
195
171
  :code: BN
196
- :zone: D
197
- :standard_available: true
172
+ :zone: C
173
+ :standard_available: false
198
174
  - :name: Bulgarie
199
175
  :code: BG
200
176
  :zone: A
201
- :standard_available: true
177
+ :standard_available: false
202
178
  - :name: Burkina Faso
203
179
  :code: BF
204
180
  :zone: C
@@ -209,12 +185,12 @@
209
185
  :standard_available: true
210
186
  - :name: Cambodge
211
187
  :code: KH
212
- :zone: D
213
- :standard_available: true
188
+ :zone: C
189
+ :standard_available: false
214
190
  - :name: Cameroun
215
191
  :code: CM
216
192
  :zone: C
217
- :standard_available: true
193
+ :standard_available: false
218
194
  - :name: Canada
219
195
  :code: CA
220
196
  :zone: C
@@ -222,74 +198,74 @@
222
198
  - :name: Cap-Vert
223
199
  :code: CV
224
200
  :zone: C
225
- :standard_available: true
201
+ :standard_available: false
226
202
  - :name: Chili
227
203
  :code: CL
228
- :zone: D
229
- :standard_available: true
204
+ :zone: C
205
+ :standard_available: false
230
206
  - :name: Chine
231
207
  :code: CN
232
- :zone: D
233
- :standard_available: true
208
+ :zone: C
209
+ :standard_available: false
234
210
  - :name: Chypre
235
211
  :code: CY
236
212
  :zone: A
237
- :standard_available: true
213
+ :standard_available: false
238
214
  - :name: Colombie
239
215
  :code: CO
240
- :zone: D
241
- :standard_available: true
216
+ :zone: C
217
+ :standard_available: false
242
218
  - :name: Comores
243
219
  :code: KM
244
220
  :zone: C
245
- :standard_available: true
221
+ :standard_available: false
246
222
  - :name: Congo
247
223
  :code: CG
248
224
  :zone: C
249
- :standard_available: true
225
+ :standard_available: false
250
226
  - :name: Coree, Republique De
251
227
  :code: KR
252
- :zone: D
253
- :standard_available: true
228
+ :zone: C
229
+ :standard_available: false
254
230
  - :name: Coree, Republique Populaire Democra
255
231
  :code: KP
256
- :zone: D
232
+ :zone: C
257
233
  :standard_available: true
258
234
  - :name: Costa Rica
259
235
  :code: CR
260
- :zone: D
236
+ :zone: C
261
237
  :standard_available: true
262
238
  - :name: Cote D'ivoire
263
239
  :code: CI
264
240
  :zone: C
265
- :standard_available: true
241
+ :standard_available: false
266
242
  - :name: Croatie
267
243
  :code: HR
268
- :zone: B
269
- :standard_available: true
244
+ :zone: A
245
+ :standard_available: false
270
246
  - :name: Cuba
271
247
  :code: CU
272
- :zone: D
273
- :standard_available: true
248
+ :zone: C
249
+ :standard_available: false
274
250
  - :name: Danemark
275
251
  :code: DK
276
252
  :zone: A
277
- :standard_available: true
253
+ :standard_available: false
278
254
  - :name: Djibouti
279
255
  :code: DJ
280
256
  :zone: C
281
- :standard_available: true
257
+ :standard_available: false
282
258
  - :name: Dominique
283
259
  :code: DM
284
- :zone: D
285
- :standard_available: true
260
+ :zone: C
261
+ :standard_available: false
286
262
  - :name: Egypte
287
263
  :code: EG
288
264
  :zone: C
289
- :standard_available: true
265
+ :standard_available: false
290
266
  - :name: El Salvador
291
267
  :code: SV
292
- :zone: D
268
+ :zone: C
293
269
  :standard_available: true
294
270
  - :name: Emirats Arabes Unis
295
271
  :code: AE
@@ -297,12 +273,12 @@
297
273
  :standard_available: true
298
274
  - :name: Equateur
299
275
  :code: EC
300
- :zone: D
276
+ :zone: C
301
277
  :standard_available: true
302
278
  - :name: Erythree
303
279
  :code: ER
304
280
  :zone: C
305
- :standard_available: true
281
+ :standard_available: false
306
282
  - :name: Espagne
307
283
  :code: ES
308
284
  :zone: A
@@ -310,23 +286,23 @@
310
286
  - :name: Estonie
311
287
  :code: EE
312
288
  :zone: A
313
- :standard_available: true
289
+ :standard_available: false
314
290
  - :name: Etats-Unis
315
291
  :code: US
316
292
  :zone: C
317
- :standard_available: true
293
+ :standard_available: false
318
294
  - :name: Ethiopie
319
295
  :code: ET
320
296
  :zone: C
321
297
  :standard_available: true
322
298
  - :name: Fidji
323
299
  :code: FJ
324
- :zone: D
325
- :standard_available: true
300
+ :zone: C
301
+ :standard_available: false
326
302
  - :name: Finlande
327
303
  :code: FI
328
304
  :zone: A
329
- :standard_available: true
305
+ :standard_available: false
330
306
  - :name: Gabon
331
307
  :code: GA
332
308
  :zone: C
@@ -338,10 +314,10 @@
338
314
  - :name: Georgie
339
315
  :code: GE
340
316
  :zone: B
341
- :standard_available: true
317
+ :standard_available: false
342
318
  - :name: Georgie Et Iles Sandwich Du Sud
343
319
  :code: GS
344
- :zone: D
320
+ :zone: C
345
321
  :standard_available: true
346
322
  - :name: Ghana
347
323
  :code: GH
@@ -350,166 +326,166 @@
350
326
  - :name: Gibraltar
351
327
  :code: GI
352
328
  :zone: A
353
- :standard_available: true
329
+ :standard_available: false
354
330
  - :name: Grece
355
331
  :code: GR
356
332
  :zone: A
357
333
  :standard_available: true
358
334
  - :name: Grenade
359
335
  :code: GD
360
- :zone: D
361
- :standard_available: true
336
+ :zone: C
337
+ :standard_available: false
362
338
  - :name: Groenland
363
339
  :code: GL
364
340
  :zone: A
365
341
  :standard_available: false
366
342
  - :name: Guam
367
343
  :code: GU
368
- :zone: D
369
- :standard_available: true
344
+ :zone: C
345
+ :standard_available: false
370
346
  - :name: Guatemala
371
347
  :code: GT
372
- :zone: D
373
- :standard_available: true
348
+ :zone: C
349
+ :standard_available: false
374
350
  - :name: Guinee
375
351
  :code: GN
376
352
  :zone: C
377
- :standard_available: true
353
+ :standard_available: false
378
354
  - :name: Guinee Equatoriale
379
355
  :code: GQ
380
356
  :zone: C
381
- :standard_available: true
357
+ :standard_available: false
382
358
  - :name: Guinee-Bissau
383
359
  :code: GW
384
360
  :zone: C
385
- :standard_available: true
361
+ :standard_available: false
386
362
  - :name: Guyana
387
363
  :code: GY
388
- :zone: D
364
+ :zone: C
389
365
  :standard_available: true
390
366
  - :name: Haiti
391
367
  :code: HT
392
- :zone: D
368
+ :zone: C
393
369
  :standard_available: true
394
370
  - :name: Honduras
395
371
  :code: HN
396
- :zone: D
397
- :standard_available: true
372
+ :zone: C
373
+ :standard_available: false
398
374
  - :name: Hong Kong
399
375
  :code: HK
400
- :zone: D
376
+ :zone: C
401
377
  :standard_available: true
402
378
  - :name: Hongrie
403
379
  :code: HU
404
380
  :zone: A
405
- :standard_available: true
381
+ :standard_available: false
406
382
  - :name: Ile Norfolk
407
383
  :code: NF
408
- :zone: D
409
- :standard_available: true
384
+ :zone: C
385
+ :standard_available: false
410
386
  - :name: Iles Caimanes
411
387
  :code: KY
412
- :zone: D
413
- :standard_available: true
388
+ :zone: C
389
+ :standard_available: false
414
390
  - :name: Iles Cook
415
391
  :code: CK
416
- :zone: D
417
- :standard_available: true
392
+ :zone: C
393
+ :standard_available: false
418
394
  - :name: Iles Feroe
419
395
  :code: FO
420
396
  :zone: A
421
- :standard_available: true
397
+ :standard_available: false
422
398
  - :name: Iles Malouines (falkland)
423
399
  :code: FK
424
- :zone: D
425
- :standard_available: true
400
+ :zone: C
401
+ :standard_available: false
426
402
  - :name: Iles Mariannes Du Nord
427
403
  :code: MP
428
- :zone: D
429
- :standard_available: true
404
+ :zone: C
405
+ :standard_available: false
430
406
  - :name: Iles Marshall
431
407
  :code: MH
432
- :zone: D
433
- :standard_available: true
408
+ :zone: C
409
+ :standard_available: false
434
410
  - :name: Iles Salomon
435
411
  :code: SB
436
- :zone: D
437
- :standard_available: true
412
+ :zone: C
413
+ :standard_available: false
438
414
  - :name: Iles Turques Et Caiques
439
415
  :code: TC
440
- :zone: D
441
- :standard_available: true
416
+ :zone: C
417
+ :standard_available: false
442
418
  - :name: Iles Vierges Britanniques
443
419
  :code: VG
444
- :zone: D
445
- :standard_available: true
420
+ :zone: C
421
+ :standard_available: false
446
422
  - :name: Iles Vierges Des Etats-Unis
447
423
  :code: VI
448
- :zone: D
424
+ :zone: C
449
425
  :standard_available: true
450
426
  - :name: Inde
451
427
  :code: IN
452
- :zone: D
453
- :standard_available: true
428
+ :zone: C
429
+ :standard_available: false
454
430
  - :name: Indonesie
455
431
  :code: ID
456
- :zone: D
432
+ :zone: C
457
433
  :standard_available: true
458
434
  - :name: Iran (republique Islamique)
459
435
  :code: IR
460
436
  :zone: C
461
- :standard_available: true
437
+ :standard_available: false
462
438
  - :name: Irlande
463
439
  :code: IE
464
440
  :zone: A
465
- :standard_available: true
441
+ :standard_available: false
466
442
  - :name: Islande
467
443
  :code: IS
468
444
  :zone: B
469
- :standard_available: true
445
+ :standard_available: false
470
446
  - :name: Israel
471
447
  :code: IL
472
448
  :zone: C
473
- :standard_available: true
449
+ :standard_available: false
474
450
  - :name: Italie
475
451
  :code: IT
476
452
  :zone: A
477
453
  :standard_available: true
478
454
  - :name: Jamaique
479
455
  :code: JM
480
- :zone: D
481
- :standard_available: true
456
+ :zone: C
457
+ :standard_available: false
482
458
  - :name: Japon
483
459
  :code: JP
484
- :zone: D
485
- :standard_available: true
460
+ :zone: C
461
+ :standard_available: false
486
462
  - :name: Jordanie
487
463
  :code: JO
488
464
  :zone: C
489
465
  :standard_available: true
490
466
  - :name: Kazakhstan
491
467
  :code: KZ
492
- :zone: D
493
- :standard_available: true
468
+ :zone: C
469
+ :standard_available: false
494
470
  - :name: Kenya
495
471
  :code: KE
496
472
  :zone: C
497
473
  :standard_available: true
498
474
  - :name: Kirghizistan
499
475
  :code: KG
500
- :zone: D
501
- :standard_available: true
476
+ :zone: C
477
+ :standard_available: false
502
478
  - :name: Kiribati
503
479
  :code: KI
504
- :zone: D
505
- :standard_available: true
480
+ :zone: C
481
+ :standard_available: false
506
482
  - :name: Koweit
507
483
  :code: KW
508
484
  :zone: C
509
485
  :standard_available: true
510
486
  - :name: Lao, Republique Democratique Popula
511
487
  :code: LA
512
- :zone: D
488
+ :zone: C
513
489
  :standard_available: true
514
490
  - :name: Lesotho
515
491
  :code: LS
@@ -518,11 +494,11 @@
518
494
  - :name: Lettonie
519
495
  :code: LV
520
496
  :zone: A
521
- :standard_available: true
497
+ :standard_available: false
522
498
  - :name: Liban
523
499
  :code: LB
524
500
  :zone: C
525
- :standard_available: true
501
+ :standard_available: false
526
502
  - :name: Liberia
527
503
  :code: LR
528
504
  :zone: C
@@ -530,11 +506,11 @@
530
506
  - :name: Libye (jamahiriya Arabe Libyenne)
531
507
  :code: LY
532
508
  :zone: C
533
- :standard_available: true
509
+ :standard_available: false
534
510
  - :name: Liechtenstein
535
511
  :code: LI
536
512
  :zone: A
537
- :standard_available: true
513
+ :standard_available: false
538
514
  - :name: Lituanie
539
515
  :code: LT
540
516
  :zone: A
@@ -542,11 +518,11 @@
542
518
  - :name: Luxembourg
543
519
  :code: LU
544
520
  :zone: A
545
- :standard_available: true
521
+ :standard_available: false
546
522
  - :name: Macao
547
523
  :code: MO
548
- :zone: D
549
- :standard_available: true
524
+ :zone: C
525
+ :standard_available: false
550
526
  - :name: Macedoine, L Ex-Republique Yougosla
551
527
  :code: MK
552
528
  :zone: B
@@ -554,54 +530,54 @@
554
530
  - :name: Madagascar
555
531
  :code: MG
556
532
  :zone: C
557
- :standard_available: true
533
+ :standard_available: false
558
534
  - :name: Malaisie
559
535
  :code: MY
560
- :zone: D
561
- :standard_available: true
536
+ :zone: C
537
+ :standard_available: false
562
538
  - :name: Malawi
563
539
  :code: MW
564
540
  :zone: C
565
- :standard_available: true
541
+ :standard_available: false
566
542
  - :name: Maldives
567
543
  :code: MV
568
- :zone: D
569
- :standard_available: true
544
+ :zone: C
545
+ :standard_available: false
570
546
  - :name: Mali
571
547
  :code: ML
572
548
  :zone: C
573
- :standard_available: true
549
+ :standard_available: false
574
550
  - :name: Malte
575
551
  :code: MT
576
552
  :zone: A
577
- :standard_available: true
553
+ :standard_available: false
578
554
  - :name: Maroc
579
555
  :code: MA
580
556
  :zone: B
581
- :standard_available: true
557
+ :standard_available: false
582
558
  - :name: Maurice
583
559
  :code: MU
584
560
  :zone: C
585
- :standard_available: true
561
+ :standard_available: false
586
562
  - :name: Mauritanie
587
563
  :code: MR
588
564
  :zone: C
589
565
  :standard_available: true
590
566
  - :name: Mexique
591
567
  :code: MX
592
- :zone: D
593
- :standard_available: true
568
+ :zone: C
569
+ :standard_available: false
594
570
  - :name: Micronesie, Etats Federes De
595
571
  :code: FM
596
- :zone: D
572
+ :zone: C
597
573
  :standard_available: true
598
574
  - :name: Moldavie, Republique De Moldova
599
575
  :code: MD
600
576
  :zone: B
601
- :standard_available: true
577
+ :standard_available: false
602
578
  - :name: Mongolie
603
579
  :code: MN
604
- :zone: D
580
+ :zone: C
605
581
  :standard_available: true
606
582
  - :name: Montenegro
607
583
  :code: ME
@@ -609,36 +585,36 @@
609
585
  :standard_available: true
610
586
  - :name: Montserrat
611
587
  :code: MS
612
- :zone: D
588
+ :zone: C
613
589
  :standard_available: true
614
590
  - :name: Mozambique
615
591
  :code: MZ
616
592
  :zone: C
617
- :standard_available: true
593
+ :standard_available: false
618
594
  - :name: Myanmar
619
595
  :code: MM
620
- :zone: D
621
- :standard_available: true
596
+ :zone: C
597
+ :standard_available: false
622
598
  - :name: Namibie
623
599
  :code: NA
624
600
  :zone: C
625
601
  :standard_available: true
626
602
  - :name: Nauru
627
603
  :code: NR
628
- :zone: D
604
+ :zone: C
629
605
  :standard_available: true
630
606
  - :name: Nepal
631
607
  :code: NP
632
- :zone: D
633
- :standard_available: true
608
+ :zone: C
609
+ :standard_available: false
634
610
  - :name: Nicaragua
635
611
  :code: NI
636
- :zone: D
612
+ :zone: C
637
613
  :standard_available: true
638
614
  - :name: Niger
639
615
  :code: NE
640
616
  :zone: C
641
- :standard_available: true
617
+ :standard_available: false
642
618
  - :name: Nigeria
643
619
  :code: NG
644
620
  :zone: C
@@ -649,55 +625,55 @@
649
625
  :standard_available: true
650
626
  - :name: Nouvelle-Zelande
651
627
  :code: NZ
652
- :zone: D
653
- :standard_available: true
628
+ :zone: C
629
+ :standard_available: false
654
630
  - :name: Oman
655
631
  :code: OM
656
632
  :zone: C
657
- :standard_available: true
633
+ :standard_available: false
658
634
  - :name: Ouganda
659
635
  :code: UG
660
636
  :zone: C
661
- :standard_available: true
637
+ :standard_available: false
662
638
  - :name: Ouzbekistan
663
639
  :code: UZ
664
- :zone: D
640
+ :zone: C
665
641
  :standard_available: true
666
642
  - :name: Pakistan
667
643
  :code: PK
668
- :zone: D
669
- :standard_available: true
644
+ :zone: C
645
+ :standard_available: false
670
646
  - :name: Palaos
671
647
  :code: PW
672
- :zone: D
673
- :standard_available: true
648
+ :zone: C
649
+ :standard_available: false
674
650
  - :name: Panama
675
651
  :code: PA
676
- :zone: D
652
+ :zone: C
677
653
  :standard_available: true
678
654
  - :name: Papouasie-Nouvelle-Guinee
679
655
  :code: PG
680
- :zone: D
681
- :standard_available: true
656
+ :zone: C
657
+ :standard_available: false
682
658
  - :name: Paraguay
683
659
  :code: PY
684
- :zone: D
685
- :standard_available: true
660
+ :zone: C
661
+ :standard_available: false
686
662
  - :name: Pays-Bas
687
663
  :code: NL
688
664
  :zone: A
689
665
  :standard_available: true
690
666
  - :name: Perou
691
667
  :code: PE
692
- :zone: D
693
- :standard_available: true
668
+ :zone: C
669
+ :standard_available: false
694
670
  - :name: Philippines
695
671
  :code: PH
696
- :zone: D
672
+ :zone: C
697
673
  :standard_available: true
698
674
  - :name: Pitcairn
699
675
  :code: PN
700
- :zone: D
676
+ :zone: C
701
677
  :standard_available: true
702
678
  - :name: Pologne
703
679
  :code: PL
@@ -718,18 +694,18 @@
718
694
  - :name: Republique Arabe Syrienne
719
695
  :code: SY
720
696
  :zone: C
721
- :standard_available: true
697
+ :standard_available: false
722
698
  - :name: Republique Centrafricaine
723
699
  :code: CF
724
700
  :zone: C
725
- :standard_available: true
701
+ :standard_available: false
726
702
  - :name: Republique Democratique Du Congo
727
703
  :code: CD
728
704
  :zone: C
729
705
  :standard_available: true
730
706
  - :name: Republique Dominicaine
731
707
  :code: DO
732
- :zone: D
708
+ :zone: C
733
709
  :standard_available: true
734
710
  - :name: Republique Tcheque
735
711
  :code: CZ
@@ -738,54 +714,58 @@
738
714
  - :name: Roumanie
739
715
  :code: RO
740
716
  :zone: A
741
- :standard_available: true
717
+ :standard_available: false
742
718
  - :name: Royaume-Uni
743
719
  :code: GB
744
720
  :zone: A
745
- :standard_available: true
721
+ :standard_available: false
746
722
  - :name: Russie, Federation De
747
723
  :code: RU
748
- :zone: B
749
- :standard_available: true
724
+ :zone: C
725
+ :standard_available: false
750
726
  - :name: Rwanda
751
727
  :code: RW
752
728
  :zone: C
753
729
  :standard_available: true
754
730
  - :name: Saint-Christophe-Et-Nieves, Saint-K
755
731
  :code: KN
756
- :zone: D
757
- :standard_available: true
732
+ :zone: C
733
+ :standard_available: false
758
734
  - :name: Sainte-Helene
759
735
  :code: SH
760
736
  :zone: C
761
737
  :standard_available: true
762
738
  - :name: Sainte-Lucie
763
739
  :code: LC
764
- :zone: D
765
- :standard_available: true
740
+ :zone: C
741
+ :standard_available: false
766
742
  - :name: Saint-Marin
767
743
  :code: SM
768
744
  :zone: A
769
- :standard_available: true
745
+ :standard_available: false
770
746
  - :name: Saint-Siege (etat De La Cite Du Vat
771
747
  :code: VA
772
748
  :zone: A
773
- :standard_available: true
749
+ :standard_available: false
774
750
  - :name: Saint-Vincent-Et-Les Grenadines
775
751
  :code: VC
776
- :zone: D
752
+ :zone: C
777
753
  :standard_available: true
778
754
  - :name: Samoa
779
755
  :code: WS
780
- :zone: D
756
+ :zone: C
781
757
  :standard_available: true
782
758
  - :name: Samoa Americaines
783
759
  :code: AS
784
- :zone: D
785
- :standard_available: true
760
+ :zone: C
761
+ :standard_available: false
786
762
  - :name: Sao Tome-Et-Principe
787
763
  :code: ST
788
764
  :zone: C
765
+ :standard_available: false
766
+ - :name: Secteur Postal
767
+ :code: S1
768
+ :zone:
789
769
  :standard_available: true
790
770
  - :name: Senegal
791
771
  :code: SN
@@ -794,23 +774,23 @@
794
774
  - :name: Serbie
795
775
  :code: RS
796
776
  :zone: B
797
- :standard_available: true
777
+ :standard_available: false
798
778
  - :name: Seychelles
799
779
  :code: SC
800
780
  :zone: C
801
- :standard_available: true
781
+ :standard_available: false
802
782
  - :name: Sierra Leone
803
783
  :code: SL
804
784
  :zone: C
805
- :standard_available: true
785
+ :standard_available: false
806
786
  - :name: Singapour
807
787
  :code: SG
808
- :zone: D
788
+ :zone: C
809
789
  :standard_available: true
810
790
  - :name: Slovaquie
811
791
  :code: SK
812
792
  :zone: A
813
- :standard_available: true
793
+ :standard_available: false
814
794
  - :name: Slovenie
815
795
  :code: SI
816
796
  :zone: A
@@ -821,7 +801,7 @@
821
801
  :standard_available: true
822
802
  - :name: Sri Lanka
823
803
  :code: LK
824
- :zone: D
804
+ :zone: C
825
805
  :standard_available: true
826
806
  - :name: Suede
827
807
  :code: SE
@@ -833,20 +813,20 @@
833
813
  :standard_available: true
834
814
  - :name: Suriname
835
815
  :code: SR
836
- :zone: D
837
- :standard_available: true
816
+ :zone: C
817
+ :standard_available: false
838
818
  - :name: Swaziland
839
819
  :code: SZ
840
820
  :zone: C
841
- :standard_available: true
821
+ :standard_available: false
842
822
  - :name: Tadjikistan
843
823
  :code: TJ
844
- :zone: D
824
+ :zone: C
845
825
  :standard_available: true
846
826
  - :name: Taiwan, Province De Chine
847
827
  :code: TW
848
- :zone: D
849
- :standard_available: true
828
+ :zone: C
829
+ :standard_available: false
850
830
  - :name: Tanzanie, Republique Unie De
851
831
  :code: TZ
852
832
  :zone: C
@@ -854,38 +834,38 @@
854
834
  - :name: Tchad
855
835
  :code: TD
856
836
  :zone: C
857
- :standard_available: true
837
+ :standard_available: false
858
838
  - :name: Thailande
859
839
  :code: TH
860
- :zone: D
861
- :standard_available: true
840
+ :zone: C
841
+ :standard_available: false
862
842
  - :name: Timor Oriental, Timor-Leste
863
843
  :code: TL
864
- :zone: D
844
+ :zone: C
865
845
  :standard_available: true
866
846
  - :name: Togo
867
847
  :code: TG
868
848
  :zone: C
869
- :standard_available: true
849
+ :standard_available: false
870
850
  - :name: Tonga
871
851
  :code: TO
872
- :zone: D
873
- :standard_available: true
852
+ :zone: C
853
+ :standard_available: false
874
854
  - :name: Trinite-Et-Tobago
875
855
  :code: TT
876
- :zone: D
856
+ :zone: C
877
857
  :standard_available: true
878
858
  - :name: Tristan Da Cuhna
879
859
  :code: TA
880
- :zone: D
881
- :standard_available: true
860
+ :zone: C
861
+ :standard_available: false
882
862
  - :name: Tunisie
883
863
  :code: TN
884
864
  :zone: B
885
- :standard_available: true
865
+ :standard_available: false
886
866
  - :name: Turkmenistan
887
867
  :code: TM
888
- :zone: D
868
+ :zone: C
889
869
  :standard_available: true
890
870
  - :name: Turquie
891
871
  :code: TR
@@ -893,28 +873,28 @@
893
873
  :standard_available: true
894
874
  - :name: Tuvalu
895
875
  :code: TV
896
- :zone: D
897
- :standard_available: true
876
+ :zone: C
877
+ :standard_available: false
898
878
  - :name: Ukraine
899
879
  :code: UA
900
880
  :zone: B
901
881
  :standard_available: true
902
882
  - :name: Uruguay
903
883
  :code: UY
904
- :zone: D
905
- :standard_available: true
884
+ :zone: C
885
+ :standard_available: false
906
886
  - :name: Vanuatu
907
887
  :code: VU
908
- :zone: D
909
- :standard_available: true
888
+ :zone: C
889
+ :standard_available: false
910
890
  - :name: Venezuela
911
891
  :code: VE
912
- :zone: D
913
- :standard_available: true
892
+ :zone: C
893
+ :standard_available: false
914
894
  - :name: Viet Nam
915
895
  :code: VN
916
- :zone: D
917
- :standard_available: true
896
+ :zone: C
897
+ :standard_available: false
918
898
  - :name: Yemen
919
899
  :code: YE
920
900
  :zone: C
@@ -922,7 +902,7 @@
922
902
  - :name: Zambie
923
903
  :code: ZM
924
904
  :zone: C
925
- :standard_available: true
905
+ :standard_available: false
926
906
  - :name: Zimbabwe
927
907
  :code: ZW
928
908
  :zone: C
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: colissimo_zone
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
5
- prerelease:
4
+ version: '0.3'
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ouvrages
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-06-22 00:00:00.000000000 Z
11
+ date: 2015-11-13 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Country zones for the French postal service Colissimo
15
14
  email:
@@ -18,7 +17,7 @@ executables: []
18
17
  extensions: []
19
18
  extra_rdoc_files: []
20
19
  files:
21
- - .gitignore
20
+ - ".gitignore"
22
21
  - Gemfile
23
22
  - LICENSE
24
23
  - README.md
@@ -29,26 +28,25 @@ files:
29
28
  - lib/data/colissimo_zones.yaml
30
29
  homepage: ''
31
30
  licenses: []
31
+ metadata: {}
32
32
  post_install_message:
33
33
  rdoc_options: []
34
34
  require_paths:
35
35
  - lib
36
36
  required_ruby_version: !ruby/object:Gem::Requirement
37
- none: false
38
37
  requirements:
39
- - - ! '>='
38
+ - - ">="
40
39
  - !ruby/object:Gem::Version
41
40
  version: '0'
42
41
  required_rubygems_version: !ruby/object:Gem::Requirement
43
- none: false
44
42
  requirements:
45
- - - ! '>='
43
+ - - ">="
46
44
  - !ruby/object:Gem::Version
47
45
  version: '0'
48
46
  requirements: []
49
47
  rubyforge_project:
50
- rubygems_version: 1.8.11
48
+ rubygems_version: 2.4.8
51
49
  signing_key:
52
- specification_version: 3
50
+ specification_version: 4
53
51
  summary: List of countries with Colissimo zone
54
52
  test_files: []