solidus_br_common 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.rspec +1 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +14 -0
  7. data/Gemfile +19 -0
  8. data/LICENSE +26 -0
  9. data/README.md +55 -0
  10. data/Rakefile +21 -0
  11. data/app/assets/javascripts/spree/backend/solidus_br_common.js +2 -0
  12. data/app/assets/javascripts/spree/frontend/address.js +119 -0
  13. data/app/assets/javascripts/spree/frontend/mask.js +21 -0
  14. data/app/assets/javascripts/spree/frontend/plugins/jquery.mask.extension.js +4 -0
  15. data/app/assets/javascripts/spree/frontend/plugins/jquery.mask.js +395 -0
  16. data/app/assets/javascripts/spree/frontend/routes.js.erb +4 -0
  17. data/app/assets/javascripts/spree/frontend/solidus_br_common.js +1 -0
  18. data/app/assets/stylesheets/spree/backend/solidus_br_common.css +4 -0
  19. data/app/assets/stylesheets/spree/frontend/solidus_br_common.css +4 -0
  20. data/app/controllers/spree/addresses_controller.rb +24 -0
  21. data/app/controllers/spree/api/cities_controller.rb +33 -0
  22. data/app/controllers/spree/user_registrations_controller_decorator.rb +13 -0
  23. data/app/helpers/spree/api/api_helpers_decorator.rb +9 -0
  24. data/app/helpers/spree/base_helper_decorator.rb +5 -0
  25. data/app/models/spree/ability_decorator.rb +21 -0
  26. data/app/models/spree/address_decorator.rb +6 -0
  27. data/app/models/spree/city.rb +7 -0
  28. data/app/models/spree/permitted_attributes_decorator.rb +8 -0
  29. data/app/models/spree/state_decorator.rb +3 -0
  30. data/app/models/spree/user_decorator.rb +52 -0
  31. data/app/overrides/spree/address/_form/add_district.html.erb.deface +5 -0
  32. data/app/overrides/spree/address/_form/add_number.html.erb.deface +5 -0
  33. data/app/overrides/spree/address/_form/hide_country.html.erb.deface +4 -0
  34. data/app/overrides/spree/address/_form/move_city_to_after_state.deface +2 -0
  35. data/app/overrides/spree/address/_form/move_zipcode_after_last_name.deface +2 -0
  36. data/app/overrides/spree/address/_form/replace_city_input_text_by_select.html.erb.deface +18 -0
  37. data/app/overrides/spree/address/_form/set_data_uf_to_state.html.erb.deface +15 -0
  38. data/app/overrides/spree/admin/users/_form/add_extras_fields.html.erb.deface +39 -0
  39. data/app/overrides/spree/shared/_user_form/add_extra_fields.html.erb.deface +19 -0
  40. data/app/overrides/spree/users/show/add_details.html.erb.deface +13 -0
  41. data/app/views/spree/api/cities/index.v1.rabl +11 -0
  42. data/app/views/spree/api/cities/show.v1.rabl +2 -0
  43. data/bin/rails +7 -0
  44. data/config/locales/en.yml +11 -0
  45. data/config/locales/pt-BR.yml +14 -0
  46. data/config/routes.rb +7 -0
  47. data/db/default/country.rb +3 -0
  48. data/db/default/shipping_categories.rb +1 -0
  49. data/db/default/shipping_zones.rb +3 -0
  50. data/db/default/states.rb +31 -0
  51. data/db/default/states_cities_of_acre.rb +26 -0
  52. data/db/default/states_cities_of_alagoas.rb +107 -0
  53. data/db/default/states_cities_of_amapa.rb +20 -0
  54. data/db/default/states_cities_of_amazonas.rb +67 -0
  55. data/db/default/states_cities_of_bahia.rb +421 -0
  56. data/db/default/states_cities_of_ceara.rb +188 -0
  57. data/db/default/states_cities_of_distrito_federal.rb +5 -0
  58. data/db/default/states_cities_of_espirito_santo.rb +82 -0
  59. data/db/default/states_cities_of_goias.rb +250 -0
  60. data/db/default/states_cities_of_maranhao.rb +221 -0
  61. data/db/default/states_cities_of_mato_grosso.rb +145 -0
  62. data/db/default/states_cities_of_mato_grosso_do_sul.rb +82 -0
  63. data/db/default/states_cities_of_minas_gerais.rb +857 -0
  64. data/db/default/states_cities_of_para.rb +147 -0
  65. data/db/default/states_cities_of_paraiba.rb +227 -0
  66. data/db/default/states_cities_of_parana.rb +403 -0
  67. data/db/default/states_cities_of_pernambuco.rb +189 -0
  68. data/db/default/states_cities_of_piaui.rb +227 -0
  69. data/db/default/states_cities_of_rio_de_janeiro.rb +96 -0
  70. data/db/default/states_cities_of_rio_grande_do_norte.rb +171 -0
  71. data/db/default/states_cities_of_rio_grande_do_sul.rb +500 -0
  72. data/db/default/states_cities_of_rondonia.rb +56 -0
  73. data/db/default/states_cities_of_roraima.rb +19 -0
  74. data/db/default/states_cities_of_santa_catarina.rb +297 -0
  75. data/db/default/states_cities_of_sao_paulo.rb +649 -0
  76. data/db/default/states_cities_of_sergipe.rb +79 -0
  77. data/db/default/states_cities_of_tocantins.rb +144 -0
  78. data/db/default/stock.rb +1 -0
  79. data/db/default/tax_categories.rb +1 -0
  80. data/db/default/user.rb +100 -0
  81. data/db/migrate/20150503011715_create_spree_cities.rb +13 -0
  82. data/db/migrate/20150504004509_remove_city_from_spree_address.rb +5 -0
  83. data/db/migrate/20150504004648_add_city_to_spree_address.rb +5 -0
  84. data/db/migrate/20150505020218_add_number_and_district_to_spree_address.rb +6 -0
  85. data/db/migrate/20150505031019_add_details_to_spree_user.rb +10 -0
  86. data/db/seeds.rb +5 -0
  87. data/lib/generators/solidus_br_common/install/install_generator.rb +31 -0
  88. data/lib/solidus_br_common/engine.rb +20 -0
  89. data/lib/solidus_br_common/factories/address_factory.rb +7 -0
  90. data/lib/solidus_br_common/factories/city_factory.rb +8 -0
  91. data/lib/solidus_br_common/factories/user_factory.rb +12 -0
  92. data/lib/solidus_br_common/factories.rb +3 -0
  93. data/lib/solidus_br_common.rb +2 -0
  94. data/solidus_br_common.gemspec +33 -0
  95. data/spec/controllers/spree/addresses_controller_spec.rb +27 -0
  96. data/spec/controllers/spree/api/cities_controller_spec.rb +91 -0
  97. data/spec/features/address_checkout_spec.rb +89 -0
  98. data/spec/features/user_account_spec.rb +46 -0
  99. data/spec/features/user_signup_spec.rb +24 -0
  100. data/spec/fixtures/vcr_cassettes/Checkout/visitor_makes_checkout_as_guest_without_registration/full_checkout/does_not_break_the_per-item_shipping_method_calculator.yml +49 -0
  101. data/spec/fixtures/vcr_cassettes/Checkout/visitor_makes_checkout_as_guest_without_registration/full_checkout/in_Brazil/should_autocomplete_zipcode.yml +46 -0
  102. data/spec/fixtures/vcr_cassettes/Spree_AddressesController/_show/does_not_find_an_incorrect_cep.yml +38 -0
  103. data/spec/fixtures/vcr_cassettes/Spree_AddressesController/_show/shows_the_correct_address.yml +46 -0
  104. data/spec/models/spree/address_spec.rb +32 -0
  105. data/spec/models/spree/city_spec.rb +7 -0
  106. data/spec/models/spree/user_spec.rb +88 -0
  107. data/spec/spec_helper.rb +61 -0
  108. data/spec/support/controller_hacks.rb +33 -0
  109. data/spec/support/database_cleaner.rb +24 -0
  110. data/spec/support/shared_context/checkout_setup.rb +9 -0
  111. data/spec/support/shoulda_matchers.rb +6 -0
  112. data/spec/support/vcr.rb +8 -0
  113. metadata +385 -0
