addresses 1.0.11 → 2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/addresses/application_controller.rb +2 -0
  3. data/app/controllers/addresses/cities_controller.rb +3 -1
  4. data/app/controllers/addresses/neighborhoods_controller.rb +4 -2
  5. data/app/controllers/addresses/states_controller.rb +5 -5
  6. data/app/controllers/addresses/zipcodes_controller.rb +7 -5
  7. data/app/models/addresses/address.rb +5 -2
  8. data/app/models/addresses/city.rb +5 -1
  9. data/app/models/addresses/country.rb +3 -0
  10. data/app/models/addresses/neighborhood.rb +4 -0
  11. data/app/models/addresses/state.rb +4 -0
  12. data/app/models/addresses/zipcode.rb +11 -39
  13. data/config/routes.rb +2 -0
  14. data/db/migrate/20140327141509_create_addresses_countries.rb +2 -1
  15. data/db/migrate/20140327163801_create_addresses_states.rb +2 -1
  16. data/db/migrate/20140327171527_create_addresses_cities.rb +2 -1
  17. data/db/migrate/20140327190411_create_addresses_neighborhoods.rb +2 -1
  18. data/db/migrate/20140328120418_create_addresses_addresses.rb +3 -1
  19. data/db/migrate/20160920172944_create_addresses_zipcodes.rb +2 -0
  20. data/db/migrate/20160920174406_remove_zipcode_attributes_from_addresses.rb +2 -0
  21. data/db/migrate/20191008052817_add_indexes.rb +21 -0
  22. data/lib/addresses.rb +3 -1
  23. data/lib/addresses/engine.rb +4 -2
  24. data/lib/tasks/addresses_tasks.rake +6 -6
  25. data/lib/tasks/populate/br/cities.rake +5573 -0
  26. data/lib/tasks/populate/br/countries.rake +247 -0
  27. data/lib/tasks/populate/br/neighborhoods.rake +40825 -0
  28. data/lib/tasks/populate/br/states.rake +35 -0
  29. data/lib/tasks/populate/br/zipcodes.rake +40 -0
  30. data/spec/controllers/addresses/cities_controller_spec.rb +1 -1
  31. data/spec/controllers/addresses/neighborhoods_controller_spec.rb +1 -1
  32. data/spec/controllers/addresses/states_controller_spec.rb +1 -1
  33. data/spec/controllers/addresses/zipcodes_controller_spec.rb +1 -1
  34. data/spec/dummy/Gemfile +1 -1
  35. data/spec/dummy/Gemfile.lock +107 -84
  36. data/spec/dummy/config/application.rb +1 -1
  37. data/spec/dummy/db/development.sqlite3 +0 -0
  38. data/spec/dummy/db/migrate/{20190614190958_create_addresses_countries.addresses.rb → 20191008054118_create_addresses_countries.addresses.rb} +1 -0
  39. data/spec/dummy/db/migrate/{20190614190959_create_addresses_states.addresses.rb → 20191008054119_create_addresses_states.addresses.rb} +1 -0
  40. data/spec/dummy/db/migrate/{20190614190960_create_addresses_cities.addresses.rb → 20191008054120_create_addresses_cities.addresses.rb} +1 -0
  41. data/spec/dummy/db/migrate/{20190614190961_create_addresses_neighborhoods.addresses.rb → 20191008054121_create_addresses_neighborhoods.addresses.rb} +1 -0
  42. data/spec/dummy/db/migrate/{20190614190962_create_addresses_addresses.addresses.rb → 20191008054122_create_addresses_addresses.addresses.rb} +2 -0
  43. data/spec/dummy/db/migrate/{20190614190963_create_addresses_zipcodes.addresses.rb → 20191008054123_create_addresses_zipcodes.addresses.rb} +2 -0
  44. data/spec/dummy/db/migrate/{20190614190964_remove_zipcode_attributes_from_addresses.addresses.rb → 20191008054124_remove_zipcode_attributes_from_addresses.addresses.rb} +2 -0
  45. data/spec/dummy/db/migrate/20191008054125_add_indexes.addresses.rb +22 -0
  46. data/spec/dummy/db/schema.rb +36 -26
  47. data/spec/dummy/db/test.sqlite3 +0 -0
  48. data/spec/dummy/log/development.log +463 -0
  49. data/spec/dummy/log/test.log +9374 -0
  50. data/spec/factories/addresses.rb +3 -3
  51. data/spec/factories/cities.rb +2 -2
  52. data/spec/factories/countries.rb +3 -3
  53. data/spec/factories/neighborhoods.rb +2 -2
  54. data/spec/factories/states.rb +3 -3
  55. data/spec/factories/zipcodes.rb +3 -3
  56. data/spec/fixtures/zipcodes/br/ceps.txt +0 -0
  57. data/spec/models/addresses/address_spec.rb +3 -3
  58. data/spec/models/addresses/city_spec.rb +1 -1
  59. data/spec/models/addresses/country_spec.rb +1 -1
  60. data/spec/models/addresses/neighborhood_spec.rb +1 -1
  61. data/spec/models/addresses/state_spec.rb +1 -1
  62. data/spec/models/addresses/zipcode_spec.rb +1 -30
  63. data/spec/{spec_helper.rb → rails_helper.rb} +3 -4
  64. data/spec/requests/cities_spec.rb +1 -1
  65. data/spec/requests/neighborhoods_spec.rb +1 -1
  66. data/spec/requests/zipcodes_spec.rb +11 -5
  67. data/spec/routing/cities_routing_spec.rb +1 -1
  68. data/spec/routing/neighborhoods_routing_spec.rb +1 -1
  69. data/spec/routing/zipcodes_routing_spec.rb +1 -1
  70. metadata +42 -54
  71. data/README.rdoc +0 -55
  72. data/app/assets/javascripts/addresses/application.js +0 -13
  73. data/app/assets/stylesheets/addresses/application.css +0 -13
  74. data/app/helpers/addresses/application_helper.rb +0 -4
  75. data/app/services/zipcode_service.rb +0 -42
  76. data/lib/tasks/natal_city.rake +0 -50
  77. data/lib/tasks/populate_cities.rake +0 -5570
  78. data/lib/tasks/populate_countries.rake +0 -243
  79. data/lib/tasks/populate_neighborhoods.rake +0 -40823
  80. data/lib/tasks/populate_states.rake +0 -32
  81. data/spec/dummy/db/migrate/20190614190716_create_addresses_countries.addresses.rb +0 -13
  82. data/spec/services/zipcode_service_spec.rb +0 -29
