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.
- checksums.yaml +5 -5
- data/README.md +66 -6
- data/Rakefile +2 -2
- data/bin/console +2 -6
- data/lib/defra_ruby/address/response.rb +1 -2
- data/lib/defra_ruby/address/services/os_api_address_lookup_v1_service.rb +100 -0
- data/lib/defra_ruby/address/services/os_places_address_lookup_service.rb +11 -14
- data/lib/defra_ruby/address/version.rb +1 -1
- data/lib/defra_ruby/address.rb +1 -0
- metadata +6 -180
- data/spec/defra_ruby/address/configuration_spec.rb +0 -18
- data/spec/defra_ruby/address/response_spec.rb +0 -70
- data/spec/defra_ruby/address/services/ea_address_facade_v1_1_service_spec.rb +0 -73
- data/spec/defra_ruby/address/services/ea_address_facade_v1_service_spec.rb +0 -73
- data/spec/defra_ruby/address/services/os_places_address_lookup_service_spec.rb +0 -72
- data/spec/defra_ruby/address_spec.rb +0 -30
- data/spec/examples.txt +0 -27
- data/spec/fixtures/ea_address_facade_v1_1_blank.json +0 -8
- data/spec/fixtures/ea_address_facade_v1_1_not_found.json +0 -14
- data/spec/fixtures/ea_address_facade_v1_1_valid.json +0 -83
- data/spec/fixtures/ea_address_facade_v1_blank.json +0 -13
- data/spec/fixtures/ea_address_facade_v1_not_found.json +0 -8
- data/spec/fixtures/ea_address_facade_v1_valid.json +0 -45
- data/spec/fixtures/os_places_address_lookup_blank.json +0 -5
- data/spec/fixtures/os_places_address_lookup_not_found.json +0 -6
- data/spec/fixtures/os_places_address_lookup_valid.json +0 -56
- data/spec/spec_helper.rb +0 -83
- data/spec/support/defra_ruby_address.rb +0 -4
- data/spec/support/dotenv.rb +0 -4
- data/spec/support/pry.rb +0 -7
- data/spec/support/shared_examples/handle_request_errors.rb +0 -32
- data/spec/support/simplecov.rb +0 -17
- data/spec/support/webmock.rb +0 -4
data/spec/support/simplecov.rb
DELETED
|
@@ -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
|
data/spec/support/webmock.rb
DELETED