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,145 @@
1
+ mato_grosso = Spree::State.find_by! abbr: 'MT'
2
+
3
+ Spree::City.create!([
4
+ {state: mato_grosso, ibge_code: 5108352, name: "Vale de São Domingos"},
5
+ {state: mato_grosso, ibge_code: 5101704, name: "Barra do Bugres"},
6
+ {state: mato_grosso, ibge_code: 5103452, name: "Denise"},
7
+ {state: mato_grosso, ibge_code: 5106232, name: "Nova Olímpia"},
8
+ {state: mato_grosso, ibge_code: 5107958, name: "Tangará da Serra"},
9
+ {state: mato_grosso, ibge_code: 5101258, name: "Araputanga"},
10
+ {state: mato_grosso, ibge_code: 5103809, name: "Figueirópolis D'Oeste"},
11
+ {state: mato_grosso, ibge_code: 5103957, name: "Glória D'Oeste"},
12
+ {state: mato_grosso, ibge_code: 5101407, name: "Aripuanã"},
13
+ {state: mato_grosso, ibge_code: 5101902, name: "Brasnorte"},
14
+ {state: mato_grosso, ibge_code: 5103254, name: "Colniza"},
15
+ {state: mato_grosso, ibge_code: 5103379, name: "Cotriguaçu"},
16
+ {state: mato_grosso, ibge_code: 5105150, name: "Juína"},
17
+ {state: mato_grosso, ibge_code: 5100607, name: "Alto Taquari"},
18
+ {state: mato_grosso, ibge_code: 5108956, name: "Nova Monte Verde"},
19
+ {state: mato_grosso, ibge_code: 5104526, name: "Ipiranga do Norte"},
20
+ {state: mato_grosso, ibge_code: 5102694, name: "Canabrava do Norte"},
21
+ {state: mato_grosso, ibge_code: 5103106, name: "Cocalinho"},
22
+ {state: mato_grosso, ibge_code: 5105234, name: "Lambari D'Oeste"},
23
+ {state: mato_grosso, ibge_code: 5103437, name: "Curvelândia"},
24
+ {state: mato_grosso, ibge_code: 5107297, name: "São José do Povo"},
25
+ {state: mato_grosso, ibge_code: 5105176, name: "Juruena"},
26
+ {state: mato_grosso, ibge_code: 5100250, name: "Alta Floresta"},
27
+ {state: mato_grosso, ibge_code: 5100805, name: "Apiacás"},
28
+ {state: mato_grosso, ibge_code: 5102793, name: "Carlinda"},
29
+ {state: mato_grosso, ibge_code: 5106299, name: "Paranaíta"},
30
+ {state: mato_grosso, ibge_code: 5103205, name: "Colíder"},
31
+ {state: mato_grosso, ibge_code: 5104104, name: "Guarantã do Norte"},
32
+ {state: mato_grosso, ibge_code: 5105606, name: "Matupá"},
33
+ {state: mato_grosso, ibge_code: 5106265, name: "Novo Mundo"},
34
+ {state: mato_grosso, ibge_code: 5106422, name: "Peixoto de Azevedo"},
35
+ {state: mato_grosso, ibge_code: 5108055, name: "Terra Nova do Norte"},
36
+ {state: mato_grosso, ibge_code: 5108808, name: "Nova Guarita"},
37
+ {state: mato_grosso, ibge_code: 5102637, name: "Campo Novo do Parecis"},
38
+ {state: mato_grosso, ibge_code: 5103304, name: "Comodoro"},
39
+ {state: mato_grosso, ibge_code: 5107875, name: "Sapezal"},
40
+ {state: mato_grosso, ibge_code: 5105101, name: "Juara"},
41
+ {state: mato_grosso, ibge_code: 5106802, name: "Porto dos Gaúchos"},
42
+ {state: mato_grosso, ibge_code: 5107305, name: "São José do Rio Claro"},
43
+ {state: mato_grosso, ibge_code: 5107941, name: "Tabaporã"},
44
+ {state: mato_grosso, ibge_code: 5108907, name: "Nova Maringá"},
45
+ {state: mato_grosso, ibge_code: 5105259, name: "Lucas do Rio Verde"},
46
+ {state: mato_grosso, ibge_code: 5105903, name: "Nobres"},
47
+ {state: mato_grosso, ibge_code: 5106224, name: "Nova Mutum"},
48
+ {state: mato_grosso, ibge_code: 5107768, name: "Santa Rita do Trivelato"},
49
+ {state: mato_grosso, ibge_code: 5107925, name: "Sorriso"},
50
+ {state: mato_grosso, ibge_code: 5108006, name: "Tapurah"},
51
+ {state: mato_grosso, ibge_code: 5103056, name: "Cláudia"},
52
+ {state: mato_grosso, ibge_code: 5104559, name: "Itaúba"},
53
+ {state: mato_grosso, ibge_code: 5105580, name: "Marcelândia"},
54
+ {state: mato_grosso, ibge_code: 5106190, name: "Nova Santa Helena"},
55
+ {state: mato_grosso, ibge_code: 5107248, name: "Santa Carmem"},
56
+ {state: mato_grosso, ibge_code: 5108303, name: "União do Sul"},
57
+ {state: mato_grosso, ibge_code: 5108501, name: "Vera"},
58
+ {state: mato_grosso, ibge_code: 5106208, name: "Nova Brasilândia"},
59
+ {state: mato_grosso, ibge_code: 5106307, name: "Paranatinga"},
60
+ {state: mato_grosso, ibge_code: 5106455, name: "Planalto da Serra"},
61
+ {state: mato_grosso, ibge_code: 5100359, name: "Alto Boa Vista"},
62
+ {state: mato_grosso, ibge_code: 5103353, name: "Confresa"},
63
+ {state: mato_grosso, ibge_code: 5105309, name: "Luciára"},
64
+ {state: mato_grosso, ibge_code: 5106315, name: "Novo Santo Antônio"},
65
+ {state: mato_grosso, ibge_code: 5106778, name: "Porto Alegre do Norte"},
66
+ {state: mato_grosso, ibge_code: 5107354, name: "São José do Xingu"},
67
+ {state: mato_grosso, ibge_code: 5107743, name: "Santa Cruz do Xingu"},
68
+ {state: mato_grosso, ibge_code: 5107859, name: "São Félix do Araguaia"},
69
+ {state: mato_grosso, ibge_code: 5107883, name: "Serra Nova Dourada"},
70
+ {state: mato_grosso, ibge_code: 5108600, name: "Vila Rica"},
71
+ {state: mato_grosso, ibge_code: 5102603, name: "Campinápolis"},
72
+ {state: mato_grosso, ibge_code: 5102702, name: "Canarana"},
73
+ {state: mato_grosso, ibge_code: 5106174, name: "Nova Nazaré"},
74
+ {state: mato_grosso, ibge_code: 5106281, name: "Novo São Joaquim"},
75
+ {state: mato_grosso, ibge_code: 5107065, name: "Querência"},
76
+ {state: mato_grosso, ibge_code: 5107792, name: "Santo Antônio do Leste"},
77
+ {state: mato_grosso, ibge_code: 5101001, name: "Araguaiana"},
78
+ {state: mato_grosso, ibge_code: 5103361, name: "Conquista D'Oeste"},
79
+ {state: mato_grosso, ibge_code: 5105507, name: "Vila Bela da Santíssima Trindade"},
80
+ {state: mato_grosso, ibge_code: 5106182, name: "Nova Lacerda"},
81
+ {state: mato_grosso, ibge_code: 5103502, name: "Diamantino"},
82
+ {state: mato_grosso, ibge_code: 5107776, name: "Santa Terezinha"},
83
+ {state: mato_grosso, ibge_code: 5103007, name: "Chapada dos Guimarães"},
84
+ {state: mato_grosso, ibge_code: 5102850, name: "Castanheira"},
85
+ {state: mato_grosso, ibge_code: 5107578, name: "Rondolândia"},
86
+ {state: mato_grosso, ibge_code: 5106158, name: "Nova Bandeirantes"},
87
+ {state: mato_grosso, ibge_code: 5106216, name: "Nova Canaã do Norte"},
88
+ {state: mato_grosso, ibge_code: 5102686, name: "Campos de Júlio"},
89
+ {state: mato_grosso, ibge_code: 5106273, name: "Novo Horizonte do Norte"},
90
+ {state: mato_grosso, ibge_code: 5104542, name: "Itanhangá"},
91
+ {state: mato_grosso, ibge_code: 5106240, name: "Nova Ubiratã"},
92
+ {state: mato_grosso, ibge_code: 5103700, name: "Feliz Natal"},
93
+ {state: mato_grosso, ibge_code: 5107909, name: "Sinop"},
94
+ {state: mato_grosso, ibge_code: 5103858, name: "Gaúcha do Norte"},
95
+ {state: mato_grosso, ibge_code: 5101852, name: "Bom Jesus do Araguaia"},
96
+ {state: mato_grosso, ibge_code: 5107180, name: "Ribeirão Cascalheira"},
97
+ {state: mato_grosso, ibge_code: 5100201, name: "Água Boa"},
98
+ {state: mato_grosso, ibge_code: 5106257, name: "Nova Xavantina"},
99
+ {state: mato_grosso, ibge_code: 5101803, name: "Barra do Garças"},
100
+ {state: mato_grosso, ibge_code: 5106752, name: "Pontes e Lacerda"},
101
+ {state: mato_grosso, ibge_code: 5106851, name: "Porto Estrela"},
102
+ {state: mato_grosso, ibge_code: 5104500, name: "Indiavaí"},
103
+ {state: mato_grosso, ibge_code: 5106828, name: "Porto Esperidião"},
104
+ {state: mato_grosso, ibge_code: 5100508, name: "Alto Paraguai"},
105
+ {state: mato_grosso, ibge_code: 5100102, name: "Acorizal"},
106
+ {state: mato_grosso, ibge_code: 5103403, name: "Cuiabá"},
107
+ {state: mato_grosso, ibge_code: 5101605, name: "Barão de Melgaço"},
108
+ {state: mato_grosso, ibge_code: 5107040, name: "Primavera do Leste"},
109
+ {state: mato_grosso, ibge_code: 5107008, name: "Poxoréo"},
110
+ {state: mato_grosso, ibge_code: 5103601, name: "Dom Aquino"},
111
+ {state: mato_grosso, ibge_code: 5106372, name: "Pedra Preta"},
112
+ {state: mato_grosso, ibge_code: 5100409, name: "Alto Garças"},
113
+ {state: mato_grosso, ibge_code: 5105002, name: "Jauru"},
114
+ {state: mato_grosso, ibge_code: 5105622, name: "Mirassol d'Oeste"},
115
+ {state: mato_grosso, ibge_code: 5107107, name: "São José dos Quatro Marcos"},
116
+ {state: mato_grosso, ibge_code: 5107156, name: "Reserva do Cabaçal"},
117
+ {state: mato_grosso, ibge_code: 5107206, name: "Rio Branco"},
118
+ {state: mato_grosso, ibge_code: 5107750, name: "Salto do Céu"},
119
+ {state: mato_grosso, ibge_code: 5101308, name: "Arenápolis"},
120
+ {state: mato_grosso, ibge_code: 5106000, name: "Nortelândia"},
121
+ {state: mato_grosso, ibge_code: 5107263, name: "Santo Afonso"},
122
+ {state: mato_grosso, ibge_code: 5108857, name: "Nova Marilândia"},
123
+ {state: mato_grosso, ibge_code: 5104906, name: "Jangada"},
124
+ {state: mato_grosso, ibge_code: 5107701, name: "Rosário Oeste"},
125
+ {state: mato_grosso, ibge_code: 5106109, name: "Nossa Senhora do Livramento"},
126
+ {state: mato_grosso, ibge_code: 5107800, name: "Santo Antônio do Leverger"},
127
+ {state: mato_grosso, ibge_code: 5108402, name: "Várzea Grande"},
128
+ {state: mato_grosso, ibge_code: 5102504, name: "Cáceres"},
129
+ {state: mato_grosso, ibge_code: 5106505, name: "Poconé"},
130
+ {state: mato_grosso, ibge_code: 5102678, name: "Campo Verde"},
131
+ {state: mato_grosso, ibge_code: 5101209, name: "Araguainha"},
132
+ {state: mato_grosso, ibge_code: 5103908, name: "General Carneiro"},
133
+ {state: mato_grosso, ibge_code: 5104203, name: "Guiratinga"},
134
+ {state: mato_grosso, ibge_code: 5106653, name: "Pontal do Araguaia"},
135
+ {state: mato_grosso, ibge_code: 5106703, name: "Ponte Branca"},
136
+ {state: mato_grosso, ibge_code: 5107198, name: "Ribeirãozinho"},
137
+ {state: mato_grosso, ibge_code: 5108105, name: "Tesouro"},
138
+ {state: mato_grosso, ibge_code: 5108204, name: "Torixoréu"},
139
+ {state: mato_grosso, ibge_code: 5104609, name: "Itiquira"},
140
+ {state: mato_grosso, ibge_code: 5104807, name: "Jaciara"},
141
+ {state: mato_grosso, ibge_code: 5105200, name: "Juscimeira"},
142
+ {state: mato_grosso, ibge_code: 5107404, name: "São Pedro da Cipa"},
143
+ {state: mato_grosso, ibge_code: 5107602, name: "Rondonópolis"},
144
+ {state: mato_grosso, ibge_code: 5100300, name: "Alto Araguaia"}
145
+ ])
@@ -0,0 +1,82 @@
1
+ mato_grosso_do_sul = Spree::State.find_by! abbr: 'MS'
2
+
3
+ Spree::City.create!([
4
+ {state: mato_grosso_do_sul, ibge_code: 5000856, name: "Angélica"},
5
+ {state: mato_grosso_do_sul, ibge_code: 5003454, name: "Deodápolis"},
6
+ {state: mato_grosso_do_sul, ibge_code: 5003751, name: "Eldorado"},
7
+ {state: mato_grosso_do_sul, ibge_code: 5004007, name: "Glória de Dourados"},
8
+ {state: mato_grosso_do_sul, ibge_code: 5004304, name: "Iguatemi"},
9
+ {state: mato_grosso_do_sul, ibge_code: 5004700, name: "Ivinhema"},
10
+ {state: mato_grosso_do_sul, ibge_code: 5004809, name: "Japorã"},
11
+ {state: mato_grosso_do_sul, ibge_code: 5005103, name: "Jateí"},
12
+ {state: mato_grosso_do_sul, ibge_code: 5006259, name: "Novo Horizonte do Sul"},
13
+ {state: mato_grosso_do_sul, ibge_code: 5006358, name: "Paranhos"},
14
+ {state: mato_grosso_do_sul, ibge_code: 5007703, name: "Sete Quedas"},
15
+ {state: mato_grosso_do_sul, ibge_code: 5003207, name: "Corumbá"},
16
+ {state: mato_grosso_do_sul, ibge_code: 5005202, name: "Ladário"},
17
+ {state: mato_grosso_do_sul, ibge_code: 5006903, name: "Porto Murtinho"},
18
+ {state: mato_grosso_do_sul, ibge_code: 5007695, name: "São Gabriel do Oeste"},
19
+ {state: mato_grosso_do_sul, ibge_code: 5007208, name: "Rio Brilhante"},
20
+ {state: mato_grosso_do_sul, ibge_code: 5002803, name: "Caracol"},
21
+ {state: mato_grosso_do_sul, ibge_code: 5000609, name: "Amambaí"},
22
+ {state: mato_grosso_do_sul, ibge_code: 5003504, name: "Douradina"},
23
+ {state: mato_grosso_do_sul, ibge_code: 5005152, name: "Juti"},
24
+ {state: mato_grosso_do_sul, ibge_code: 5006606, name: "Ponta Porã"},
25
+ {state: mato_grosso_do_sul, ibge_code: 5003157, name: "Coronel Sapucaia"},
26
+ {state: mato_grosso_do_sul, ibge_code: 5004601, name: "Itaquiraí"},
27
+ {state: mato_grosso_do_sul, ibge_code: 5005707, name: "Naviraí"},
28
+ {state: mato_grosso_do_sul, ibge_code: 5007950, name: "Tacuru"},
29
+ {state: mato_grosso_do_sul, ibge_code: 5005608, name: "Miranda"},
30
+ {state: mato_grosso_do_sul, ibge_code: 5004908, name: "Jaraguari"},
31
+ {state: mato_grosso_do_sul, ibge_code: 5007109, name: "Ribas do Rio Pardo"},
32
+ {state: mato_grosso_do_sul, ibge_code: 5003801, name: "Fátima do Sul"},
33
+ {state: mato_grosso_do_sul, ibge_code: 5005681, name: "Mundo Novo"},
34
+ {state: mato_grosso_do_sul, ibge_code: 5000708, name: "Anastácio"},
35
+ {state: mato_grosso_do_sul, ibge_code: 5001102, name: "Aquidauana"},
36
+ {state: mato_grosso_do_sul, ibge_code: 5003488, name: "Dois Irmãos do Buriti"},
37
+ {state: mato_grosso_do_sul, ibge_code: 5000252, name: "Alcinópolis"},
38
+ {state: mato_grosso_do_sul, ibge_code: 5002605, name: "Camapuã"},
39
+ {state: mato_grosso_do_sul, ibge_code: 5003306, name: "Coxim"},
40
+ {state: mato_grosso_do_sul, ibge_code: 5003900, name: "Figueirão"},
41
+ {state: mato_grosso_do_sul, ibge_code: 5006408, name: "Pedro Gomes"},
42
+ {state: mato_grosso_do_sul, ibge_code: 5007406, name: "Rio Verde de Mato Grosso"},
43
+ {state: mato_grosso_do_sul, ibge_code: 5007935, name: "Sonora"},
44
+ {state: mato_grosso_do_sul, ibge_code: 5001508, name: "Bandeirantes"},
45
+ {state: mato_grosso_do_sul, ibge_code: 5002704, name: "Campo Grande"},
46
+ {state: mato_grosso_do_sul, ibge_code: 5003108, name: "Corguinho"},
47
+ {state: mato_grosso_do_sul, ibge_code: 5007307, name: "Rio Negro"},
48
+ {state: mato_grosso_do_sul, ibge_code: 5007505, name: "Rochedo"},
49
+ {state: mato_grosso_do_sul, ibge_code: 5007901, name: "Sidrolândia"},
50
+ {state: mato_grosso_do_sul, ibge_code: 5008008, name: "Terenos"},
51
+ {state: mato_grosso_do_sul, ibge_code: 5002902, name: "Cassilândia"},
52
+ {state: mato_grosso_do_sul, ibge_code: 5002951, name: "Chapadão do Sul"},
53
+ {state: mato_grosso_do_sul, ibge_code: 5003256, name: "Costa Rica"},
54
+ {state: mato_grosso_do_sul, ibge_code: 5001003, name: "Aparecida do Taboado"},
55
+ {state: mato_grosso_do_sul, ibge_code: 5004403, name: "Inocência"},
56
+ {state: mato_grosso_do_sul, ibge_code: 5006309, name: "Paranaíba"},
57
+ {state: mato_grosso_do_sul, ibge_code: 5007802, name: "Selvíria"},
58
+ {state: mato_grosso_do_sul, ibge_code: 5000203, name: "Água Clara"},
59
+ {state: mato_grosso_do_sul, ibge_code: 5002308, name: "Brasilândia"},
60
+ {state: mato_grosso_do_sul, ibge_code: 5007554, name: "Santa Rita do Pardo"},
61
+ {state: mato_grosso_do_sul, ibge_code: 5008305, name: "Três Lagoas"},
62
+ {state: mato_grosso_do_sul, ibge_code: 5000807, name: "Anaurilândia"},
63
+ {state: mato_grosso_do_sul, ibge_code: 5001904, name: "Bataguassu"},
64
+ {state: mato_grosso_do_sul, ibge_code: 5002001, name: "Batayporã"},
65
+ {state: mato_grosso_do_sul, ibge_code: 5006200, name: "Nova Andradina"},
66
+ {state: mato_grosso_do_sul, ibge_code: 5007976, name: "Taquarussu"},
67
+ {state: mato_grosso_do_sul, ibge_code: 5002100, name: "Bela Vista"},
68
+ {state: mato_grosso_do_sul, ibge_code: 5002159, name: "Bodoquena"},
69
+ {state: mato_grosso_do_sul, ibge_code: 5002209, name: "Bonito"},
70
+ {state: mato_grosso_do_sul, ibge_code: 5004106, name: "Guia Lopes da Laguna"},
71
+ {state: mato_grosso_do_sul, ibge_code: 5005004, name: "Jardim"},
72
+ {state: mato_grosso_do_sul, ibge_code: 5005806, name: "Nioaque"},
73
+ {state: mato_grosso_do_sul, ibge_code: 5000906, name: "Antônio João"},
74
+ {state: mato_grosso_do_sul, ibge_code: 5001243, name: "Aral Moreira"},
75
+ {state: mato_grosso_do_sul, ibge_code: 5002407, name: "Caarapó"},
76
+ {state: mato_grosso_do_sul, ibge_code: 5003702, name: "Dourados"},
77
+ {state: mato_grosso_do_sul, ibge_code: 5004502, name: "Itaporã"},
78
+ {state: mato_grosso_do_sul, ibge_code: 5005251, name: "Laguna Carapã"},
79
+ {state: mato_grosso_do_sul, ibge_code: 5005400, name: "Maracaju"},
80
+ {state: mato_grosso_do_sul, ibge_code: 5006002, name: "Nova Alvorada do Sul"},
81
+ {state: mato_grosso_do_sul, ibge_code: 5008404, name: "Vicentina"}
82
+ ])