defra_ruby_address 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +66 -6
  3. data/Rakefile +2 -2
  4. data/bin/console +2 -6
  5. data/lib/defra_ruby/address/response.rb +1 -2
  6. data/lib/defra_ruby/address/services/os_api_address_lookup_v1_service.rb +100 -0
  7. data/lib/defra_ruby/address/services/os_places_address_lookup_service.rb +11 -14
  8. data/lib/defra_ruby/address/version.rb +1 -1
  9. data/lib/defra_ruby/address.rb +1 -0
  10. metadata +6 -180
  11. data/spec/defra_ruby/address/configuration_spec.rb +0 -18
  12. data/spec/defra_ruby/address/response_spec.rb +0 -70
  13. data/spec/defra_ruby/address/services/ea_address_facade_v1_1_service_spec.rb +0 -73
  14. data/spec/defra_ruby/address/services/ea_address_facade_v1_service_spec.rb +0 -73
  15. data/spec/defra_ruby/address/services/os_places_address_lookup_service_spec.rb +0 -72
  16. data/spec/defra_ruby/address_spec.rb +0 -30
  17. data/spec/examples.txt +0 -27
  18. data/spec/fixtures/ea_address_facade_v1_1_blank.json +0 -8
  19. data/spec/fixtures/ea_address_facade_v1_1_not_found.json +0 -14
  20. data/spec/fixtures/ea_address_facade_v1_1_valid.json +0 -83
  21. data/spec/fixtures/ea_address_facade_v1_blank.json +0 -13
  22. data/spec/fixtures/ea_address_facade_v1_not_found.json +0 -8
  23. data/spec/fixtures/ea_address_facade_v1_valid.json +0 -45
  24. data/spec/fixtures/os_places_address_lookup_blank.json +0 -5
  25. data/spec/fixtures/os_places_address_lookup_not_found.json +0 -6
  26. data/spec/fixtures/os_places_address_lookup_valid.json +0 -56
  27. data/spec/spec_helper.rb +0 -83
  28. data/spec/support/defra_ruby_address.rb +0 -4
  29. data/spec/support/dotenv.rb +0 -4
  30. data/spec/support/pry.rb +0 -7
  31. data/spec/support/shared_examples/handle_request_errors.rb +0 -32
  32. data/spec/support/simplecov.rb +0 -17
  33. data/spec/support/webmock.rb +0 -4
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "simplecov"
4
-
5
- # We start it with the rails param to ensure it includes coverage for all code
6
- # started by the rails app, and not just the files touched by our unit tests.
7
- # This gives us the most accurate assessment of our unit test coverage
8
- # https://github.com/colszowka/simplecov#getting-started
9
- SimpleCov.start do
10
- # We filter the spec folder, mainly to ensure that any dummy apps don't get
11
- # included in the coverage report. However our intent is that nothing in the
12
- # spec folder should be included
13
- add_filter "/spec/"
14
- # The version file is simply just that, so we do not feel the need to ensure
15
- # we have a test for it
16
- add_filter "lib/defra_ruby/validators/version"
17
- end
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Stubbing HTTP requests
4
- require "webmock/rspec"