@@ -0,0 +1,147 @@
1
+ para = Spree::State.find_by! abbr: 'PA'
2
+
3
+ Spree::City.create!([
4
+ {state: para, ibge_code: 1501204, name: "Baião"},
5
+ {state: para, ibge_code: 1502103, name: "Cametá"},
6
+ {state: para, ibge_code: 1503309, name: "Igarapé-Miri"},
7
+ {state: para, ibge_code: 1504604, name: "Mocajuba"},
8
+ {state: para, ibge_code: 1505205, name: "Oeiras do Pará"},
9
+ {state: para, ibge_code: 1500206, name: "Acará"},
10
+ {state: para, ibge_code: 1502756, name: "Concórdia do Pará"},
11
+ {state: para, ibge_code: 1507953, name: "Tailândia"},
12
+ {state: para, ibge_code: 1508001, name: "Tomé-Açu"},
13
+ {state: para, ibge_code: 1502301, name: "Capitão Poço"},
14
+ {state: para, ibge_code: 1503077, name: "Garrafão do Norte"},
15
+ {state: para, ibge_code: 1503457, name: "Ipixuna do Pará"},
16
+ {state: para, ibge_code: 1503507, name: "Irituia"},
17
+ {state: para, ibge_code: 1504950, name: "Nova Esperança do Piriá"},
18
+ {state: para, ibge_code: 1505403, name: "Ourém"},
19
+ {state: para, ibge_code: 1500347, name: "Água Azul do Norte"},
20
+ {state: para, ibge_code: 1502152, name: "Canaã dos Carajás"},
21
+ {state: para, ibge_code: 1502954, name: "Eldorado dos Carajás"},
22
+ {state: para, ibge_code: 1505536, name: "Parauapebas"},
23
+ {state: para, ibge_code: 1501758, name: "Brejo Grande do Araguaia"},
24
+ {state: para, ibge_code: 1505494, name: "Palestina do Pará"},
25
+ {state: para, ibge_code: 1507508, name: "São João do Araguaia"},
26
+ {state: para, ibge_code: 1505635, name: "Piçarra"},
27
+ {state: para, ibge_code: 1506138, name: "Redenção"},
28
+ {state: para, ibge_code: 1506161, name: "Rio Maria"},
29
+ {state: para, ibge_code: 1508407, name: "Xinguara"},
30
+ {state: para, ibge_code: 1502707, name: "Conceição do Araguaia"},
31
+ {state: para, ibge_code: 1503044, name: "Floresta do Araguaia"},
32
+ {state: para, ibge_code: 1506583, name: "Santa Maria das Barreiras"},
33
+ {state: para, ibge_code: 1506708, name: "Santana do Araguaia"},
34
+ {state: para, ibge_code: 1503002, name: "Faro"},
35
+ {state: para, ibge_code: 1503903, name: "Juruti"},
36
+ {state: para, ibge_code: 1505106, name: "Óbidos"},
37
+ {state: para, ibge_code: 1505304, name: "Oriximiná"},
38
+ {state: para, ibge_code: 1507979, name: "Terra Santa"},
39
+ {state: para, ibge_code: 1500404, name: "Alenquer"},
40
+ {state: para, ibge_code: 1502855, name: "Curuá"},
41
+ {state: para, ibge_code: 1504802, name: "Monte Alegre"},
42
+ {state: para, ibge_code: 1505650, name: "Placas"},
43
+ {state: para, ibge_code: 1506005, name: "Prainha"},
44
+ {state: para, ibge_code: 1506807, name: "Santarém"},
45
+ {state: para, ibge_code: 1500503, name: "Almeirim"},
46
+ {state: para, ibge_code: 1501105, name: "Bagre"},
47
+ {state: para, ibge_code: 1503101, name: "Gurupá"},
48
+ {state: para, ibge_code: 1504505, name: "Melgaço"},
49
+ {state: para, ibge_code: 1505809, name: "Portel"},
50
+ {state: para, ibge_code: 1500305, name: "Afuá"},
51
+ {state: para, ibge_code: 1502806, name: "Curralinho"},
52
+ {state: para, ibge_code: 1502004, name: "Cachoeira do Arari"},
53
+ {state: para, ibge_code: 1502509, name: "Chaves"},
54
+ {state: para, ibge_code: 1504901, name: "Muaná"},
55
+ {state: para, ibge_code: 1505700, name: "Ponta de Pedras"},
56
+ {state: para, ibge_code: 1506302, name: "Salvaterra"},
57
+ {state: para, ibge_code: 1506401, name: "Santa Cruz do Arari"},
58
+ {state: para, ibge_code: 1507904, name: "Soure"},
59
+ {state: para, ibge_code: 1501303, name: "Barcarena"},
60
+ {state: para, ibge_code: 1501402, name: "Belém"},
61
+ {state: para, ibge_code: 1501501, name: "Benevides"},
62
+ {state: para, ibge_code: 1501907, name: "Bujaru"},
63
+ {state: para, ibge_code: 1502400, name: "Castanhal"},
64
+ {state: para, ibge_code: 1506500, name: "Santa Isabel do Pará"},
65
+ {state: para, ibge_code: 1507003, name: "Santo Antônio do Tauá"},
66
+ {state: para, ibge_code: 1502608, name: "Colares"},
67
+ {state: para, ibge_code: 1504109, name: "Magalhães Barata"},
68
+ {state: para, ibge_code: 1504307, name: "Maracanã"},
69
+ {state: para, ibge_code: 1504406, name: "Marapanim"},
70
+ {state: para, ibge_code: 1507102, name: "São Caetano de Odivelas"},
71
+ {state: para, ibge_code: 1507466, name: "São João da Ponta"},
72
+ {state: para, ibge_code: 1507474, name: "São João de Pirabas"},
73
+ {state: para, ibge_code: 1507961, name: "Terra Alta"},
74
+ {state: para, ibge_code: 1500909, name: "Augusto Corrêa"},
75
+ {state: para, ibge_code: 1501600, name: "Bonito"},
76
+ {state: para, ibge_code: 1502202, name: "Capanema"},
77
+ {state: para, ibge_code: 1505007, name: "Nova Timboteua"},
78
+ {state: para, ibge_code: 1506104, name: "Primavera"},
79
+ {state: para, ibge_code: 1506609, name: "Santa Maria do Pará"},
80
+ {state: para, ibge_code: 1506906, name: "Santarém Novo"},
81
+ {state: para, ibge_code: 1508035, name: "Tracuateua"},
82
+ {state: para, ibge_code: 1500107, name: "Abaetetuba"},
83
+ {state: para, ibge_code: 1501451, name: "Belterra"},
84
+ {state: para, ibge_code: 1501808, name: "Breves"},
85
+ {state: para, ibge_code: 1506351, name: "Santa Bárbara do Pará"},
86
+ {state: para, ibge_code: 1506112, name: "Quatipuru"},
87
+ {state: para, ibge_code: 1500958, name: "Aurora do Pará"},
88
+ {state: para, ibge_code: 1500859, name: "Anapu"},
89
+ {state: para, ibge_code: 1501576, name: "Bom Jesus do Tocantins"},
90
+ {state: para, ibge_code: 1507755, name: "Sapucaia"},
91
+ {state: para, ibge_code: 1505908, name: "Porto de Moz"},
92
+ {state: para, ibge_code: 1503200, name: "Igarapé-Açu"},
93
+ {state: para, ibge_code: 1508050, name: "Trairão"},
94
+ {state: para, ibge_code: 1507151, name: "São Domingos do Araguaia"},
95
+ {state: para, ibge_code: 1501709, name: "Bragança"},
96
+ {state: para, ibge_code: 1505601, name: "Peixe-Boi"},
97
+ {state: para, ibge_code: 1507409, name: "São Francisco do Pará"},
98
+ {state: para, ibge_code: 1504000, name: "Limoeiro do Ajuru"},
99
+ {state: para, ibge_code: 1504703, name: "Moju"},
100
+ {state: para, ibge_code: 1501956, name: "Cachoeira do Piriá"},
101
+ {state: para, ibge_code: 1504059, name: "Mãe do Rio"},
102
+ {state: para, ibge_code: 1507607, name: "São Miguel do Guamá"},
103
+ {state: para, ibge_code: 1505031, name: "Novo Progresso"},
104
+ {state: para, ibge_code: 1501725, name: "Brasil Novo"},
105
+ {state: para, ibge_code: 1508357, name: "Vitória do Xingu"},
106
+ {state: para, ibge_code: 1505064, name: "Novo Repartimento"},
107
+ {state: para, ibge_code: 1505502, name: "Paragominas"},
108
+ {state: para, ibge_code: 1502764, name: "Cumaru do Norte"},
109
+ {state: para, ibge_code: 1502772, name: "Curionópolis"},
110
+ {state: para, ibge_code: 1504208, name: "Marabá"},
111
+ {state: para, ibge_code: 1505551, name: "Pau D'Arco"},
112
+ {state: para, ibge_code: 1507458, name: "São Geraldo do Araguaia"},
113
+ {state: para, ibge_code: 1500701, name: "Anajás"},
114
+ {state: para, ibge_code: 1507706, name: "São Sebastião da Boa Vista"},
115
+ {state: para, ibge_code: 1500800, name: "Ananindeua"},
116
+ {state: para, ibge_code: 1504422, name: "Marituba"},
117
+ {state: para, ibge_code: 1503408, name: "Inhangapi"},
118
+ {state: para, ibge_code: 1502905, name: "Curuçá"},
119
+ {state: para, ibge_code: 1506203, name: "Salinópolis"},
120
+ {state: para, ibge_code: 1508209, name: "Vigia"},
121
+ {state: para, ibge_code: 1506559, name: "Santa Luzia do Pará"},
122
+ {state: para, ibge_code: 1507201, name: "São Domingos do Capim"},
123
+ {state: para, ibge_code: 1508308, name: "Viseu"},
124
+ {state: para, ibge_code: 1501006, name: "Aveiro"},
125
+ {state: para, ibge_code: 1503606, name: "Itaituba"},
126
+ {state: para, ibge_code: 1503754, name: "Jacareacanga"},
127
+ {state: para, ibge_code: 1506195, name: "Rurópolis"},
128
+ {state: para, ibge_code: 1500602, name: "Altamira"},
129
+ {state: para, ibge_code: 1504455, name: "Medicilândia"},
130
+ {state: para, ibge_code: 1505486, name: "Pacajá"},
131
+ {state: para, ibge_code: 1507805, name: "Senador José Porfírio"},
132
+ {state: para, ibge_code: 1508159, name: "Uruará"},
133
+ {state: para, ibge_code: 1501782, name: "Breu Branco"},
134
+ {state: para, ibge_code: 1503705, name: "Itupiranga"},
135
+ {state: para, ibge_code: 1503804, name: "Jacundá"},
136
+ {state: para, ibge_code: 1504976, name: "Nova Ipixuna"},
137
+ {state: para, ibge_code: 1508100, name: "Tucuruí"},
138
+ {state: para, ibge_code: 1500131, name: "Abel Figueiredo"},
139
+ {state: para, ibge_code: 1502939, name: "Dom Eliseu"},
140
+ {state: para, ibge_code: 1503093, name: "Goianésia do Pará"},
141
+ {state: para, ibge_code: 1506187, name: "Rondon do Pará"},
142
+ {state: para, ibge_code: 1508126, name: "Ulianópolis"},
143
+ {state: para, ibge_code: 1501253, name: "Bannach"},
144
+ {state: para, ibge_code: 1505437, name: "Ourilândia do Norte"},
145
+ {state: para, ibge_code: 1507300, name: "São Félix do Xingu"},
146
+ {state: para, ibge_code: 1508084, name: "Tucumã"}
147
+ ])
@@ -0,0 +1,227 @@
1
+ paraiba = Spree::State.find_by! abbr: 'PB'
2
+
3
+ Spree::City.create!([
4
+ {state: paraiba, ibge_code: 2503704, name: "Cajazeiras"},
5
+ {state: paraiba, ibge_code: 2504108, name: "Carrapateira"},
6
+ {state: paraiba, ibge_code: 2509602, name: "Monte Horebe"},
7
+ {state: paraiba, ibge_code: 2512036, name: "Poço Dantas"},
8
+ {state: paraiba, ibge_code: 2512077, name: "Poço de José de Moura"},
9
+ {state: paraiba, ibge_code: 2513307, name: "Santa Helena"},
10
+ {state: paraiba, ibge_code: 2513653, name: "Santarém"},
11
+ {state: paraiba, ibge_code: 2514503, name: "São José de Piranhas"},
12
+ {state: paraiba, ibge_code: 2516805, name: "Triunfo"},
13
+ {state: paraiba, ibge_code: 2516904, name: "Uiraúna"},
14
+ {state: paraiba, ibge_code: 2500775, name: "Aparecida"},
15
+ {state: paraiba, ibge_code: 2503753, name: "Cajazeirinhas"},
16
+ {state: paraiba, ibge_code: 2505501, name: "Vista Serrana"},
17
+ {state: paraiba, ibge_code: 2508406, name: "Lastro"},
18
+ {state: paraiba, ibge_code: 2508802, name: "Malta"},
19
+ {state: paraiba, ibge_code: 2509156, name: "Marizópolis"},
20
+ {state: paraiba, ibge_code: 2510006, name: "Nazarezinho"},
21
+ {state: paraiba, ibge_code: 2510907, name: "Paulista"},
22
+ {state: paraiba, ibge_code: 2513208, name: "Santa Cruz"},
23
+ {state: paraiba, ibge_code: 2513927, name: "São Bentinho"},
24
+ {state: paraiba, ibge_code: 2513968, name: "São Domingos de Pombal"},
25
+ {state: paraiba, ibge_code: 2513984, name: "São Francisco"},
26
+ {state: paraiba, ibge_code: 2514206, name: "São José da Lagoa Tapada"},
27
+ {state: paraiba, ibge_code: 2517209, name: "Vieirópolis"},
28
+ {state: paraiba, ibge_code: 2501153, name: "Areia de Baraúnas"},
29
+ {state: paraiba, ibge_code: 2503407, name: "Cacimba de Areia"},
30
+ {state: paraiba, ibge_code: 2508703, name: "Mãe d'Água"},
31
+ {state: paraiba, ibge_code: 2510709, name: "Passagem"},
32
+ {state: paraiba, ibge_code: 2510808, name: "Patos"},
33
+ {state: paraiba, ibge_code: 2512606, name: "Quixabá"},
34
+ {state: paraiba, ibge_code: 2513802, name: "Santa Teresinha"},
35
+ {state: paraiba, ibge_code: 2502508, name: "Boqueirão"},
36
+ {state: paraiba, ibge_code: 2503100, name: "Cabaceiras"},
37
+ {state: paraiba, ibge_code: 2504355, name: "Caturité"},
38
+ {state: paraiba, ibge_code: 2506509, name: "Gurjão"},
39
+ {state: paraiba, ibge_code: 2513851, name: "Santo André"},
40
+ {state: paraiba, ibge_code: 2513943, name: "São Domingos do Cariri"},
41
+ {state: paraiba, ibge_code: 2514008, name: "São João do Cariri"},
42
+ {state: paraiba, ibge_code: 2500577, name: "Algodão de Jandaíra"},
43
+ {state: paraiba, ibge_code: 2500908, name: "Arara"},
44
+ {state: paraiba, ibge_code: 2501609, name: "Barra de Santa Rosa"},
45
+ {state: paraiba, ibge_code: 2505352, name: "Damião"},
46
+ {state: paraiba, ibge_code: 2510105, name: "Nova Floresta"},
47
+ {state: paraiba, ibge_code: 2512002, name: "Pocinhos"},
48
+ {state: paraiba, ibge_code: 2512705, name: "Remígio"},
49
+ {state: paraiba, ibge_code: 2501005, name: "Araruna"},
50
+ {state: paraiba, ibge_code: 2503506, name: "Cacimba de Dentro"},
51
+ {state: paraiba, ibge_code: 2504157, name: "Casserengue"},
52
+ {state: paraiba, ibge_code: 2512747, name: "Riachão"},
53
+ {state: paraiba, ibge_code: 2516409, name: "Campo de Santana"},
54
+ {state: paraiba, ibge_code: 2506004, name: "Esperança"},
55
+ {state: paraiba, ibge_code: 2514404, name: "São José de Espinharas"},
56
+ {state: paraiba, ibge_code: 2514602, name: "São José do Bonfim"},
57
+ {state: paraiba, ibge_code: 2502607, name: "Igaracy"},
58
+ {state: paraiba, ibge_code: 2504207, name: "Catingueira"},
59
+ {state: paraiba, ibge_code: 2504801, name: "Coremas"},
60
+ {state: paraiba, ibge_code: 2505907, name: "Emas"},
61
+ {state: paraiba, ibge_code: 2510204, name: "Nova Olinda"},
62
+ {state: paraiba, ibge_code: 2510402, name: "Olho d'Água"},
63
+ {state: paraiba, ibge_code: 2511301, name: "Piancó"},
64
+ {state: paraiba, ibge_code: 2513604, name: "Santana dos Garrotes"},
65
+ {state: paraiba, ibge_code: 2502102, name: "Boa Ventura"},
66
+ {state: paraiba, ibge_code: 2504405, name: "Conceição"},
67
+ {state: paraiba, ibge_code: 2506608, name: "Ibiara"},
68
+ {state: paraiba, ibge_code: 2507002, name: "Itaporanga"},
69
+ {state: paraiba, ibge_code: 2511004, name: "Pedra Branca"},
70
+ {state: paraiba, ibge_code: 2513356, name: "Santa Inês"},
71
+ {state: paraiba, ibge_code: 2513505, name: "Santana de Mangueira"},
72
+ {state: paraiba, ibge_code: 2515708, name: "Serra Grande"},
73
+ {state: paraiba, ibge_code: 2500106, name: "Água Branca"},
74
+ {state: paraiba, ibge_code: 2503555, name: "Cacimbas"},
75
+ {state: paraiba, ibge_code: 2505402, name: "Desterro"},
76
+ {state: paraiba, ibge_code: 2506707, name: "Imaculada"},
77
+ {state: paraiba, ibge_code: 2509008, name: "Manaíra"},
78
+ {state: paraiba, ibge_code: 2509396, name: "Maturéia"},
79
+ {state: paraiba, ibge_code: 2516607, name: "Tavares"},
80
+ {state: paraiba, ibge_code: 2516706, name: "Teixeira"},
81
+ {state: paraiba, ibge_code: 2507804, name: "Junco do Seridó"},
82
+ {state: paraiba, ibge_code: 2513000, name: "Salgadinho"},
83
+ {state: paraiba, ibge_code: 2514701, name: "São José do Sabugi"},
84
+ {state: paraiba, ibge_code: 2514909, name: "São Mamede"},
85
+ {state: paraiba, ibge_code: 2517100, name: "Várzea"},
86
+ {state: paraiba, ibge_code: 2505006, name: "Cubati"},
87
+ {state: paraiba, ibge_code: 2506202, name: "Frei Martinho"},
88
+ {state: paraiba, ibge_code: 2502003, name: "Belém do Brejo do Cruz"},
89
+ {state: paraiba, ibge_code: 2502300, name: "Bom Sucesso"},
90
+ {state: paraiba, ibge_code: 2502904, name: "Brejo dos Santos"},
91
+ {state: paraiba, ibge_code: 2507408, name: "Jericó"},
92
+ {state: paraiba, ibge_code: 2508109, name: "Lagoa"},
93
+ {state: paraiba, ibge_code: 2509370, name: "Mato Grosso"},
94
+ {state: paraiba, ibge_code: 2512804, name: "Riacho dos Cavalos"},
95
+ {state: paraiba, ibge_code: 2514651, name: "São José do Brejo do Cruz"},
96
+ {state: paraiba, ibge_code: 2500700, name: "São João do Rio do Peixe"},
97
+ {state: paraiba, ibge_code: 2502052, name: "Bernardino Batista"},
98
+ {state: paraiba, ibge_code: 2503308, name: "Cachoeira dos Índios"},
99
+ {state: paraiba, ibge_code: 2500502, name: "Alagoinha"},
100
+ {state: paraiba, ibge_code: 2501906, name: "Belém"},
101
+ {state: paraiba, ibge_code: 2503605, name: "Caiçara"},
102
+ {state: paraiba, ibge_code: 2505204, name: "Cuitegi"},
103
+ {state: paraiba, ibge_code: 2506301, name: "Guarabira"},
104
+ {state: paraiba, ibge_code: 2508208, name: "Lagoa de Dentro"},
105
+ {state: paraiba, ibge_code: 2508554, name: "Logradouro"},
106
+ {state: paraiba, ibge_code: 2509800, name: "Mulungu"},
107
+ {state: paraiba, ibge_code: 2511806, name: "Pirpirituba"},
108
+ {state: paraiba, ibge_code: 2515609, name: "Serra da Raiz"},
109
+ {state: paraiba, ibge_code: 2504009, name: "Campina Grande"},
110
+ {state: paraiba, ibge_code: 2506103, name: "Fagundes"},
111
+ {state: paraiba, ibge_code: 2508307, name: "Lagoa Seca"},
112
+ {state: paraiba, ibge_code: 2512408, name: "Puxinanã"},
113
+ {state: paraiba, ibge_code: 2512507, name: "Queimadas"},
114
+ {state: paraiba, ibge_code: 2515807, name: "Serra Redonda"},
115
+ {state: paraiba, ibge_code: 2506806, name: "Ingá"},
116
+ {state: paraiba, ibge_code: 2506905, name: "Itabaiana"},
117
+ {state: paraiba, ibge_code: 2507200, name: "Itatuba"},
118
+ {state: paraiba, ibge_code: 2509404, name: "Mogeiro"},
119
+ {state: paraiba, ibge_code: 2512754, name: "Riachão do Bacamarte"},
120
+ {state: paraiba, ibge_code: 2513109, name: "Salgado de São Félix"},
121
+ {state: paraiba, ibge_code: 2501302, name: "Aroeiras"},
122
+ {state: paraiba, ibge_code: 2513158, name: "Santa Cecília"},
123
+ {state: paraiba, ibge_code: 2517001, name: "Umbuzeiro"},
124
+ {state: paraiba, ibge_code: 2504033, name: "Capim"},
125
+ {state: paraiba, ibge_code: 2505238, name: "Cuité de Mamanguape"},
126
+ {state: paraiba, ibge_code: 2505279, name: "Curral de Cima"},
127
+ {state: paraiba, ibge_code: 2507101, name: "Itapororoca"},
128
+ {state: paraiba, ibge_code: 2507309, name: "Jacaraú"},
129
+ {state: paraiba, ibge_code: 2509057, name: "Marcação"},
130
+ {state: paraiba, ibge_code: 2509305, name: "Mataraca"},
131
+ {state: paraiba, ibge_code: 2512721, name: "Pedro Régis"},
132
+ {state: paraiba, ibge_code: 2504900, name: "Cruz do Espírito Santo"},
133
+ {state: paraiba, ibge_code: 2509107, name: "Mari"},
134
+ {state: paraiba, ibge_code: 2512762, name: "Riachão do Poço"},
135
+ {state: paraiba, ibge_code: 2514453, name: "São José dos Ramos"},
136
+ {state: paraiba, ibge_code: 2515005, name: "São Miguel de Taipu"},
137
+ {state: paraiba, ibge_code: 2515971, name: "Sobrado"},
138
+ {state: paraiba, ibge_code: 2501807, name: "Bayeux"},
139
+ {state: paraiba, ibge_code: 2504603, name: "Conde"},
140
+ {state: paraiba, ibge_code: 2507507, name: "João Pessoa"},
141
+ {state: paraiba, ibge_code: 2508604, name: "Lucena"},
142
+ {state: paraiba, ibge_code: 2500601, name: "Alhandra"},
143
+ {state: paraiba, ibge_code: 2503001, name: "Caaporã"},
144
+ {state: paraiba, ibge_code: 2511202, name: "Pedras de Fogo"},
145
+ {state: paraiba, ibge_code: 2507705, name: "Juazeirinho"},
146
+ {state: paraiba, ibge_code: 2511103, name: "Pedra Lavrada"},
147
+ {state: paraiba, ibge_code: 2511400, name: "Picuí"},
148
+ {state: paraiba, ibge_code: 2515401, name: "Seridó"},
149
+ {state: paraiba, ibge_code: 2516755, name: "Tenório"},
150
+ {state: paraiba, ibge_code: 2501351, name: "Assunção"},
151
+ {state: paraiba, ibge_code: 2503902, name: "Camalaú"},
152
+ {state: paraiba, ibge_code: 2504702, name: "Congo"},
153
+ {state: paraiba, ibge_code: 2508505, name: "Livramento"},
154
+ {state: paraiba, ibge_code: 2512200, name: "Prata"},
155
+ {state: paraiba, ibge_code: 2514107, name: "São João do Tigre"},
156
+ {state: paraiba, ibge_code: 2514800, name: "São José dos Cordeiros"},
157
+ {state: paraiba, ibge_code: 2515500, name: "Serra Branca"},
158
+ {state: paraiba, ibge_code: 2516300, name: "Sumé"},
159
+ {state: paraiba, ibge_code: 2516508, name: "Taperoá"},
160
+ {state: paraiba, ibge_code: 2517407, name: "Zabelê"},
161
+ {state: paraiba, ibge_code: 2500536, name: "Alcantil"},
162
+ {state: paraiba, ibge_code: 2501575, name: "Barra de Santana"},
163
+ {state: paraiba, ibge_code: 2502805, name: "Brejo do Cruz"},
164
+ {state: paraiba, ibge_code: 2504504, name: "Condado"},
165
+ {state: paraiba, ibge_code: 2516201, name: "Sousa"},
166
+ {state: paraiba, ibge_code: 2500205, name: "Aguiar"},
167
+ {state: paraiba, ibge_code: 2505600, name: "Diamante"},
168
+ {state: paraiba, ibge_code: 2514552, name: "São José de Princesa"},
169
+ {state: paraiba, ibge_code: 2509701, name: "Monteiro"},
170
+ {state: paraiba, ibge_code: 2504074, name: "Caraúbas"},
171
+ {state: paraiba, ibge_code: 2516102, name: "Soledade"},
172
+ {state: paraiba, ibge_code: 2502706, name: "Borborema"},
173
+ {state: paraiba, ibge_code: 2515930, name: "Sertãozinho"},
174
+ {state: paraiba, ibge_code: 2509909, name: "Natuba"},
175
+ {state: paraiba, ibge_code: 2507903, name: "Juripiranga"},
176
+ {state: paraiba, ibge_code: 2502409, name: "Bonito de Santa Fé"},
177
+ {state: paraiba, ibge_code: 2512101, name: "Pombal"},
178
+ {state: paraiba, ibge_code: 2505303, name: "Curral Velho"},
179
+ {state: paraiba, ibge_code: 2510600, name: "Ouro Velho"},
180
+ {state: paraiba, ibge_code: 2516003, name: "Solânea"},
181
+ {state: paraiba, ibge_code: 2503803, name: "Caldas Brandão"},
182
+ {state: paraiba, ibge_code: 2504306, name: "Catolé do Rocha"},
183
+ {state: paraiba, ibge_code: 2513901, name: "São Bento"},
184
+ {state: paraiba, ibge_code: 2502201, name: "Bom Jesus"},
185
+ {state: paraiba, ibge_code: 2514305, name: "São José de Caiana"},
186
+ {state: paraiba, ibge_code: 2508000, name: "Juru"},
187
+ {state: paraiba, ibge_code: 2512309, name: "Princesa Isabel"},
188
+ {state: paraiba, ibge_code: 2513406, name: "Santa Luzia"},
189
+ {state: paraiba, ibge_code: 2501534, name: "Baraúna"},
190
+ {state: paraiba, ibge_code: 2510303, name: "Nova Palmeira"},
191
+ {state: paraiba, ibge_code: 2500734, name: "Amparo"},
192
+ {state: paraiba, ibge_code: 2504850, name: "Coxixola"},
193
+ {state: paraiba, ibge_code: 2510659, name: "Parari"},
194
+ {state: paraiba, ibge_code: 2515203, name: "São Sebastião do Umbuzeiro"},
195
+ {state: paraiba, ibge_code: 2501708, name: "Barra de São Miguel"},
196
+ {state: paraiba, ibge_code: 2512788, name: "Riacho de Santo Antônio"},
197
+ {state: paraiba, ibge_code: 2505105, name: "Cuité"},
198
+ {state: paraiba, ibge_code: 2510501, name: "Olivedos"},
199
+ {state: paraiba, ibge_code: 2516151, name: "Sossêgo"},
200
+ {state: paraiba, ibge_code: 2505709, name: "Dona Inês"},
201
+ {state: paraiba, ibge_code: 2501203, name: "Areial"},
202
+ {state: paraiba, ibge_code: 2500304, name: "Alagoa Grande"},
203
+ {state: paraiba, ibge_code: 2509339, name: "Matinhas"},
204
+ {state: paraiba, ibge_code: 2500809, name: "Araçagi"},
205
+ {state: paraiba, ibge_code: 2505808, name: "Duas Estradas"},
206
+ {state: paraiba, ibge_code: 2511707, name: "Pilõezinhos"},
207
+ {state: paraiba, ibge_code: 2502151, name: "Boa Vista"},
208
+ {state: paraiba, ibge_code: 2509206, name: "Massaranduba"},
209
+ {state: paraiba, ibge_code: 2506400, name: "Gurinhém"},
210
+ {state: paraiba, ibge_code: 2507606, name: "Juarez Távora"},
211
+ {state: paraiba, ibge_code: 2506251, name: "Gado Bravo"},
212
+ {state: paraiba, ibge_code: 2501401, name: "Baía da Traição"},
213
+ {state: paraiba, ibge_code: 2508901, name: "Mamanguape"},
214
+ {state: paraiba, ibge_code: 2512903, name: "Rio Tinto"},
215
+ {state: paraiba, ibge_code: 2511509, name: "Pilar"},
216
+ {state: paraiba, ibge_code: 2515302, name: "Sapé"},
217
+ {state: paraiba, ibge_code: 2503209, name: "Cabedelo"},
218
+ {state: paraiba, ibge_code: 2513703, name: "Santa Rita"},
219
+ {state: paraiba, ibge_code: 2511905, name: "Pitimbu"},
220
+ {state: paraiba, ibge_code: 2509503, name: "Montadas"},
221
+ {state: paraiba, ibge_code: 2515104, name: "São Sebastião de Lagoa de Roça"},
222
+ {state: paraiba, ibge_code: 2500403, name: "Alagoa Nova"},
223
+ {state: paraiba, ibge_code: 2501104, name: "Areia"},
224
+ {state: paraiba, ibge_code: 2501500, name: "Bananeiras"},
225
+ {state: paraiba, ibge_code: 2511608, name: "Pilões"},
226
+ {state: paraiba, ibge_code: 2515906, name: "Serraria"}
227
+ ])