spree_br_common 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) 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 +20 -0
  8. data/LICENSE +26 -0
  9. data/README.md +55 -0
  10. data/Rakefile +21 -0
  11. data/app/assets/javascripts/spree/backend/spree_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/spree_br_common.js +1 -0
  18. data/app/assets/stylesheets/spree/backend/spree_br_common.css +4 -0
  19. data/app/assets/stylesheets/spree/frontend/spree_br_common.css +4 -0
  20. data/app/controllers/spree/addresses_controller.rb +24 -0
  21. data/app/controllers/spree/api/cities_controller.rb +38 -0
  22. data/app/controllers/spree/user_registrations_controller_decorator.rb +13 -0
  23. data/app/helpers/spree/api/api_helpers_decorator.rb +13 -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/spree_br_common/install/install_generator.rb +31 -0
  88. data/lib/spree_br_common/engine.rb +20 -0
  89. data/lib/spree_br_common/factories/address_factory.rb +7 -0
  90. data/lib/spree_br_common/factories/city_factory.rb +8 -0
  91. data/lib/spree_br_common/factories/user_factory.rb +12 -0
  92. data/lib/spree_br_common/factories.rb +3 -0
  93. data/lib/spree_br_common.rb +2 -0
  94. data/spec/controllers/features/address_checkout_spec.rb +89 -0
  95. data/spec/controllers/features/user_account_spec.rb +46 -0
  96. data/spec/controllers/features/user_signup_spec.rb +24 -0
  97. data/spec/controllers/spree/addresses_controller_spec.rb +27 -0
  98. data/spec/controllers/spree/api/cities_controller_spec.rb +86 -0
  99. 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
  100. data/spec/fixtures/vcr_cassettes/Checkout/visitor_makes_checkout_as_guest_without_registration/full_checkout/in_Brazil/should_autocomplete_zipcode.yml +46 -0
  101. data/spec/fixtures/vcr_cassettes/Spree_AddressesController/_show/does_not_find_an_incorrect_cep.yml +38 -0
  102. data/spec/fixtures/vcr_cassettes/Spree_AddressesController/_show/shows_the_correct_address.yml +46 -0
  103. data/spec/models/spree/address_spec.rb +32 -0
  104. data/spec/models/spree/city_spec.rb +7 -0
  105. data/spec/models/spree/user_spec.rb +88 -0
  106. data/spec/spec_helper.rb +94 -0
  107. data/spec/support/controller_hacks.rb +33 -0
  108. data/spec/support/shared_context/checkout_setup.rb +9 -0
  109. data/spec/support/vcr.rb +8 -0
  110. data/spree_br_common.gemspec +33 -0
  111. metadata +351 -0