@@ -1,9 +1,9 @@
1
1
  # Read about factories at https://github.com/thoughtbot/factory_girl
2
2
 
3
- FactoryGirl.define do
3
+ FactoryBot.define do
4
4
  factory :address, class: Addresses::Address do
5
- number "Number"
6
- complement nil
5
+ number { '1559' }
6
+ complement { 'Sala 66' }
7
7
  association :zipcode
8
8
  end
9
9
  end
@@ -1,8 +1,8 @@
1
1
  # Read about factories at https://github.com/thoughtbot/factory_girl
2
2
 
3
- FactoryGirl.define do
3
+ FactoryBot.define do
4
4
  factory :city, class: Addresses::City do
5
- name "City name"
5
+ name { 'Natal' }
6
6
  association :state
7
7
  end
8
8
  end
@@ -1,8 +1,8 @@
1
1
  # Read about factories at https://github.com/thoughtbot/factory_girl
2
2
 
3
- FactoryGirl.define do
3
+ FactoryBot.define do
4
4
  factory :country, class: Addresses::Country do
5
- name "Country name"
6
- acronym "Country acronym"
5
+ name { 'Brasil' }
6
+ acronym { 'BR' }
7
7
  end
8
8
  end
@@ -1,8 +1,8 @@
1
1
  # Read about factories at https://github.com/thoughtbot/factory_girl
2
2
 
3
- FactoryGirl.define do
3
+ FactoryBot.define do
4
4
  factory :neighborhood, class: Addresses::Neighborhood do
5
- name "Neighborhood name"
5
+ name { 'Tirol' }
6
6
  association :city
7
7
  end
8
8
  end
@@ -1,9 +1,9 @@
1
1
  # Read about factories at https://github.com/thoughtbot/factory_girl
2
2
 
3
- FactoryGirl.define do
3
+ FactoryBot.define do
4
4
  factory :state, class: Addresses::State do
5
- name "State name"
6
- acronym "State acronym"
5
+ name { 'Rio Grande do Norte' }
6
+ acronym { 'RN' }
7
7
  association :country
8
8
  end
9
9
  end
@@ -1,8 +1,8 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :zipcode, class: Addresses::Zipcode do
3
- street "Street name"
3
+ street { 'Av. Senador Salgado Filho' }
4
4
  association :city
5
5
  association :neighborhood
