colissimo_zone 0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ C:\\nppdf32Log\\debuglog.txt
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in colissimo_zone.gemspec
4
+ gemspec
5
+
6
+ gem 'watir-webdriver'
7
+ gem 'nokogiri'
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Michael Witrant
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # ColissimoZone
2
+
3
+ Country zones for the French postal service Colissimo
4
+
5
+ Liste des pays distribués par Colissimo avec leur zone.
6
+
7
+ Certains pays n'ont pas l'option "Standard". Ils sont marqués avec la valeur standard_available à faux.
8
+
9
+ Les données ont été récupérées automatiquement sur le site de Colissimo. Elles peuvent être mises à jour avec "rake update".
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ gem 'colissimo_zone'
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install colissimo_zone
24
+
25
+ ## Usage
26
+
27
+ Examples:
28
+
29
+ ColissimoZone.all.each do |country|
30
+ puts "#{country[:name]} (#{country[:code]): #{country[:zone]}"
31
+ end
32
+
33
+ ColissimoZone.all.select { |country| country[:standard_available] }.map { |country| country[:name] }
34
+
35
+ ## Contributing
36
+
37
+ 1. Fork it
38
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
39
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
40
+ 4. Push to the branch (`git push origin my-new-feature`)
41
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,75 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+
4
+ task :update do
5
+ require "rubygems"
6
+ require "bundler/setup"
7
+ require 'watir-webdriver'
8
+ require "watir-webdriver/wait"
9
+ require 'nokogiri'
10
+ require 'yaml'
11
+ require 'bigdecimal'
12
+
13
+ zone_prices = {
14
+ BigDecimal("16.15") => "A",
15
+ BigDecimal("19.80") => "B",
16
+ BigDecimal("23.20") => "C",
17
+ BigDecimal("26.40") => "D",
18
+ }
19
+
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 International").click
24
+ browser.link(:text => "Calculer le tarif").click
25
+ solution_select = browser.select_list(:name => 'solutionAffranchissement')
26
+ solution_select.select "Guichet"
27
+ country_select = browser.select_list(:name => 'paysDestination')
28
+ Watir::Wait.until { country_select.options.size > 0 }
29
+ doc = Nokogiri::HTML(country_select.html)
30
+ options = doc.css("option")
31
+ options.shift
32
+ countries = options.map { |option| [option["value"], option.text] }
33
+
34
+ data = []
35
+
36
+ countries.each do |code, name|
37
+ country_select.select name
38
+ browser.text_field(:name => 'poids').when_present.set '1'
39
+ Watir::Wait.until { browser.select_list(:name => 'natureEnvoi').options.size > 0 }
40
+ if browser.select_list(:name => 'natureEnvoi').option(:text => "Standard").present?
41
+ select_option = "Standard"
42
+ price_diff = 0
43
+ standard_available = true
44
+ else
45
+ select_option = "Non standard"
46
+ price_diff = 6
47
+ standard_available = false
48
+ end
49
+
50
+ browser.select_list(:name => 'natureEnvoi').select select_option
51
+ browser.image(:src => "img/misc/boutonCalculTarif.gif").when_present.click
52
+ price_text = browser.p(:class => "price").when_present.text
53
+ price, = price_text.scan(/(\d+\.\d{2})/).first
54
+ if price
55
+ price = BigDecimal(price) - price_diff
56
+ zone = zone_prices[price]
57
+ puts "Zone not found for price #{price.to_s} on #{name}" unless zone
58
+ else
59
+ puts "No price on #{name}"
60
+ zone = nil
61
+ end
62
+ country_data = {
63
+ name: name,
64
+ code: code,
65
+ zone: zone,
66
+ standard_available: standard_available,
67
+ }
68
+ p country_data
69
+ data << country_data
70
+ end
71
+
72
+ File.open("lib/data/colissimo_zones.yaml", "w") do |f|
73
+ f.write data.to_yaml
74
+ end
75
+ end
@@ -0,0 +1,17 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/colissimo_zone/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Ouvrages"]
6
+ gem.email = ["contact@ouvrages-web.fr"]
7
+ gem.description = %q{Country zones for the French postal service Colissimo}
8
+ gem.summary = %q{List of countries with Colissimo zone}
9
+ gem.homepage = ""
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "colissimo_zone"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = ColissimoZone::VERSION
17
+ end
@@ -0,0 +1,3 @@
1
+ module ColissimoZone
2
+ VERSION = "0.1"
3
+ end
@@ -0,0 +1,18 @@
1
+ require "colissimo_zone/version"
2
+
3
+ module ColissimoZone
4
+ class << self
5
+ def data_filename
6
+ File.expand_path('../data/colissimo_zones.yaml', __FILE__)
7
+ end
8
+
9
+ def parse
10
+ require 'yaml'
11
+ YAML.load(File.read(data_filename))
12
+ end
13
+
14
+ def all
15
+ parse
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,861 @@
1
+ ---
2
+ - :name: Afghanistan
3
+ :code: AF
4
+ :zone: D
5
+ :standard_available: true
6
+ - :name: Afrique Du Sud
7
+ :code: ZA
8
+ :zone: C
9
+ :standard_available: true
10
+ - :name: Albanie
11
+ :code: AL
12
+ :zone: B
13
+ :standard_available: true
14
+ - :name: Algerie
15
+ :code: DZ
16
+ :zone: B
17
+ :standard_available: true
18
+ - :name: Allemagne
19
+ :code: DE
20
+ :zone: A
21
+ :standard_available: true
22
+ - :name: Angola
23
+ :code: AO
24
+ :zone: C
25
+ :standard_available: true
26
+ - :name: Anguilla
27
+ :code: AI
28
+ :zone: D
29
+ :standard_available: true
30
+ - :name: Antarctique
31
+ :code: AQ
32
+ :zone: D
33
+ :standard_available: true
34
+ - :name: Antigua-Et-Barbuda
35
+ :code: AG
36
+ :zone: D
37
+ :standard_available: true
38
+ - :name: Antilles Neerlandaises
39
+ :code: AN
40
+ :zone: D
41
+ :standard_available: true
42
+ - :name: Arabie Saoudite
43
+ :code: SA
44
+ :zone: C
45
+ :standard_available: true
46
+ - :name: Argentine
47
+ :code: AR
48
+ :zone: D
49
+ :standard_available: true
50
+ - :name: Armenie
51
+ :code: AM
52
+ :zone: B
53
+ :standard_available: true
54
+ - :name: Aruba
55
+ :code: AW
56
+ :zone: D
57
+ :standard_available: true
58
+ - :name: Ascension
59
+ :code: AC
60
+ :zone: C
61
+ :standard_available: true
62
+ - :name: Australie
63
+ :code: AU
64
+ :zone: D
65
+ :standard_available: true
66
+ - :name: Autriche
67
+ :code: AT
68
+ :zone: A
69
+ :standard_available: true
70
+ - :name: Azerbaijan
71
+ :code: AZ
72
+ :zone: B
73
+ :standard_available: true
74
+ - :name: Bahamas
75
+ :code: BS
76
+ :zone: D
77
+ :standard_available: true
78
+ - :name: Bahrein
79
+ :code: BH
80
+ :zone: C
81
+ :standard_available: true
82
+ - :name: Bangladesh
83
+ :code: BD
84
+ :zone: D
85
+ :standard_available: true
86
+ - :name: Barbade
87
+ :code: BB
88
+ :zone: D
89
+ :standard_available: true
90
+ - :name: Belarus
91
+ :code: BY
92
+ :zone: B
93
+ :standard_available: true
94
+ - :name: Belgique
95
+ :code: BE
96
+ :zone: A
97
+ :standard_available: true
98
+ - :name: Belize
99
+ :code: BZ
100
+ :zone: D
101
+ :standard_available: true
102
+ - :name: Benin
103
+ :code: BJ
104
+ :zone: C
105
+ :standard_available: true
106
+ - :name: Bermudes
107
+ :code: BM
108
+ :zone: D
109
+ :standard_available: true
110
+ - :name: Bolivie
111
+ :code: BO
112
+ :zone: D
113
+ :standard_available: true
114
+ - :name: Bosnie-Herzegovines
115
+ :code: BA
116
+ :zone: B
117
+ :standard_available: true
118
+ - :name: Botswana
119
+ :code: BW
120
+ :zone: C
121
+ :standard_available: true
122
+ - :name: Bresil
123
+ :code: BR
124
+ :zone: D
125
+ :standard_available: true
126
+ - :name: Brunei Darussalam
127
+ :code: BN
128
+ :zone: D
129
+ :standard_available: true
130
+ - :name: Bulgarie
131
+ :code: BG
132
+ :zone: A
133
+ :standard_available: true
134
+ - :name: Burkina Faso
135
+ :code: BF
136
+ :zone: C
137
+ :standard_available: true
138
+ - :name: Burundi
139
+ :code: BI
140
+ :zone: C
141
+ :standard_available: true
142
+ - :name: Cambodge
143
+ :code: KH
144
+ :zone: D
145
+ :standard_available: true
146
+ - :name: Cameroun
147
+ :code: CM
148
+ :zone: C
149
+ :standard_available: true
150
+ - :name: Canada
151
+ :code: CA
152
+ :zone: C
153
+ :standard_available: true
154
+ - :name: Cap-Vert
155
+ :code: CV
156
+ :zone: C
157
+ :standard_available: true
158
+ - :name: Chili
159
+ :code: CL
160
+ :zone: D
161
+ :standard_available: true
162
+ - :name: Chine
163
+ :code: CN
164
+ :zone: D
165
+ :standard_available: true
166
+ - :name: Chypre
167
+ :code: CY
168
+ :zone: A
169
+ :standard_available: true
170
+ - :name: Colombie
171
+ :code: CO
172
+ :zone: D
173
+ :standard_available: true
174
+ - :name: Comores
175
+ :code: KM
176
+ :zone: C
177
+ :standard_available: true
178
+ - :name: Congo
179
+ :code: CG
180
+ :zone: C
181
+ :standard_available: true
182
+ - :name: Coree, Republique De
183
+ :code: KR
184
+ :zone: D
185
+ :standard_available: true
186
+ - :name: Coree, Republique Populaire Democra
187
+ :code: KP
188
+ :zone: D
189
+ :standard_available: true
190
+ - :name: Costa Rica
191
+ :code: CR
192
+ :zone: D
193
+ :standard_available: true
194
+ - :name: Cote D'ivoire
195
+ :code: CI
196
+ :zone: C
197
+ :standard_available: true
198
+ - :name: Croatie
199
+ :code: HR
200
+ :zone: B
201
+ :standard_available: true
202
+ - :name: Cuba
203
+ :code: CU
204
+ :zone: D
205
+ :standard_available: true
206
+ - :name: Danemark
207
+ :code: DK
208
+ :zone: A
209
+ :standard_available: true
210
+ - :name: Djibouti
211
+ :code: DJ
212
+ :zone: C
213
+ :standard_available: true
214
+ - :name: Dominique
215
+ :code: DM
216
+ :zone: D
217
+ :standard_available: true
218
+ - :name: Egypte
219
+ :code: EG
220
+ :zone: C
221
+ :standard_available: true
222
+ - :name: El Salvador
223
+ :code: SV
224
+ :zone: D
225
+ :standard_available: true
226
+ - :name: Emirats Arabes Unis
227
+ :code: AE
228
+ :zone: C
229
+ :standard_available: true
230
+ - :name: Equateur
231
+ :code: EC
232
+ :zone: D
233
+ :standard_available: true
234
+ - :name: Erythree
235
+ :code: ER
236
+ :zone: C
237
+ :standard_available: true
238
+ - :name: Espagne
239
+ :code: ES
240
+ :zone: A
241
+ :standard_available: true
242
+ - :name: Estonie
243
+ :code: EE
244
+ :zone: A
245
+ :standard_available: true
246
+ - :name: Etats-Unis
247
+ :code: US
248
+ :zone: C
249
+ :standard_available: true
250
+ - :name: Ethiopie
251
+ :code: ET
252
+ :zone: C
253
+ :standard_available: true
254
+ - :name: Fidji
255
+ :code: FJ
256
+ :zone: D
257
+ :standard_available: true
258
+ - :name: Finlande
259
+ :code: FI
260
+ :zone: A
261
+ :standard_available: true
262
+ - :name: Gabon
263
+ :code: GA
264
+ :zone: C
265
+ :standard_available: true
266
+ - :name: Gambie
267
+ :code: GM
268
+ :zone: C
269
+ :standard_available: true
270
+ - :name: Georgie
271
+ :code: GE
272
+ :zone: B
273
+ :standard_available: true
274
+ - :name: Georgie Et Iles Sandwich Du Sud
275
+ :code: GS
276
+ :zone: D
277
+ :standard_available: true
278
+ - :name: Ghana
279
+ :code: GH
280
+ :zone: C
281
+ :standard_available: true
282
+ - :name: Gibraltar
283
+ :code: GI
284
+ :zone: A
285
+ :standard_available: true
286
+ - :name: Grece
287
+ :code: GR
288
+ :zone: A
289
+ :standard_available: true
290
+ - :name: Grenade
291
+ :code: GD
292
+ :zone: D
293
+ :standard_available: true
294
+ - :name: Groenland
295
+ :code: GL
296
+ :zone: A
297
+ :standard_available: false
298
+ - :name: Guam
299
+ :code: GU
300
+ :zone: D
301
+ :standard_available: true
302
+ - :name: Guatemala
303
+ :code: GT
304
+ :zone: D
305
+ :standard_available: true
306
+ - :name: Guinee
307
+ :code: GN
308
+ :zone: C
309
+ :standard_available: true
310
+ - :name: Guinee Equatoriale
311
+ :code: GQ
312
+ :zone: C
313
+ :standard_available: true
314
+ - :name: Guinee-Bissau
315
+ :code: GW
316
+ :zone: C
317
+ :standard_available: true
318
+ - :name: Guyana
319
+ :code: GY
320
+ :zone: D
321
+ :standard_available: true
322
+ - :name: Haiti
323
+ :code: HT
324
+ :zone: D
325
+ :standard_available: true
326
+ - :name: Honduras
327
+ :code: HN
328
+ :zone: D
329
+ :standard_available: true
330
+ - :name: Hong Kong
331
+ :code: HK
332
+ :zone: D
333
+ :standard_available: true
334
+ - :name: Hongrie
335
+ :code: HU
336
+ :zone: A
337
+ :standard_available: true
338
+ - :name: Ile Norfolk
339
+ :code: NF
340
+ :zone: D
341
+ :standard_available: true
342
+ - :name: Iles Caimanes
343
+ :code: KY
344
+ :zone: D
345
+ :standard_available: true
346
+ - :name: Iles Cook
347
+ :code: CK
348
+ :zone: D
349
+ :standard_available: true
350
+ - :name: Iles Feroe
351
+ :code: FO
352
+ :zone: A
353
+ :standard_available: true
354
+ - :name: Iles Malouines (falkland)
355
+ :code: FK
356
+ :zone: D
357
+ :standard_available: true
358
+ - :name: Iles Mariannes Du Nord
359
+ :code: MP
360
+ :zone: D
361
+ :standard_available: true
362
+ - :name: Iles Marshall
363
+ :code: MH
364
+ :zone: D
365
+ :standard_available: true
366
+ - :name: Iles Salomon
367
+ :code: SB
368
+ :zone: D
369
+ :standard_available: true
370
+ - :name: Iles Turques Et Caiques
371
+ :code: TC
372
+ :zone: D
373
+ :standard_available: true
374
+ - :name: Iles Vierges Britanniques
375
+ :code: VG
376
+ :zone: D
377
+ :standard_available: true
378
+ - :name: Iles Vierges Des Etats-Unis
379
+ :code: VI
380
+ :zone: D
381
+ :standard_available: true
382
+ - :name: Inde
383
+ :code: IN
384
+ :zone: D
385
+ :standard_available: true
386
+ - :name: Indonesie
387
+ :code: ID
388
+ :zone: D
389
+ :standard_available: true
390
+ - :name: Iran (republique Islamique)
391
+ :code: IR
392
+ :zone: C
393
+ :standard_available: true
394
+ - :name: Irlande
395
+ :code: IE
396
+ :zone: A
397
+ :standard_available: true
398
+ - :name: Islande
399
+ :code: IS
400
+ :zone: B
401
+ :standard_available: true
402
+ - :name: Israel
403
+ :code: IL
404
+ :zone: C
405
+ :standard_available: true
406
+ - :name: Italie
407
+ :code: IT
408
+ :zone: A
409
+ :standard_available: true
410
+ - :name: Jamaique
411
+ :code: JM
412
+ :zone: D
413
+ :standard_available: true
414
+ - :name: Japon
415
+ :code: JP
416
+ :zone: D
417
+ :standard_available: true
418
+ - :name: Jordanie
419
+ :code: JO
420
+ :zone: C
421
+ :standard_available: true
422
+ - :name: Kazakhstan
423
+ :code: KZ
424
+ :zone: D
425
+ :standard_available: true
426
+ - :name: Kenya
427
+ :code: KE
428
+ :zone: C
429
+ :standard_available: true
430
+ - :name: Kirghizistan
431
+ :code: KG
432
+ :zone: D
433
+ :standard_available: true
434
+ - :name: Kiribati
435
+ :code: KI
436
+ :zone: D
437
+ :standard_available: true
438
+ - :name: Koweit
439
+ :code: KW
440
+ :zone: C
441
+ :standard_available: true
442
+ - :name: Lao, Republique Democratique Popula
443
+ :code: LA
444
+ :zone: D
445
+ :standard_available: true
446
+ - :name: Lesotho
447
+ :code: LS
448
+ :zone: C
449
+ :standard_available: true
450
+ - :name: Lettonie
451
+ :code: LV
452
+ :zone: A
453
+ :standard_available: true
454
+ - :name: Liban
455
+ :code: LB
456
+ :zone: C
457
+ :standard_available: true
458
+ - :name: Liberia
459
+ :code: LR
460
+ :zone: C
461
+ :standard_available: true
462
+ - :name: Libye (jamahiriya Arabe Libyenne)
463
+ :code: LY
464
+ :zone: C
465
+ :standard_available: true
466
+ - :name: Liechtenstein
467
+ :code: LI
468
+ :zone: A
469
+ :standard_available: true
470
+ - :name: Lituanie
471
+ :code: LT
472
+ :zone: A
473
+ :standard_available: true
474
+ - :name: Luxembourg
475
+ :code: LU
476
+ :zone: A
477
+ :standard_available: true
478
+ - :name: Macao
479
+ :code: MO
480
+ :zone: D
481
+ :standard_available: true
482
+ - :name: Macedoine, L Ex-Republique Yougosla
483
+ :code: MK
484
+ :zone: B
485
+ :standard_available: true
486
+ - :name: Madagascar
487
+ :code: MG
488
+ :zone: C
489
+ :standard_available: true
490
+ - :name: Malaisie
491
+ :code: MY
492
+ :zone: D
493
+ :standard_available: true
494
+ - :name: Malawi
495
+ :code: MW
496
+ :zone: C
497
+ :standard_available: true
498
+ - :name: Maldives
499
+ :code: MV
500
+ :zone: D
501
+ :standard_available: true
502
+ - :name: Mali
503
+ :code: ML
504
+ :zone: C
505
+ :standard_available: true
506
+ - :name: Malte
507
+ :code: MT
508
+ :zone: A
509
+ :standard_available: true
510
+ - :name: Maroc
511
+ :code: MA
512
+ :zone: B
513
+ :standard_available: true
514
+ - :name: Maurice
515
+ :code: MU
516
+ :zone: C
517
+ :standard_available: true
518
+ - :name: Mauritanie
519
+ :code: MR
520
+ :zone: C
521
+ :standard_available: true
522
+ - :name: Mexique
523
+ :code: MX
524
+ :zone: D
525
+ :standard_available: true
526
+ - :name: Micronesie, Etats Federes De
527
+ :code: FM
528
+ :zone: D
529
+ :standard_available: true
530
+ - :name: Moldavie, Republique De Moldova
531
+ :code: MD
532
+ :zone: B
533
+ :standard_available: true
534
+ - :name: Mongolie
535
+ :code: MN
536
+ :zone: D
537
+ :standard_available: true
538
+ - :name: Montenegro
539
+ :code: ME
540
+ :zone: B
541
+ :standard_available: true
542
+ - :name: Montserrat
543
+ :code: MS
544
+ :zone: D
545
+ :standard_available: true
546
+ - :name: Mozambique
547
+ :code: MZ
548
+ :zone: C
549
+ :standard_available: true
550
+ - :name: Myanmar
551
+ :code: MM
552
+ :zone: D
553
+ :standard_available: true
554
+ - :name: Namibie
555
+ :code: NA
556
+ :zone: C
557
+ :standard_available: true
558
+ - :name: Nauru
559
+ :code: NR
560
+ :zone: D
561
+ :standard_available: true
562
+ - :name: Nepal
563
+ :code: NP
564
+ :zone: D
565
+ :standard_available: true
566
+ - :name: Nicaragua
567
+ :code: NI
568
+ :zone: D
569
+ :standard_available: true
570
+ - :name: Niger
571
+ :code: NE
572
+ :zone: C
573
+ :standard_available: true
574
+ - :name: Nigeria
575
+ :code: NG
576
+ :zone: C
577
+ :standard_available: true
578
+ - :name: Norvege
579
+ :code: 'NO'
580
+ :zone: B
581
+ :standard_available: true
582
+ - :name: Nouvelle-Zelande
583
+ :code: NZ
584
+ :zone: D
585
+ :standard_available: true
586
+ - :name: Oman
587
+ :code: OM
588
+ :zone: C
589
+ :standard_available: true
590
+ - :name: Ouganda
591
+ :code: UG
592
+ :zone: C
593
+ :standard_available: true
594
+ - :name: Ouzbekistan
595
+ :code: UZ
596
+ :zone: D
597
+ :standard_available: true
598
+ - :name: Pakistan
599
+ :code: PK
600
+ :zone: D
601
+ :standard_available: true
602
+ - :name: Palaos
603
+ :code: PW
604
+ :zone: D
605
+ :standard_available: true
606
+ - :name: Panama
607
+ :code: PA
608
+ :zone: D
609
+ :standard_available: true
610
+ - :name: Papouasie-Nouvelle-Guinee
611
+ :code: PG
612
+ :zone: D
613
+ :standard_available: true
614
+ - :name: Paraguay
615
+ :code: PY
616
+ :zone: D
617
+ :standard_available: true
618
+ - :name: Pays-Bas
619
+ :code: NL
620
+ :zone: A
621
+ :standard_available: true
622
+ - :name: Perou
623
+ :code: PE
624
+ :zone: D
625
+ :standard_available: true
626
+ - :name: Philippines
627
+ :code: PH
628
+ :zone: D
629
+ :standard_available: true
630
+ - :name: Pitcairn
631
+ :code: PN
632
+ :zone: D
633
+ :standard_available: true
634
+ - :name: Pologne
635
+ :code: PL
636
+ :zone: A
637
+ :standard_available: true
638
+ - :name: Porto Rico
639
+ :code: PR
640
+ :zone: C
641
+ :standard_available: true
642
+ - :name: Portugal
643
+ :code: PT
644
+ :zone: A
645
+ :standard_available: true
646
+ - :name: Qatar
647
+ :code: QA
648
+ :zone: C
649
+ :standard_available: true
650
+ - :name: Republique Arabe Syrienne
651
+ :code: SY
652
+ :zone: C
653
+ :standard_available: true
654
+ - :name: Republique Centrafricaine
655
+ :code: CF
656
+ :zone: C
657
+ :standard_available: true
658
+ - :name: Republique Democratique Du Congo
659
+ :code: CD
660
+ :zone: C
661
+ :standard_available: true
662
+ - :name: Republique Dominicaine
663
+ :code: DO
664
+ :zone: D
665
+ :standard_available: true
666
+ - :name: Republique Tcheque
667
+ :code: CZ
668
+ :zone: A
669
+ :standard_available: true
670
+ - :name: Roumanie
671
+ :code: RO
672
+ :zone: A
673
+ :standard_available: true
674
+ - :name: Royaume-Uni
675
+ :code: GB
676
+ :zone: A
677
+ :standard_available: true
678
+ - :name: Russie, Federation De
679
+ :code: RU
680
+ :zone: B
681
+ :standard_available: true
682
+ - :name: Rwanda
683
+ :code: RW
684
+ :zone: C
685
+ :standard_available: true
686
+ - :name: Saint-Christophe-Et-Nieves, Saint-K
687
+ :code: KN
688
+ :zone: D
689
+ :standard_available: true
690
+ - :name: Sainte-Helene
691
+ :code: SH
692
+ :zone: C
693
+ :standard_available: true
694
+ - :name: Sainte-Lucie
695
+ :code: LC
696
+ :zone: D
697
+ :standard_available: true
698
+ - :name: Saint-Marin
699
+ :code: SM
700
+ :zone: A
701
+ :standard_available: true
702
+ - :name: Saint-Siege (etat De La Cite Du Vat
703
+ :code: VA
704
+ :zone: A
705
+ :standard_available: true
706
+ - :name: Saint-Vincent-Et-Les Grenadines
707
+ :code: VC
708
+ :zone: D
709
+ :standard_available: true
710
+ - :name: Samoa
711
+ :code: WS
712
+ :zone: D
713
+ :standard_available: true
714
+ - :name: Samoa Americaines
715
+ :code: AS
716
+ :zone: D
717
+ :standard_available: true
718
+ - :name: Sao Tome-Et-Principe
719
+ :code: ST
720
+ :zone: C
721
+ :standard_available: true
722
+ - :name: Senegal
723
+ :code: SN
724
+ :zone: C
725
+ :standard_available: true
726
+ - :name: Serbie
727
+ :code: RS
728
+ :zone: B
729
+ :standard_available: true
730
+ - :name: Seychelles
731
+ :code: SC
732
+ :zone: C
733
+ :standard_available: true
734
+ - :name: Sierra Leone
735
+ :code: SL
736
+ :zone: C
737
+ :standard_available: true
738
+ - :name: Singapour
739
+ :code: SG
740
+ :zone: D
741
+ :standard_available: true
742
+ - :name: Slovaquie
743
+ :code: SK
744
+ :zone: A
745
+ :standard_available: true
746
+ - :name: Slovenie
747
+ :code: SI
748
+ :zone: A
749
+ :standard_available: true
750
+ - :name: Soudan
751
+ :code: SD
752
+ :zone: C
753
+ :standard_available: true
754
+ - :name: Sri Lanka
755
+ :code: LK
756
+ :zone: D
757
+ :standard_available: true
758
+ - :name: Suede
759
+ :code: SE
760
+ :zone: A
761
+ :standard_available: true
762
+ - :name: Suisse
763
+ :code: CH
764
+ :zone: A
765
+ :standard_available: true
766
+ - :name: Suriname
767
+ :code: SR
768
+ :zone: D
769
+ :standard_available: true
770
+ - :name: Swaziland
771
+ :code: SZ
772
+ :zone: C
773
+ :standard_available: true
774
+ - :name: Tadjikistan
775
+ :code: TJ
776
+ :zone: D
777
+ :standard_available: true
778
+ - :name: Taiwan, Province De Chine
779
+ :code: TW
780
+ :zone: D
781
+ :standard_available: true
782
+ - :name: Tanzanie, Republique Unie De
783
+ :code: TZ
784
+ :zone: C
785
+ :standard_available: true
786
+ - :name: Tchad
787
+ :code: TD
788
+ :zone: C
789
+ :standard_available: true
790
+ - :name: Thailande
791
+ :code: TH
792
+ :zone: D
793
+ :standard_available: true
794
+ - :name: Timor Oriental, Timor-Leste
795
+ :code: TL
796
+ :zone: D
797
+ :standard_available: true
798
+ - :name: Togo
799
+ :code: TG
800
+ :zone: C
801
+ :standard_available: true
802
+ - :name: Tonga
803
+ :code: TO
804
+ :zone: D
805
+ :standard_available: true
806
+ - :name: Trinite-Et-Tobago
807
+ :code: TT
808
+ :zone: D
809
+ :standard_available: true
810
+ - :name: Tristan Da Cuhna
811
+ :code: TA
812
+ :zone: D
813
+ :standard_available: true
814
+ - :name: Tunisie
815
+ :code: TN
816
+ :zone: B
817
+ :standard_available: true
818
+ - :name: Turkmenistan
819
+ :code: TM
820
+ :zone: D
821
+ :standard_available: true
822
+ - :name: Turquie
823
+ :code: TR
824
+ :zone: B
825
+ :standard_available: true
826
+ - :name: Tuvalu
827
+ :code: TV
828
+ :zone: D
829
+ :standard_available: true
830
+ - :name: Ukraine
831
+ :code: UA
832
+ :zone: B
833
+ :standard_available: true
834
+ - :name: Uruguay
835
+ :code: UY
836
+ :zone: D
837
+ :standard_available: true
838
+ - :name: Vanuatu
839
+ :code: VU
840
+ :zone: D
841
+ :standard_available: true
842
+ - :name: Venezuela
843
+ :code: VE
844
+ :zone: D
845
+ :standard_available: true
846
+ - :name: Viet Nam
847
+ :code: VN
848
+ :zone: D
849
+ :standard_available: true
850
+ - :name: Yemen
851
+ :code: YE
852
+ :zone: C
853
+ :standard_available: true
854
+ - :name: Zambie
855
+ :code: ZM
856
+ :zone: C
857
+ :standard_available: true
858
+ - :name: Zimbabwe
859
+ :code: ZW
860
+ :zone: C
861
+ :standard_available: true
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: colissimo_zone
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Ouvrages
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-22 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Country zones for the French postal service Colissimo
15
+ email:
16
+ - contact@ouvrages-web.fr
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - LICENSE
24
+ - README.md
25
+ - Rakefile
26
+ - colissimo_zone.gemspec
27
+ - lib/colissimo_zone.rb
28
+ - lib/colissimo_zone/version.rb
29
+ - lib/data/colissimo_zones.yaml
30
+ homepage: ''
31
+ licenses: []
32
+ post_install_message:
33
+ rdoc_options: []
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ! '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ requirements: []
49
+ rubyforge_project:
50
+ rubygems_version: 1.8.11
51
+ signing_key:
52
+ specification_version: 3
53
+ summary: List of countries with Colissimo zone
54
+ test_files: []