@@ -0,0 +1,403 @@
1
+ parana = Spree::State.find_by! abbr: 'PR'
2
+
3
+ Spree::City.create!([
4
+ {state: parana, ibge_code: 4108403, name: "Francisco Beltrão"},
5
+ {state: parana, ibge_code: 4115408, name: "Marmeleiro"},
6
+ {state: parana, ibge_code: 4116950, name: "Nova Esperança do Sudoeste"},
7
+ {state: parana, ibge_code: 4122800, name: "Salgado Filho"},
8
+ {state: parana, ibge_code: 4123006, name: "Salto do Lontra"},
9
+ {state: parana, ibge_code: 4124400, name: "Santo Antônio do Sudoeste"},
10
+ {state: parana, ibge_code: 4125209, name: "São Jorge d'Oeste"},
11
+ {state: parana, ibge_code: 4128609, name: "Verê"},
12
+ {state: parana, ibge_code: 4105409, name: "Chopinzinho"},
13
+ {state: parana, ibge_code: 4106506, name: "Coronel Vivida"},
14
+ {state: parana, ibge_code: 4111209, name: "Itapejara d'Oeste"},
15
+ {state: parana, ibge_code: 4115309, name: "Mariópolis"},
16
+ {state: parana, ibge_code: 4124806, name: "São João"},
17
+ {state: parana, ibge_code: 4126272, name: "Saudade do Iguaçu"},
18
+ {state: parana, ibge_code: 4126652, name: "Sulina"},
19
+ {state: parana, ibge_code: 4113007, name: "Jussara"},
20
+ {state: parana, ibge_code: 4122602, name: "Rondon"},
21
+ {state: parana, ibge_code: 4126108, name: "São Tomé"},
22
+ {state: parana, ibge_code: 4126801, name: "Tapejara"},
23
+ {state: parana, ibge_code: 4127908, name: "Tuneiras do Oeste"},
24
+ {state: parana, ibge_code: 4100459, name: "Altamira do Paraná"},
25
+ {state: parana, ibge_code: 4103008, name: "Boa Esperança"},
26
+ {state: parana, ibge_code: 4108601, name: "Goioerê"},
27
+ {state: parana, ibge_code: 4112207, name: "Janiópolis"},
28
+ {state: parana, ibge_code: 4112959, name: "Juranda"},
29
+ {state: parana, ibge_code: 4116109, name: "Moreira Sales"},
30
+ {state: parana, ibge_code: 4116802, name: "Nova Cantu"},
31
+ {state: parana, ibge_code: 4121356, name: "Rancho Alegre D'Oeste"},
32
+ {state: parana, ibge_code: 4102505, name: "Barbosa Ferraz"},
33
+ {state: parana, ibge_code: 4106555, name: "Corumbataí do Sul"},
34
+ {state: parana, ibge_code: 4107553, name: "Farol"},
35
+ {state: parana, ibge_code: 4107702, name: "Fênix"},
36
+ {state: parana, ibge_code: 4114005, name: "Mamborê"},
37
+ {state: parana, ibge_code: 4118808, name: "Peabiru"},
38
+ {state: parana, ibge_code: 4122503, name: "Roncador"},
39
+ {state: parana, ibge_code: 4127205, name: "Terra Boa"},
40
+ {state: parana, ibge_code: 4102109, name: "Astorga"},
41
+ {state: parana, ibge_code: 4128708, name: "Vitorino"},
42
+ {state: parana, ibge_code: 4115739, name: "Mato Rico"},
43
+ {state: parana, ibge_code: 4117800, name: "Palmital"},
44
+ {state: parana, ibge_code: 4119608, name: "Pitanga"},
45
+ {state: parana, ibge_code: 4103958, name: "Campina do Simão"},
46
+ {state: parana, ibge_code: 4107546, name: "Espigão Alto do Iguaçu"},
47
+ {state: parana, ibge_code: 4108650, name: "Goioxim"},
48
+ {state: parana, ibge_code: 4109401, name: "Guarapuava"},
49
+ {state: parana, ibge_code: 4110201, name: "Inácio Martins"},
50
+ {state: parana, ibge_code: 4113304, name: "Laranjeiras do Sul"},
51
+ {state: parana, ibge_code: 4117057, name: "Nova Laranjeiras"},
52
+ {state: parana, ibge_code: 4120150, name: "Porto Barreiro"},
53
+ {state: parana, ibge_code: 4121752, name: "Reserva do Iguaçu"},
54
+ {state: parana, ibge_code: 4122156, name: "Rio Bonito do Iguaçu"},
55
+ {state: parana, ibge_code: 4127965, name: "Turvo"},
56
+ {state: parana, ibge_code: 4128658, name: "Virmond"},
57
+ {state: parana, ibge_code: 4105706, name: "Clevelândia"},
58
+ {state: parana, ibge_code: 4109658, name: "Honório Serpa"},
59
+ {state: parana, ibge_code: 4114401, name: "Mangueirinha"},
60
+ {state: parana, ibge_code: 4107736, name: "Fernandes Pinheiro"},
61
+ {state: parana, ibge_code: 4108957, name: "Guamiranga"},
62
+ {state: parana, ibge_code: 4111407, name: "Ivaí"},
63
+ {state: parana, ibge_code: 4120606, name: "Prudentópolis"},
64
+ {state: parana, ibge_code: 4110706, name: "Irati"},
65
+ {state: parana, ibge_code: 4113908, name: "Mallet"},
66
+ {state: parana, ibge_code: 4121505, name: "Rebouças"},
67
+ {state: parana, ibge_code: 4125704, name: "São Miguel do Iguaçu"},
68
+ {state: parana, ibge_code: 4126355, name: "Serranópolis do Iguaçu"},
69
+ {state: parana, ibge_code: 4128559, name: "Vera Cruz do Oeste"},
70
+ {state: parana, ibge_code: 4101002, name: "Ampére"},
71
+ {state: parana, ibge_code: 4102752, name: "Bela Vista da Caroba"},
72
+ {state: parana, ibge_code: 4104501, name: "Capanema"},
73
+ {state: parana, ibge_code: 4119806, name: "Planalto"},
74
+ {state: parana, ibge_code: 4121406, name: "Realeza"},
75
+ {state: parana, ibge_code: 4123808, name: "Santa Izabel do Oeste"},
76
+ {state: parana, ibge_code: 4102604, name: "Barracão"},
77
+ {state: parana, ibge_code: 4103024, name: "Boa Esperança do Iguaçu"},
78
+ {state: parana, ibge_code: 4103156, name: "Bom Jesus do Sul"},
79
+ {state: parana, ibge_code: 4106571, name: "Cruzeiro do Iguaçu"},
80
+ {state: parana, ibge_code: 4107207, name: "Dois Vizinhos"},
81
+ {state: parana, ibge_code: 4107405, name: "Enéas Marques"},
82
+ {state: parana, ibge_code: 4107850, name: "Flor da Serra do Sul"},
83
+ {state: parana, ibge_code: 4111506, name: "Ivaiporã"},
84
+ {state: parana, ibge_code: 4113429, name: "Lidianópolis"},
85
+ {state: parana, ibge_code: 4114500, name: "Manoel Ribas"},
86
+ {state: parana, ibge_code: 4122172, name: "Rio Branco do Ivaí"},
87
+ {state: parana, ibge_code: 4122651, name: "Rosário do Ivaí"},
88
+ {state: parana, ibge_code: 4125803, name: "São Pedro do Ivaí"},
89
+ {state: parana, ibge_code: 4117214, name: "Nova Santa Bárbara"},
90
+ {state: parana, ibge_code: 4124707, name: "São Jerônimo da Serra"},
91
+ {state: parana, ibge_code: 4126009, name: "São Sebastião da Amoreira"},
92
+ {state: parana, ibge_code: 4128401, name: "Uraí"},
93
+ {state: parana, ibge_code: 4101101, name: "Andirá"},
94
+ {state: parana, ibge_code: 4102406, name: "Bandeirantes"},
95
+ {state: parana, ibge_code: 4113403, name: "Leópolis"},
96
+ {state: parana, ibge_code: 4116604, name: "Nova América da Colina"},
97
+ {state: parana, ibge_code: 4123907, name: "Santa Mariana"},
98
+ {state: parana, ibge_code: 4124301, name: "Santo Antônio do Paraíso"},
99
+ {state: parana, ibge_code: 4102703, name: "Barra do Jacaré"},
100
+ {state: parana, ibge_code: 4111803, name: "Jacarezinho"},
101
+ {state: parana, ibge_code: 4112900, name: "Jundiaí do Sul"},
102
+ {state: parana, ibge_code: 4121802, name: "Ribeirão Claro"},
103
+ {state: parana, ibge_code: 4106100, name: "Conselheiro Mairinck"},
104
+ {state: parana, ibge_code: 4107009, name: "Curiúva"},
105
+ {state: parana, ibge_code: 4100608, name: "Alto Paraná"},
106
+ {state: parana, ibge_code: 4100905, name: "Amaporã"},
107
+ {state: parana, ibge_code: 4106704, name: "Cruzeiro do Sul"},
108
+ {state: parana, ibge_code: 4107108, name: "Diamante do Norte"},
109
+ {state: parana, ibge_code: 4108908, name: "Guairaçá"},
110
+ {state: parana, ibge_code: 4110300, name: "Inajá"},
111
+ {state: parana, ibge_code: 4111308, name: "Itaúna do Sul"},
112
+ {state: parana, ibge_code: 4113502, name: "Loanda"},
113
+ {state: parana, ibge_code: 4115002, name: "Marilena"},
114
+ {state: parana, ibge_code: 4115903, name: "Mirador"},
115
+ {state: parana, ibge_code: 4116505, name: "Nova Aliança do Ivaí"},
116
+ {state: parana, ibge_code: 4118006, name: "Paraíso do Norte"},
117
+ {state: parana, ibge_code: 4118105, name: "Paranacity"},
118
+ {state: parana, ibge_code: 4119707, name: "Planaltina do Paraná"},
119
+ {state: parana, ibge_code: 4120200, name: "Porto Rico"},
120
+ {state: parana, ibge_code: 4121000, name: "Querência do Norte"},
121
+ {state: parana, ibge_code: 4123303, name: "Santa Cruz de Monte Castelo"},
122
+ {state: parana, ibge_code: 4123709, name: "Santa Isabel do Ivaí"},
123
+ {state: parana, ibge_code: 4124202, name: "Santo Antônio do Caiuá"},
124
+ {state: parana, ibge_code: 4124608, name: "São Carlos do Ivaí"},
125
+ {state: parana, ibge_code: 4124905, name: "São João do Caiuá"},
126
+ {state: parana, ibge_code: 4126702, name: "Tamboara"},
127
+ {state: parana, ibge_code: 4127304, name: "Terra Rica"},
128
+ {state: parana, ibge_code: 4100509, name: "Altônia"},
129
+ {state: parana, ibge_code: 4100707, name: "Alto Piquiri"},
130
+ {state: parana, ibge_code: 4103370, name: "Brasilândia do Sul"},
131
+ {state: parana, ibge_code: 4103479, name: "Cafezal do Sul"},
132
+ {state: parana, ibge_code: 4106605, name: "Cruzeiro do Oeste"},
133
+ {state: parana, ibge_code: 4107256, name: "Douradina"},
134
+ {state: parana, ibge_code: 4107520, name: "Esperança Nova"},
135
+ {state: parana, ibge_code: 4108320, name: "Francisco Alves"},
136
+ {state: parana, ibge_code: 4110607, name: "Iporã"},
137
+ {state: parana, ibge_code: 4111555, name: "Ivaté"},
138
+ {state: parana, ibge_code: 4114708, name: "Maria Helena"},
139
+ {state: parana, ibge_code: 4115101, name: "Mariluz"},
140
+ {state: parana, ibge_code: 4117206, name: "Nova Olímpia"},
141
+ {state: parana, ibge_code: 4118857, name: "Perobal"},
142
+ {state: parana, ibge_code: 4118907, name: "Pérola"},
143
+ {state: parana, ibge_code: 4126900, name: "Tapira"},
144
+ {state: parana, ibge_code: 4128104, name: "Umuarama"},
145
+ {state: parana, ibge_code: 4128625, name: "Alto Paraíso"},
146
+ {state: parana, ibge_code: 4112405, name: "Japurá"},
147
+ {state: parana, ibge_code: 4109302, name: "Guaraniaçu"},
148
+ {state: parana, ibge_code: 4109757, name: "Ibema"},
149
+ {state: parana, ibge_code: 4110052, name: "Iguatu"},
150
+ {state: parana, ibge_code: 4113452, name: "Lindoeste"},
151
+ {state: parana, ibge_code: 4116703, name: "Nova Aurora"},
152
+ {state: parana, ibge_code: 4123824, name: "Santa Lúcia"},
153
+ {state: parana, ibge_code: 4124020, name: "Santa Tereza do Oeste"},
154
+ {state: parana, ibge_code: 4127858, name: "Três Barras do Paraná"},
155
+ {state: parana, ibge_code: 4105300, name: "Céu Azul"},
156
+ {state: parana, ibge_code: 4115606, name: "Matelândia"},
157
+ {state: parana, ibge_code: 4116059, name: "Missal"},
158
+ {state: parana, ibge_code: 4121257, name: "Ramilândia"},
159
+ {state: parana, ibge_code: 4122008, name: "Rio Azul"},
160
+ {state: parana, ibge_code: 4106803, name: "Cruz Machado"},
161
+ {state: parana, ibge_code: 4108502, name: "General Carneiro"},
162
+ {state: parana, ibge_code: 4120309, name: "Porto Vitória"},
163
+ {state: parana, ibge_code: 4101309, name: "Antônio Olinto"},
164
+ {state: parana, ibge_code: 4100202, name: "Adrianópolis"},
165
+ {state: parana, ibge_code: 4105201, name: "Cerro Azul"},
166
+ {state: parana, ibge_code: 4128633, name: "Doutor Ulysses"},
167
+ {state: parana, ibge_code: 4113205, name: "Lapa"},
168
+ {state: parana, ibge_code: 4120101, name: "Porto Amazonas"},
169
+ {state: parana, ibge_code: 4103404, name: "Cafeara"},
170
+ {state: parana, ibge_code: 4105102, name: "Centenário do Sul"},
171
+ {state: parana, ibge_code: 4108106, name: "Flórida"},
172
+ {state: parana, ibge_code: 4110003, name: "Iguaraçu"},
173
+ {state: parana, ibge_code: 4111902, name: "Jaguapitã"},
174
+ {state: parana, ibge_code: 4113601, name: "Lobato"},
175
+ {state: parana, ibge_code: 4116307, name: "Munhoz de Melo"},
176
+ {state: parana, ibge_code: 4116406, name: "Nossa Senhora das Graças"},
177
+ {state: parana, ibge_code: 4120408, name: "Presidente Castelo Branco"},
178
+ {state: parana, ibge_code: 4123600, name: "Santa Inês"},
179
+ {state: parana, ibge_code: 4124509, name: "Santo Inácio"},
180
+ {state: parana, ibge_code: 4128302, name: "Uniflor"},
181
+ {state: parana, ibge_code: 4108007, name: "Florestópolis"},
182
+ {state: parana, ibge_code: 4116000, name: "Miraselva"},
183
+ {state: parana, ibge_code: 4120002, name: "Porecatu"},
184
+ {state: parana, ibge_code: 4120507, name: "Primeiro de Maio"},
185
+ {state: parana, ibge_code: 4126504, name: "Sertanópolis"},
186
+ {state: parana, ibge_code: 4107801, name: "Floraí"},
187
+ {state: parana, ibge_code: 4111605, name: "Ivatuba"},
188
+ {state: parana, ibge_code: 4117404, name: "Ourizona"},
189
+ {state: parana, ibge_code: 4114807, name: "Marialva"},
190
+ {state: parana, ibge_code: 4115200, name: "Maringá"},
191
+ {state: parana, ibge_code: 4117503, name: "Paiçandu"},
192
+ {state: parana, ibge_code: 4126256, name: "Sarandi"},
193
+ {state: parana, ibge_code: 4101507, name: "Arapongas"},
194
+ {state: parana, ibge_code: 4103503, name: "Califórnia"},
195
+ {state: parana, ibge_code: 4103800, name: "Cambira"},
196
+ {state: parana, ibge_code: 4114906, name: "Marilândia do Sul"},
197
+ {state: parana, ibge_code: 4117297, name: "Novo Itacolomi"},
198
+ {state: parana, ibge_code: 4122701, name: "Sabáudia"},
199
+ {state: parana, ibge_code: 4109807, name: "Ibiporã"},
200
+ {state: parana, ibge_code: 4113700, name: "Londrina"},
201
+ {state: parana, ibge_code: 4126678, name: "Tamarana"},
202
+ {state: parana, ibge_code: 4103206, name: "Bom Sucesso"},
203
+ {state: parana, ibge_code: 4103305, name: "Borrazópolis"},
204
+ {state: parana, ibge_code: 4107603, name: "Faxinal"},
205
+ {state: parana, ibge_code: 4113106, name: "Kaloré"},
206
+ {state: parana, ibge_code: 4115507, name: "Marumbi"},
207
+ {state: parana, ibge_code: 4122107, name: "Rio Bom"},
208
+ {state: parana, ibge_code: 4101853, name: "Ariranha do Ivaí"},
209
+ {state: parana, ibge_code: 4104402, name: "Cândido de Abreu"},
210
+ {state: parana, ibge_code: 4108700, name: "Grandes Rios"},
211
+ {state: parana, ibge_code: 4102307, name: "Balsa Nova"},
212
+ {state: parana, ibge_code: 4103107, name: "Bocaiúva do Sul"},
213
+ {state: parana, ibge_code: 4104006, name: "Campina Grande do Sul"},
214
+ {state: parana, ibge_code: 4104204, name: "Campo Largo"},
215
+ {state: parana, ibge_code: 4105805, name: "Colombo"},
216
+ {state: parana, ibge_code: 4106209, name: "Contenda"},
217
+ {state: parana, ibge_code: 4106902, name: "Curitiba"},
218
+ {state: parana, ibge_code: 4111258, name: "Itaperuçu"},
219
+ {state: parana, ibge_code: 4114302, name: "Mandirituba"},
220
+ {state: parana, ibge_code: 4119152, name: "Pinhais"},
221
+ {state: parana, ibge_code: 4119509, name: "Piraquara"},
222
+ {state: parana, ibge_code: 4125506, name: "São José dos Pinhais"},
223
+ {state: parana, ibge_code: 4127882, name: "Tunas do Paraná"},
224
+ {state: parana, ibge_code: 4101200, name: "Antonina"},
225
+ {state: parana, ibge_code: 4109500, name: "Guaraqueçaba"},
226
+ {state: parana, ibge_code: 4109609, name: "Guaratuba"},
227
+ {state: parana, ibge_code: 4116208, name: "Morretes"},
228
+ {state: parana, ibge_code: 4119954, name: "Pontal do Paraná"},
229
+ {state: parana, ibge_code: 4104105, name: "Campo do Tenente"},
230
+ {state: parana, ibge_code: 4119103, name: "Piên"},
231
+ {state: parana, ibge_code: 4121208, name: "Quitandinha"},
232
+ {state: parana, ibge_code: 4122305, name: "Rio Negro"},
233
+ {state: parana, ibge_code: 4109708, name: "Ibaiti"},
234
+ {state: parana, ibge_code: 4112306, name: "Japira"},
235
+ {state: parana, ibge_code: 4126207, name: "Sapopema"},
236
+ {state: parana, ibge_code: 4104709, name: "Carlópolis"},
237
+ {state: parana, ibge_code: 4109005, name: "Guapirama"},
238
+ {state: parana, ibge_code: 4122909, name: "Salto do Itararé"},
239
+ {state: parana, ibge_code: 4124004, name: "Santana do Itararé"},
240
+ {state: parana, ibge_code: 4125407, name: "São José da Boa Vista"},
241
+ {state: parana, ibge_code: 4128500, name: "Wenceslau Braz"},
242
+ {state: parana, ibge_code: 4117305, name: "Ortigueira"},
243
+ {state: parana, ibge_code: 4127106, name: "Telêmaco Borba"},
244
+ {state: parana, ibge_code: 4127502, name: "Tibagi"},
245
+ {state: parana, ibge_code: 4128534, name: "Ventania"},
246
+ {state: parana, ibge_code: 4112009, name: "Jaguariaíva"},
247
+ {state: parana, ibge_code: 4119400, name: "Piraí do Sul"},
248
+ {state: parana, ibge_code: 4104907, name: "Castro"},
249
+ {state: parana, ibge_code: 4117701, name: "Palmeira"},
250
+ {state: parana, ibge_code: 4119905, name: "Ponta Grossa"},
251
+ {state: parana, ibge_code: 4107157, name: "Diamante D'Oeste"},
252
+ {state: parana, ibge_code: 4108205, name: "Formosa do Oeste"},
253
+ {state: parana, ibge_code: 4108809, name: "Guaíra"},
254
+ {state: parana, ibge_code: 4110656, name: "Iracema do Oeste"},
255
+ {state: parana, ibge_code: 4112751, name: "Jesuítas"},
256
+ {state: parana, ibge_code: 4115358, name: "Maripá"},
257
+ {state: parana, ibge_code: 4115853, name: "Mercedes"},
258
+ {state: parana, ibge_code: 4117222, name: "Nova Santa Rosa"},
259
+ {state: parana, ibge_code: 4117453, name: "Ouro Verde do Oeste"},
260
+ {state: parana, ibge_code: 4118451, name: "Pato Bragado"},
261
+ {state: parana, ibge_code: 4123501, name: "Santa Helena"},
262
+ {state: parana, ibge_code: 4125456, name: "São José das Palmeiras"},
263
+ {state: parana, ibge_code: 4125753, name: "São Pedro do Iguaçu"},
264
+ {state: parana, ibge_code: 4127403, name: "Terra Roxa"},
265
+ {state: parana, ibge_code: 4127957, name: "Tupãssi"},
266
+ {state: parana, ibge_code: 4101051, name: "Anahy"},
267
+ {state: parana, ibge_code: 4103057, name: "Boa Vista da Aparecida"},
268
+ {state: parana, ibge_code: 4103354, name: "Braganey"},
269
+ {state: parana, ibge_code: 4103453, name: "Cafelândia"},
270
+ {state: parana, ibge_code: 4104600, name: "Capitão Leônidas Marques"},
271
+ {state: parana, ibge_code: 4104808, name: "Cascavel"},
272
+ {state: parana, ibge_code: 4105003, name: "Catanduvas"},
273
+ {state: parana, ibge_code: 4106308, name: "Corbélia"},
274
+ {state: parana, ibge_code: 4107124, name: "Diamante do Sul"},
275
+ {state: parana, ibge_code: 4115804, name: "Medianeira"},
276
+ {state: parana, ibge_code: 4117008, name: "Nova Fátima"},
277
+ {state: parana, ibge_code: 4117107, name: "Nova Londrina"},
278
+ {state: parana, ibge_code: 4117255, name: "Nova Prata do Iguaçu"},
279
+ {state: parana, ibge_code: 4117602, name: "Palmas"},
280
+ {state: parana, ibge_code: 4118204, name: "Paranaguá"},
281
+ {state: parana, ibge_code: 4118303, name: "Paranapoema"},
282
+ {state: parana, ibge_code: 4118402, name: "Paranavaí"},
283
+ {state: parana, ibge_code: 4118600, name: "Paula Freitas"},
284
+ {state: parana, ibge_code: 4120705, name: "Quatiguá"},
285
+ {state: parana, ibge_code: 4120853, name: "Quatro Pontes"},
286
+ {state: parana, ibge_code: 4123105, name: "Santa Amélia"},
287
+ {state: parana, ibge_code: 4123204, name: "Santa Cecília do Pavão"},
288
+ {state: parana, ibge_code: 4123857, name: "Santa Maria do Oeste"},
289
+ {state: parana, ibge_code: 4124053, name: "Santa Terezinha de Itaipu"},
290
+ {state: parana, ibge_code: 4125308, name: "São Jorge do Ivaí"},
291
+ {state: parana, ibge_code: 4125357, name: "São Jorge do Patrocínio"},
292
+ {state: parana, ibge_code: 4125555, name: "São Manoel do Paraná"},
293
+ {state: parana, ibge_code: 4126306, name: "Sengés"},
294
+ {state: parana, ibge_code: 4126405, name: "Sertaneja"},
295
+ {state: parana, ibge_code: 4127700, name: "Toledo"},
296
+ {state: parana, ibge_code: 4127809, name: "Tomazina"},
297
+ {state: parana, ibge_code: 4119202, name: "Pinhalão"},
298
+ {state: parana, ibge_code: 4112801, name: "Joaquim Távora"},
299
+ {state: parana, ibge_code: 4126603, name: "Siqueira Campos"},
300
+ {state: parana, ibge_code: 4121703, name: "Reserva"},
301
+ {state: parana, ibge_code: 4101606, name: "Arapoti"},
302
+ {state: parana, ibge_code: 4104659, name: "Carambeí"},
303
+ {state: parana, ibge_code: 4102000, name: "Assis Chateaubriand"},
304
+ {state: parana, ibge_code: 4114351, name: "Manfrinópolis"},
305
+ {state: parana, ibge_code: 4119251, name: "Pinhal de São Bento"},
306
+ {state: parana, ibge_code: 4103222, name: "Bom Sucesso do Sul"},
307
+ {state: parana, ibge_code: 4118501, name: "Pato Branco"},
308
+ {state: parana, ibge_code: 4128807, name: "Xambrê"},
309
+ {state: parana, ibge_code: 4110409, name: "Indianópolis"},
310
+ {state: parana, ibge_code: 4103909, name: "Campina da Lagoa"},
311
+ {state: parana, ibge_code: 4120655, name: "Quarto Centenário"},
312
+ {state: parana, ibge_code: 4104303, name: "Campo Mourão"},
313
+ {state: parana, ibge_code: 4110805, name: "Iretama"},
314
+ {state: parana, ibge_code: 4121109, name: "Quinta do Sol"},
315
+ {state: parana, ibge_code: 4102208, name: "Atalaia"},
316
+ {state: parana, ibge_code: 4105904, name: "Colorado"},
317
+ {state: parana, ibge_code: 4110904, name: "Itaguajé"},
318
+ {state: parana, ibge_code: 4114104, name: "Mandaguaçu"},
319
+ {state: parana, ibge_code: 4123402, name: "Santa Fé"},
320
+ {state: parana, ibge_code: 4100806, name: "Alvorada do Sul"},
321
+ {state: parana, ibge_code: 4120333, name: "Prado Ferreira"},
322
+ {state: parana, ibge_code: 4107900, name: "Floresta"},
323
+ {state: parana, ibge_code: 4101408, name: "Apucarana"},
324
+ {state: parana, ibge_code: 4112108, name: "Jandaia do Sul"},
325
+ {state: parana, ibge_code: 4103701, name: "Cambé"},
326
+ {state: parana, ibge_code: 4122404, name: "Rolândia"},
327
+ {state: parana, ibge_code: 4106852, name: "Cruzmaltina"},
328
+ {state: parana, ibge_code: 4101655, name: "Arapuã"},
329
+ {state: parana, ibge_code: 4108551, name: "Godoy Moreira"},
330
+ {state: parana, ibge_code: 4113759, name: "Lunardelli"},
331
+ {state: parana, ibge_code: 4125001, name: "São João do Ivaí"},
332
+ {state: parana, ibge_code: 4121307, name: "Rancho Alegre"},
333
+ {state: parana, ibge_code: 4100103, name: "Abatiá"},
334
+ {state: parana, ibge_code: 4106407, name: "Cornélio Procópio"},
335
+ {state: parana, ibge_code: 4121901, name: "Ribeirão do Pinhal"},
336
+ {state: parana, ibge_code: 4103602, name: "Cambará"},
337
+ {state: parana, ibge_code: 4124103, name: "Santo Antônio da Platina"},
338
+ {state: parana, ibge_code: 4101804, name: "Araucária"},
339
+ {state: parana, ibge_code: 4108304, name: "Foz do Iguaçu"},
340
+ {state: parana, ibge_code: 4120358, name: "Pranchita"},
341
+ {state: parana, ibge_code: 4121604, name: "Renascença"},
342
+ {state: parana, ibge_code: 4113254, name: "Laranjal"},
343
+ {state: parana, ibge_code: 4119301, name: "Pinhão"},
344
+ {state: parana, ibge_code: 4110508, name: "Ipiranga"},
345
+ {state: parana, ibge_code: 4125100, name: "São João do Triunfo"},
346
+ {state: parana, ibge_code: 4120804, name: "Quatro Barras"},
347
+ {state: parana, ibge_code: 4119004, name: "Pérola d'Oeste"},
348
+ {state: parana, ibge_code: 4104451, name: "Cantagalo"},
349
+ {state: parana, ibge_code: 4128203, name: "União da Vitória"},
350
+ {state: parana, ibge_code: 4112603, name: "Jardim Olinda"},
351
+ {state: parana, ibge_code: 4123956, name: "Santa Mônica"},
352
+ {state: parana, ibge_code: 4109906, name: "Icaraíma"},
353
+ {state: parana, ibge_code: 4105607, name: "Cidade Gaúcha"},
354
+ {state: parana, ibge_code: 4128005, name: "Ubiratã"},
355
+ {state: parana, ibge_code: 4101150, name: "Ângulo"},
356
+ {state: parana, ibge_code: 4116901, name: "Nova Esperança"},
357
+ {state: parana, ibge_code: 4114203, name: "Mandaguari"},
358
+ {state: parana, ibge_code: 4119657, name: "Pitangueiras"},
359
+ {state: parana, ibge_code: 4117271, name: "Nova Tebas"},
360
+ {state: parana, ibge_code: 4111001, name: "Itambaracá"},
361
+ {state: parana, ibge_code: 4107751, name: "Figueira"},
362
+ {state: parana, ibge_code: 4110078, name: "Imbaú"},
363
+ {state: parana, ibge_code: 4107538, name: "Entre Rios do Oeste"},
364
+ {state: parana, ibge_code: 4117909, name: "Palotina"},
365
+ {state: parana, ibge_code: 4104055, name: "Campo Bonito"},
366
+ {state: parana, ibge_code: 4103040, name: "Boa Ventura de São Roque"},
367
+ {state: parana, ibge_code: 4104428, name: "Candói"},
368
+ {state: parana, ibge_code: 4108452, name: "Foz do Jordão"},
369
+ {state: parana, ibge_code: 4115457, name: "Marquinho"},
370
+ {state: parana, ibge_code: 4120903, name: "Quedas do Iguaçu"},
371
+ {state: parana, ibge_code: 4106456, name: "Coronel Domingos Soares"},
372
+ {state: parana, ibge_code: 4110102, name: "Imbituva"},
373
+ {state: parana, ibge_code: 4127007, name: "Teixeira Soares"},
374
+ {state: parana, ibge_code: 4102901, name: "Bituruna"},
375
+ {state: parana, ibge_code: 4118709, name: "Paulo Frontin"},
376
+ {state: parana, ibge_code: 4125605, name: "São Mateus do Sul"},
377
+ {state: parana, ibge_code: 4100400, name: "Almirante Tamandaré"},
378
+ {state: parana, ibge_code: 4104253, name: "Campo Magro"},
379
+ {state: parana, ibge_code: 4107652, name: "Fazenda Rio Grande"},
380
+ {state: parana, ibge_code: 4122206, name: "Rio Branco do Sul"},
381
+ {state: parana, ibge_code: 4115705, name: "Matinhos"},
382
+ {state: parana, ibge_code: 4100301, name: "Agudos do Sul"},
383
+ {state: parana, ibge_code: 4127601, name: "Tijucas do Sul"},
384
+ {state: parana, ibge_code: 4125902, name: "São Pedro do Paraná"},
385
+ {state: parana, ibge_code: 4101705, name: "Araruna"},
386
+ {state: parana, ibge_code: 4102802, name: "Bela Vista do Paraíso"},
387
+ {state: parana, ibge_code: 4101903, name: "Assaí"},
388
+ {state: parana, ibge_code: 4111704, name: "Jaboti"},
389
+ {state: parana, ibge_code: 4114609, name: "Marechal Cândido Rondon"},
390
+ {state: parana, ibge_code: 4105508, name: "Cianorte"},
391
+ {state: parana, ibge_code: 4106001, name: "Congonhinhas"},
392
+ {state: parana, ibge_code: 4107306, name: "Doutor Camargo"},
393
+ {state: parana, ibge_code: 4107504, name: "Engenheiro Beltrão"},
394
+ {state: parana, ibge_code: 4109104, name: "Guaporema"},
395
+ {state: parana, ibge_code: 4109203, name: "Guaraci"},
396
+ {state: parana, ibge_code: 4110953, name: "Itaipulândia"},
397
+ {state: parana, ibge_code: 4111100, name: "Itambé"},
398
+ {state: parana, ibge_code: 4112504, name: "Jardim Alegre"},
399
+ {state: parana, ibge_code: 4112702, name: "Jataizinho"},
400
+ {state: parana, ibge_code: 4113734, name: "Luiziana"},
401
+ {state: parana, ibge_code: 4113809, name: "Lupionópolis"},
402
+ {state: parana, ibge_code: 4115754, name: "Mauá da Serra"}
403
+ ])
@@ -0,0 +1,189 @@
1
+ pernambuco = Spree::State.find_by! abbr: 'PE'
2
+
3
+ Spree::City.create!([
4
+ {state: pernambuco, ibge_code: 2603009, name: "Cabrobó"},
5
+ {state: pernambuco, ibge_code: 2605152, name: "Dormentes"},
6
+ {state: pernambuco, ibge_code: 2608750, name: "Lagoa Grande"},
7
+ {state: pernambuco, ibge_code: 2609808, name: "Orocó"},
8
+ {state: pernambuco, ibge_code: 2612604, name: "Santa Maria da Boa Vista"},
9
+ {state: pernambuco, ibge_code: 2615201, name: "Terra Nova"},
10
+ {state: pernambuco, ibge_code: 2601607, name: "Belém de São Francisco"},
11
+ {state: pernambuco, ibge_code: 2603926, name: "Carnaubeira da Penha"},
12
+ {state: pernambuco, ibge_code: 2607406, name: "Itacuruba"},
13
+ {state: pernambuco, ibge_code: 2608057, name: "Jatobá"},
14
+ {state: pernambuco, ibge_code: 2611002, name: "Petrolândia"},
15
+ {state: pernambuco, ibge_code: 2614808, name: "Tacaratu"},
16
+ {state: pernambuco, ibge_code: 2600500, name: "Águas Belas"},
17
+ {state: pernambuco, ibge_code: 2602803, name: "Buíque"},
18
+ {state: pernambuco, ibge_code: 2607505, name: "Itaíba"},
19
+ {state: pernambuco, ibge_code: 2610806, name: "Pedra"},
20
+ {state: pernambuco, ibge_code: 2615805, name: "Tupanatinga"},
21
+ {state: pernambuco, ibge_code: 2616001, name: "Venturosa"},
22
+ {state: pernambuco, ibge_code: 2600609, name: "Alagoinha"},
23
+ {state: pernambuco, ibge_code: 2601706, name: "Belo Jardim"},
24
+ {state: pernambuco, ibge_code: 2602605, name: "Brejo da Madre de Deus"},
25
+ {state: pernambuco, ibge_code: 2603108, name: "Cachoeirinha"},
26
+ {state: pernambuco, ibge_code: 2603801, name: "Capoeiras"},
27
+ {state: pernambuco, ibge_code: 2604106, name: "Caruaru"},
28
+ {state: pernambuco, ibge_code: 2606408, name: "Gravatá"},
29
+ {state: pernambuco, ibge_code: 2608008, name: "Jataúba"},
30
+ {state: pernambuco, ibge_code: 2610905, name: "Pesqueira"},
31
+ {state: pernambuco, ibge_code: 2611200, name: "Poção"},
32
+ {state: pernambuco, ibge_code: 2611705, name: "Riacho das Almas"},
33
+ {state: pernambuco, ibge_code: 2612406, name: "Sanharó"},
34
+ {state: pernambuco, ibge_code: 2613008, name: "São Bento do Una"},
35
+ {state: pernambuco, ibge_code: 2604155, name: "Casinhas"},
36
+ {state: pernambuco, ibge_code: 2605806, name: "Frei Miguelinho"},
37
+ {state: pernambuco, ibge_code: 2612505, name: "Santa Cruz do Capibaribe"},
38
+ {state: pernambuco, ibge_code: 2612703, name: "Santa Maria do Cambucá"},
39
+ {state: pernambuco, ibge_code: 2614501, name: "Surubim"},
40
+ {state: pernambuco, ibge_code: 2615003, name: "Taquaritinga do Norte"},
41
+ {state: pernambuco, ibge_code: 2615409, name: "Toritama"},
42
+ {state: pernambuco, ibge_code: 2616183, name: "Vertente do Lério"},
43
+ {state: pernambuco, ibge_code: 2616209, name: "Vertentes"},
44
+ {state: pernambuco, ibge_code: 2602209, name: "Bom Jardim"},
45
+ {state: pernambuco, ibge_code: 2604908, name: "Cumaru"},
46
+ {state: pernambuco, ibge_code: 2605400, name: "Feira Nova"},
47
+ {state: pernambuco, ibge_code: 2608909, name: "Limoeiro"},
48
+ {state: pernambuco, ibge_code: 2609105, name: "Machados"},
49
+ {state: pernambuco, ibge_code: 2609709, name: "Orobó"},
50
+ {state: pernambuco, ibge_code: 2601102, name: "Araripina"},
51
+ {state: pernambuco, ibge_code: 2605301, name: "Exu"},
52
+ {state: pernambuco, ibge_code: 2607307, name: "Ipubi"},
53
+ {state: pernambuco, ibge_code: 2612455, name: "Santa Cruz"},
54
+ {state: pernambuco, ibge_code: 2614303, name: "Moreilândia"},
55
+ {state: pernambuco, ibge_code: 2615607, name: "Trindade"},
56
+ {state: pernambuco, ibge_code: 2604304, name: "Cedro"},
57
+ {state: pernambuco, ibge_code: 2609303, name: "Mirandiba"},
58
+ {state: pernambuco, ibge_code: 2612208, name: "Salgueiro"},
59
+ {state: pernambuco, ibge_code: 2613503, name: "São José do Belmonte"},
60
+ {state: pernambuco, ibge_code: 2614006, name: "Serrita"},
61
+ {state: pernambuco, ibge_code: 2603504, name: "Camocim de São Félix"},
62
+ {state: pernambuco, ibge_code: 2605004, name: "Cupira"},
63
+ {state: pernambuco, ibge_code: 2606705, name: "Ibirajuba"},
64
+ {state: pernambuco, ibge_code: 2612000, name: "Sairé"},
65
+ {state: pernambuco, ibge_code: 2613305, name: "São Joaquim do Monte"},
66
+ {state: pernambuco, ibge_code: 2600708, name: "Aliança"},
67
+ {state: pernambuco, ibge_code: 2603603, name: "Camutanga"},
68
+ {state: pernambuco, ibge_code: 2604007, name: "Carpina"},
69
+ {state: pernambuco, ibge_code: 2604601, name: "Condado"},
70
+ {state: pernambuco, ibge_code: 2606200, name: "Goiana"},
71
+ {state: pernambuco, ibge_code: 2607653, name: "Itambé"},
72
+ {state: pernambuco, ibge_code: 2607802, name: "Itaquitinga"},
73
+ {state: pernambuco, ibge_code: 2608453, name: "Lagoa do Carro"},
74
+ {state: pernambuco, ibge_code: 2609006, name: "Macaparana"},
75
+ {state: pernambuco, ibge_code: 2609501, name: "Nazaré da Mata"},
76
+ {state: pernambuco, ibge_code: 2610608, name: "Paudalho"},
77
+ {state: pernambuco, ibge_code: 2615300, name: "Timbaúba"},
78
+ {state: pernambuco, ibge_code: 2616308, name: "Vicência"},
79
+ {state: pernambuco, ibge_code: 2604403, name: "Chã de Alegria"},
80
+ {state: pernambuco, ibge_code: 2611309, name: "Pombos"},
81
+ {state: pernambuco, ibge_code: 2600401, name: "Água Preta"},
82
+ {state: pernambuco, ibge_code: 2600906, name: "Amaraji"},
83
+ {state: pernambuco, ibge_code: 2601409, name: "Barreiros"},
84
+ {state: pernambuco, ibge_code: 2604205, name: "Catende"},
85
+ {state: pernambuco, ibge_code: 2604809, name: "Cortês"},
86
+ {state: pernambuco, ibge_code: 2605202, name: "Escada"},
87
+ {state: pernambuco, ibge_code: 2605905, name: "Gameleira"},
88
+ {state: pernambuco, ibge_code: 2608206, name: "Joaquim Nabuco"},
89
+ {state: pernambuco, ibge_code: 2609204, name: "Maraial"},
90
+ {state: pernambuco, ibge_code: 2610004, name: "Palmares"},
91
+ {state: pernambuco, ibge_code: 2611507, name: "Quipapá"},
92
+ {state: pernambuco, ibge_code: 2611903, name: "Rio Formoso"},
93
+ {state: pernambuco, ibge_code: 2613404, name: "São José da Coroa Grande"},
94
+ {state: pernambuco, ibge_code: 2614204, name: "Sirinhaém"},
95
+ {state: pernambuco, ibge_code: 2614857, name: "Tamandaré"},
96
+ {state: pernambuco, ibge_code: 2616506, name: "Xexéu"},
97
+ {state: pernambuco, ibge_code: 2601052, name: "Araçoiaba"},
98
+ {state: pernambuco, ibge_code: 2607604, name: "Ilha de Itamaracá"},
99
+ {state: pernambuco, ibge_code: 2607752, name: "Itapissuma"},
100
+ {state: pernambuco, ibge_code: 2600054, name: "Abreu e Lima"},
101
+ {state: pernambuco, ibge_code: 2607901, name: "Jaboatão dos Guararapes"},
102
+ {state: pernambuco, ibge_code: 2609402, name: "Moreno"},
103
+ {state: pernambuco, ibge_code: 2609600, name: "Olinda"},
104
+ {state: pernambuco, ibge_code: 2613701, name: "São Lourenço da Mata"},
105
+ {state: pernambuco, ibge_code: 2602902, name: "Cabo de Santo Agostinho"},
106
+ {state: pernambuco, ibge_code: 2605459, name: "Fernando de Noronha"},
107
+ {state: pernambuco, ibge_code: 2602506, name: "Brejinho"},
108
+ {state: pernambuco, ibge_code: 2603405, name: "Calumbi"},
109
+ {state: pernambuco, ibge_code: 2603900, name: "Carnaíba"},
110
+ {state: pernambuco, ibge_code: 2605608, name: "Flores"},
111
+ {state: pernambuco, ibge_code: 2606903, name: "Iguaraci"},
112
+ {state: pernambuco, ibge_code: 2607703, name: "Itapetim"},
113
+ {state: pernambuco, ibge_code: 2611533, name: "Quixaba"},
114
+ {state: pernambuco, ibge_code: 2612471, name: "Santa Cruz da Baixa Verde"},
115
+ {state: pernambuco, ibge_code: 2613602, name: "São José do Egito"},
116
+ {state: pernambuco, ibge_code: 2613909, name: "Serra Talhada"},
117
+ {state: pernambuco, ibge_code: 2614402, name: "Solidão"},
118
+ {state: pernambuco, ibge_code: 2614600, name: "Tabira"},
119
+ {state: pernambuco, ibge_code: 2615904, name: "Tuparetama"},
120
+ {state: pernambuco, ibge_code: 2601805, name: "Betânia"},
121
+ {state: pernambuco, ibge_code: 2606606, name: "Ibimirim"},
122
+ {state: pernambuco, ibge_code: 2607000, name: "Inajá"},
123
+ {state: pernambuco, ibge_code: 2609154, name: "Manari"},
124
+ {state: pernambuco, ibge_code: 2600203, name: "Afrânio"},
125
+ {state: pernambuco, ibge_code: 2602001, name: "Bodocó"},
126
+ {state: pernambuco, ibge_code: 2616100, name: "Verdejante"},
127
+ {state: pernambuco, ibge_code: 2601201, name: "Arcoverde"},
128
+ {state: pernambuco, ibge_code: 2605707, name: "Floresta"},
129
+ {state: pernambuco, ibge_code: 2601904, name: "Bezerros"},
130
+ {state: pernambuco, ibge_code: 2614709, name: "Tacaimbó"},
131
+ {state: pernambuco, ibge_code: 2608107, name: "João Alfredo"},
132
+ {state: pernambuco, ibge_code: 2608404, name: "Jurema"},
133
+ {state: pernambuco, ibge_code: 2608701, name: "Lagoa dos Gatos"},
134
+ {state: pernambuco, ibge_code: 2604502, name: "Chã Grande"},
135
+ {state: pernambuco, ibge_code: 2611804, name: "Ribeirão"},
136
+ {state: pernambuco, ibge_code: 2611606, name: "Recife"},
137
+ {state: pernambuco, ibge_code: 2609907, name: "Ouricuri"},
138
+ {state: pernambuco, ibge_code: 2611101, name: "Petrolina"},
139
+ {state: pernambuco, ibge_code: 2613107, name: "São Caitano"},
140
+ {state: pernambuco, ibge_code: 2612307, name: "Saloá"},
141
+ {state: pernambuco, ibge_code: 2616407, name: "Vitória de Santo Antão"},
142
+ {state: pernambuco, ibge_code: 2600104, name: "Afogados da Ingazeira"},
143
+ {state: pernambuco, ibge_code: 2607109, name: "Ingazeira"},
144
+ {state: pernambuco, ibge_code: 2612802, name: "Santa Terezinha"},
145
+ {state: pernambuco, ibge_code: 2615706, name: "Triunfo"},
146
+ {state: pernambuco, ibge_code: 2605103, name: "Custódia"},
147
+ {state: pernambuco, ibge_code: 2614105, name: "Sertânia"},
148
+ {state: pernambuco, ibge_code: 2602407, name: "Brejão"},
149
+ {state: pernambuco, ibge_code: 2604700, name: "Correntes"},
150
+ {state: pernambuco, ibge_code: 2608305, name: "Jupi"},
151
+ {state: pernambuco, ibge_code: 2608800, name: "Lajedo"},
152
+ {state: pernambuco, ibge_code: 2613206, name: "São João"},
153
+ {state: pernambuco, ibge_code: 2601300, name: "Barra de Guabiraba"},
154
+ {state: pernambuco, ibge_code: 2610202, name: "Panelas"},
155
+ {state: pernambuco, ibge_code: 2602704, name: "Buenos Aires"},
156
+ {state: pernambuco, ibge_code: 2605509, name: "Ferreiros"},
157
+ {state: pernambuco, ibge_code: 2608503, name: "Lagoa do Itaenga"},
158
+ {state: pernambuco, ibge_code: 2615508, name: "Tracunhaém"},
159
+ {state: pernambuco, ibge_code: 2606101, name: "Glória do Goitá"},
160
+ {state: pernambuco, ibge_code: 2601508, name: "Belém de Maria"},
161
+ {state: pernambuco, ibge_code: 2607950, name: "Jaqueira"},
162
+ {state: pernambuco, ibge_code: 2611408, name: "Primavera"},
163
+ {state: pernambuco, ibge_code: 2612901, name: "São Benedito do Sul"},
164
+ {state: pernambuco, ibge_code: 2606804, name: "Igarassu"},
165
+ {state: pernambuco, ibge_code: 2603454, name: "Camaragibe"},
166
+ {state: pernambuco, ibge_code: 2610707, name: "Paulista"},
167
+ {state: pernambuco, ibge_code: 2607208, name: "Ipojuca"},
168
+ {state: pernambuco, ibge_code: 2606309, name: "Granito"},
169
+ {state: pernambuco, ibge_code: 2612554, name: "Santa Filomena"},
170
+ {state: pernambuco, ibge_code: 2610400, name: "Parnamirim"},
171
+ {state: pernambuco, ibge_code: 2610509, name: "Passira"},
172
+ {state: pernambuco, ibge_code: 2612109, name: "Salgadinho"},
173
+ {state: pernambuco, ibge_code: 2613800, name: "São Vicente Ferrer"},
174
+ {state: pernambuco, ibge_code: 2601003, name: "Angelim"},
175
+ {state: pernambuco, ibge_code: 2602100, name: "Bom Conselho"},
176
+ {state: pernambuco, ibge_code: 2603207, name: "Caetés"},
177
+ {state: pernambuco, ibge_code: 2603306, name: "Calçado"},
178
+ {state: pernambuco, ibge_code: 2603702, name: "Canhotinho"},
179
+ {state: pernambuco, ibge_code: 2606002, name: "Garanhuns"},
180
+ {state: pernambuco, ibge_code: 2606507, name: "Iati"},
181
+ {state: pernambuco, ibge_code: 2608255, name: "Jucati"},
182
+ {state: pernambuco, ibge_code: 2608602, name: "Lagoa do Ouro"},
183
+ {state: pernambuco, ibge_code: 2610103, name: "Palmeirina"},
184
+ {state: pernambuco, ibge_code: 2610301, name: "Paranatama"},
185
+ {state: pernambuco, ibge_code: 2615102, name: "Terezinha"},
186
+ {state: pernambuco, ibge_code: 2600302, name: "Agrestina"},
187
+ {state: pernambuco, ibge_code: 2600807, name: "Altinho"},
188
+ {state: pernambuco, ibge_code: 2602308, name: "Bonito"}
189
+ ])