6
- number "12345678"
6
+ number { "59015900" }
7
7
  end
8
8
  end
File without changes
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  RSpec.describe Addresses::Address, type: :model do
4
4
  describe 'validation' do
@@ -16,7 +16,7 @@ RSpec.describe Addresses::Address, type: :model do
16
16
  let!(:address) { create(:address) }
17
17
  let!(:address1) { create(:address, zipcode: zipcode) }
18
18
 
19
- it { expect(address.to_s).to eq("Street name, Number, Neighborhood name - City name/State acronym") }
20
- it { expect(address1.to_s).to eq("Street name, Number - City name/State acronym") }
19
+ it { expect(address.to_s).to eq("Av. Senador Salgado Filho, 1559, Tirol - Natal/RN") }
20
+ it { expect(address1.to_s).to eq("Av. Senador Salgado Filho, 1559 - Natal/RN") }
21
21
  end
22
22
  end
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  RSpec.describe Addresses::City, :type => :model do
4
4
  describe 'association' do
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  RSpec.describe Addresses::Country, :type => :model do
4
4
  describe 'association' do
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  RSpec.describe Addresses::Neighborhood, :type => :model do
4
4
  describe 'association' do
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  RSpec.describe Addresses::State, :type => :model do
4
4
  describe 'association' do
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  RSpec.describe Addresses::Zipcode, type: :model do
4
4
  describe 'validation' do
@@ -13,33 +13,4 @@ RSpec.describe Addresses::Zipcode, type: :model do
13
13
  it { is_expected.to belong_to(:neighborhood) }
14
14
  it { is_expected.to have_many(:addresses) }
15
15
  end
16
-
17
- describe '.find_or_create_by_service', :vcr do
18
- context 'when the zipcode exists in database' do
19
- let!(:zipcode) { create :zipcode }
20
- let!(:searched_zipcode) { Addresses::Zipcode.find_or_create_by_service(zipcode.number) }
21
-
22
- it { expect(searched_zipcode).to eq(zipcode) }
23
- end
24
-
25
- context 'when the zipcode not exists in database' do
26
- context 'but the zipcode was found in web service' do
27
- let!(:searched_zipcode) { Addresses::Zipcode.find_or_create_by_service('05012010') }
28
-
29
- it { expect(searched_zipcode).to be_a_instance_of(Addresses::Zipcode) }
30
- it { expect(searched_zipcode.number).to eq('05012010') }
31
- it { expect(searched_zipcode.street).to eq('Rua Ministro Gastão Mesquita') }
32
- end
33
-
34
- context 'and the zipcode was not found in web service' do
35
- let!(:searched_zipcode) { Addresses::Zipcode.find_or_create_by_service('99999999') }
36
- it { expect(searched_zipcode).to be_nil }
37
- end
38
- end
39
- end
40
-
41
- describe '#to_s' do
42
- let!(:zipcode) { create :zipcode }
43
- it { expect(zipcode.to_s).to eq("Street name, Neighborhood name. City name - State acronym") }
44
- end
45
16
  end
@@ -9,10 +9,10 @@ end
9
9
  require File.expand_path("../dummy/config/environment.rb", __FILE__)
10
10
 
11
11
  require 'rspec/rails'
12
- require 'factory_girl_rails'
13
12
  require 'shoulda/matchers'
14
-
15
13
  require 'webmock/rspec'
14
+ require 'factory_bot_rails'
15
+
16
16
  VCR.configure do |c|
17
17
  c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
18
18
  c.hook_into :webmock
@@ -28,9 +28,8 @@ RSpec.configure do |config|
28
28
  config.mock_with :rspec
29
29
  config.use_transactional_fixtures = true
30
30
  config.infer_base_class_for_anonymous_controllers = false
31
- config.include FactoryGirl::Syntax::Methods
31
+ config.include FactoryBot::Syntax::Methods
32
32
  config.order = "random"
33
-
34
33
  config.include(Shoulda::Matchers::ActiveModel, type: :model)
35
34
  config.include(Shoulda::Matchers::ActiveRecord, type: :model)
36
35
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'spec_helper'
2
+ require 'rails_helper'
3
3
 
4
4
  RSpec.describe Addresses::CitiesController, type: :request do
5
5
  let!(:state) { create :state }
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  RSpec.describe Addresses::NeighborhoodsController, type: :request do
4
4
  let!(:state) { create :state }
@@ -1,7 +1,8 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  RSpec.describe Addresses::ZipcodesController, type: :request do
4
- let!(:state) { create :state }
4
+ let!(:country) { create :country }
5
+ let!(:state) { create :state, country: country }
5
6
  let!(:city) { create :city, state: state }
6
7
  let!(:neighborhood) { create :neighborhood, city: city }
7
8
  let!(:zipcode) { create :zipcode, city: city, neighborhood: neighborhood, number: '05012010' }
@@ -14,9 +15,14 @@ RSpec.describe Addresses::ZipcodesController, type: :request do
14
15
  expect(response.status).to be(200)
15
16
  expect(json["id"]).to eq(zipcode.id)
16
17
  expect(json["street"]).to eq(zipcode.street)
17
- expect(json["city_id"]).to eq(city.id)
18
- expect(json["state_id"]).to eq(state.id)
19
- expect(json["neighborhood_id"]).to eq(neighborhood.id)
18
+ expect(json["neighborhood"]['id']).to eq(neighborhood.id)
19
+ expect(json["neighborhood"]['name']).to eq(neighborhood.name)
20
+ expect(json["city"]['id']).to eq(city.id)
21
+ expect(json["city"]['name']).to eq(city.name)
22
+ expect(json["state"]['id']).to eq(state.id)
23
+ expect(json["state"]['name']).to eq(state.name)
24
+ expect(json["country"]['id']).to eq(country.id)
25
+ expect(json["country"]['name']).to eq(country.name)
20
26
  expect(json["number"]).to eq('05012010')
21
27
  end
22
28
  end
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require "rails_helper"
2
2
 
3
3
  RSpec.describe Addresses::CitiesController, type: :routing do
4
4
  routes { Addresses::Engine.routes }
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require "rails_helper"
2
2
 
3
3
  RSpec.describe Addresses::NeighborhoodsController, type: :routing do
4
4
  routes { Addresses::Engine.routes }
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require "rails_helper"
2
2
 
3
3
  RSpec.describe Addresses::ZipcodesController, type: :routing do
4
4
  routes { Addresses::Engine.routes }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: addresses
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: '2.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wilbert Ribeiro
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-06-25 00:00:00.000000000 Z
12
+ date: 2019-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -17,56 +17,42 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '5.0'
20
+ version: 6.0.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '5.0'
27
+ version: 6.0.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rspec-rails
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 3.5.2
34
+ version: 3.8.2
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 3.5.2
41
+ version: 3.8.2
42
42
  - !ruby/object:Gem::Dependency
43
- name: capybara
43
+ name: factory_bot_rails
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 2.8.1
48
+ version: 5.1.1
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 2.8.1
56
- - !ruby/object:Gem::Dependency
57
- name: factory_girl_rails
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - '='
61
- - !ruby/object:Gem::Version
62
- version: 4.7.0
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - '='
68
- - !ruby/object:Gem::Version
69
- version: 4.7.0
55
+ version: 5.1.1
70
56
  description: Create Country, State, City, Neighborhood and a polymorphic model called
71
57
  Address that can be related as addessable.
72
58
  email:
@@ -77,23 +63,18 @@ extensions: []
77
63
  extra_rdoc_files: []
78
64
  files:
79
65
  - MIT-LICENSE
80
- - README.rdoc
81
66
  - Rakefile
82
- - app/assets/javascripts/addresses/application.js
83
- - app/assets/stylesheets/addresses/application.css
84
67
  - app/controllers/addresses/application_controller.rb
85
68
  - app/controllers/addresses/cities_controller.rb
86
69
  - app/controllers/addresses/neighborhoods_controller.rb
87
70
  - app/controllers/addresses/states_controller.rb
88
71
  - app/controllers/addresses/zipcodes_controller.rb
89
- - app/helpers/addresses/application_helper.rb
90
72
  - app/models/addresses/address.rb
91
73
  - app/models/addresses/city.rb
92
74
  - app/models/addresses/country.rb
93
75
  - app/models/addresses/neighborhood.rb
94
76
  - app/models/addresses/state.rb
95
77
  - app/models/addresses/zipcode.rb
96
- - app/services/zipcode_service.rb
97
78
  - config/routes.rb
98
79
  - db/migrate/20140327141509_create_addresses_countries.rb
99
80
  - db/migrate/20140327163801_create_addresses_states.rb
@@ -102,14 +83,15 @@ files:
102
83
  - db/migrate/20140328120418_create_addresses_addresses.rb
103
84
  - db/migrate/20160920172944_create_addresses_zipcodes.rb
104
85
  - db/migrate/20160920174406_remove_zipcode_attributes_from_addresses.rb
86
+ - db/migrate/20191008052817_add_indexes.rb
105
87
  - lib/addresses.rb
106
88
  - lib/addresses/engine.rb
107
89
  - lib/tasks/addresses_tasks.rake
108
- - lib/tasks/natal_city.rake
109
- - lib/tasks/populate_cities.rake
110
- - lib/tasks/populate_countries.rake
111
- - lib/tasks/populate_neighborhoods.rake
112
- - lib/tasks/populate_states.rake
90
+ - lib/tasks/populate/br/cities.rake
91
+ - lib/tasks/populate/br/countries.rake
92
+ - lib/tasks/populate/br/neighborhoods.rake
93
+ - lib/tasks/populate/br/states.rake
94
+ - lib/tasks/populate/br/zipcodes.rake
113
95
  - spec/controllers/addresses/cities_controller_spec.rb
114
96
  - spec/controllers/addresses/neighborhoods_controller_spec.rb
115
97
  - spec/controllers/addresses/states_controller_spec.rb
@@ -144,16 +126,19 @@ files:
144
126
  - spec/dummy/config/locales/en.yml
145
127
  - spec/dummy/config/locales/pt-BR.yml
146
128
  - spec/dummy/config/routes.rb
147
- - spec/dummy/db/migrate/20190614190716_create_addresses_countries.addresses.rb
148
- - spec/dummy/db/migrate/20190614190958_create_addresses_countries.addresses.rb
149
- - spec/dummy/db/migrate/20190614190959_create_addresses_states.addresses.rb
150
- - spec/dummy/db/migrate/20190614190960_create_addresses_cities.addresses.rb
151
- - spec/dummy/db/migrate/20190614190961_create_addresses_neighborhoods.addresses.rb
152
- - spec/dummy/db/migrate/20190614190962_create_addresses_addresses.addresses.rb
153
- - spec/dummy/db/migrate/20190614190963_create_addresses_zipcodes.addresses.rb
154
- - spec/dummy/db/migrate/20190614190964_remove_zipcode_attributes_from_addresses.addresses.rb
129
+ - spec/dummy/db/development.sqlite3
130
+ - spec/dummy/db/migrate/20191008054118_create_addresses_countries.addresses.rb
131
+ - spec/dummy/db/migrate/20191008054119_create_addresses_states.addresses.rb
132
+ - spec/dummy/db/migrate/20191008054120_create_addresses_cities.addresses.rb
133
+ - spec/dummy/db/migrate/20191008054121_create_addresses_neighborhoods.addresses.rb
134
+ - spec/dummy/db/migrate/20191008054122_create_addresses_addresses.addresses.rb
135
+ - spec/dummy/db/migrate/20191008054123_create_addresses_zipcodes.addresses.rb
136
+ - spec/dummy/db/migrate/20191008054124_remove_zipcode_attributes_from_addresses.addresses.rb
137
+ - spec/dummy/db/migrate/20191008054125_add_indexes.addresses.rb
155
138
  - spec/dummy/db/schema.rb
156
139
  - spec/dummy/db/test.sqlite3
140
+ - spec/dummy/log/development.log
141
+ - spec/dummy/log/test.log
157
142
  - spec/dummy/public/404.html
158
143
  - spec/dummy/public/422.html
159
144
  - spec/dummy/public/500.html
@@ -178,20 +163,20 @@ files:
178
163
  - spec/fixtures/vcr_cassettes/ZipcodeService/_find/when_pass_a_valid_zipcode/1_1_1_6.yml
179
164
  - spec/fixtures/vcr_cassettes/ZipcodeService/_find/when_pass_a_valid_zipcode/1_1_1_7.yml
180
165
  - spec/fixtures/vcr_cassettes/ZipcodeService/_find/when_server_is_not_avaialable/1_1_3_1.yml
166
+ - spec/fixtures/zipcodes/br/ceps.txt
181
167
  - spec/models/addresses/address_spec.rb
182
168
  - spec/models/addresses/city_spec.rb
183
169
  - spec/models/addresses/country_spec.rb
184
170
  - spec/models/addresses/neighborhood_spec.rb
185
171
  - spec/models/addresses/state_spec.rb
186
172
  - spec/models/addresses/zipcode_spec.rb
173
+ - spec/rails_helper.rb
187
174
  - spec/requests/cities_spec.rb
188
175
  - spec/requests/neighborhoods_spec.rb
189
176
  - spec/requests/zipcodes_spec.rb
190
177
  - spec/routing/cities_routing_spec.rb
191
178
  - spec/routing/neighborhoods_routing_spec.rb
192
179
  - spec/routing/zipcodes_routing_spec.rb
193
- - spec/services/zipcode_service_spec.rb
194
- - spec/spec_helper.rb
195
180
  homepage: http://www.github.com/wilbert/addresses
196
181
  licenses:
197
182
  - MIT
@@ -211,12 +196,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
196
  - !ruby/object:Gem::Version
212
197
  version: '0'
213
198
  requirements: []
214
- rubygems_version: 3.0.1
199
+ rubygems_version: 3.0.6
215
200
  signing_key:
216
201
  specification_version: 4
217
202
  summary: This engine allows create default addresses models for any usage.
218
203
  test_files:
219
- - spec/spec_helper.rb
220
204
  - spec/dummy/app/controllers/application_controller.rb
221
205
  - spec/dummy/app/views/layouts/application.html.erb
222
206
  - spec/dummy/app/assets/javascripts/application.js
@@ -250,15 +234,18 @@ test_files:
250
234
  - spec/dummy/public/404.html
251
235
  - spec/dummy/db/schema.rb
252
236
  - spec/dummy/db/test.sqlite3
253
- - spec/dummy/db/migrate/20190614190959_create_addresses_states.addresses.rb
254
- - spec/dummy/db/migrate/20190614190960_create_addresses_cities.addresses.rb
255
- - spec/dummy/db/migrate/20190614190963_create_addresses_zipcodes.addresses.rb
256
- - spec/dummy/db/migrate/20190614190964_remove_zipcode_attributes_from_addresses.addresses.rb
257
- - spec/dummy/db/migrate/20190614190961_create_addresses_neighborhoods.addresses.rb
258
- - spec/dummy/db/migrate/20190614190716_create_addresses_countries.addresses.rb
259
- - spec/dummy/db/migrate/20190614190958_create_addresses_countries.addresses.rb
260
- - spec/dummy/db/migrate/20190614190962_create_addresses_addresses.addresses.rb
237
+ - spec/dummy/db/migrate/20191008054121_create_addresses_neighborhoods.addresses.rb
238
+ - spec/dummy/db/migrate/20191008054124_remove_zipcode_attributes_from_addresses.addresses.rb
239
+ - spec/dummy/db/migrate/20191008054119_create_addresses_states.addresses.rb
240
+ - spec/dummy/db/migrate/20191008054120_create_addresses_cities.addresses.rb
241
+ - spec/dummy/db/migrate/20191008054123_create_addresses_zipcodes.addresses.rb
242
+ - spec/dummy/db/migrate/20191008054125_add_indexes.addresses.rb
243
+ - spec/dummy/db/migrate/20191008054118_create_addresses_countries.addresses.rb
244
+ - spec/dummy/db/migrate/20191008054122_create_addresses_addresses.addresses.rb
245
+ - spec/dummy/db/development.sqlite3
261
246
  - spec/dummy/Gemfile
247
+ - spec/dummy/log/test.log
248
+ - spec/dummy/log/development.log
262
249
  - spec/dummy/Gemfile.lock
263
250
  - spec/dummy/README.rdoc
264
251
  - spec/models/addresses/country_spec.rb
@@ -290,6 +277,7 @@ test_files:
290
277
  - spec/fixtures/vcr_cassettes/ZipcodeService/_find/when_pass_a_valid_zipcode/1_1_1_7.yml
291
278
  - spec/fixtures/vcr_cassettes/ZipcodeService/_find/when_pass_a_valid_zipcode/1_1_1_5.yml
292
279
  - spec/fixtures/vcr_cassettes/ZipcodeService/_find/when_pass_a_valid_zipcode/1_1_1_4.yml
280
+ - spec/fixtures/zipcodes/br/ceps.txt
293
281
  - spec/routing/cities_routing_spec.rb
294
282
  - spec/routing/zipcodes_routing_spec.rb
295
283
  - spec/routing/neighborhoods_routing_spec.rb
@@ -297,4 +285,4 @@ test_files:
297
285
  - spec/controllers/addresses/cities_controller_spec.rb
298
286
  - spec/controllers/addresses/zipcodes_controller_spec.rb
299
287
  - spec/controllers/addresses/states_controller_spec.rb
300
- - spec/services/zipcode_service_spec.rb
288
+ - spec/rails_helper.rb