loqate 0.10.1 → 0.10.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8bf10882050e3db9a37ea5c55c0c9f2cbe784525fcc570eb012f2ed9e730a319
4
- data.tar.gz: e7c1bc6353fa34f3dcc57a53ef9d5a38b9e69cde60e27eb284c3a5ebbc2b9dd9
3
+ metadata.gz: 8b4390ffdee4320c50814836998e21876994357d8aa511003ecfef7572284447
4
+ data.tar.gz: 7301f167946099a2bdd07163b23d621da9171a0c5da09c5817cde40a04bf13f3
5
5
  SHA512:
6
- metadata.gz: e7874ac5ca665594563077b0db7520450d77cae0f144549c72654f9806c65154c81c4f02668d5c7a8148bf697c65645236d90209c5b1a98711d839cadd873683
7
- data.tar.gz: 1abbc2910b8f7e7dc80df46d3c06e5fd709224fc8666bbeb2f091e5022b415eb869591d8ed97e22ae830a1d1c7d5cb0951ec704ca64f2691f9d0e4e435ae7d6b
6
+ metadata.gz: 93e7c4f6f992b0cb3eae1cc51a98f7b8977a0b78214f1cadeaebc424c05752d6b9d2d630e7322989d197a35ad0d6b8beb9ccd129367cebb404c817b0ad16a7c1
7
+ data.tar.gz: 214b9dfa4dc5a311083ce5f0f96cac69f3643d059c7c8db0bd4c60d563a85d3c218d1e6b7b2d537037ed121b67c8bc8ff655347e5c5a877eb7655af7464aaa0d
@@ -0,0 +1 @@
1
+ ruby 2.6.5
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.10.1] - 2019-12-31
8
+ ### Changed
9
+ - Relaxed the dependency on `bundler` to support Bundler 2.x and later
10
+ - Replaced `.ruby-versions` with `.tools-versions` because `asdf` is a modular package manager for all languages
11
+ - Set the Ruby development version to `2.6.5`
12
+
13
+ ## Fixed
14
+ - Renamed `Dry::Struct::Value` to `Dry::Struct` to fix a deprecation warning
15
+ - Renamed `Dry::Types.module` to `Dry.Types()` to fix a deprecation warning
16
+
7
17
  ## [0.10.1] - 2019-04-29
8
18
  ### Fixed
9
19
  - Updated `dry-struct` to version `1.0`, which has a more stable API
@@ -1,7 +1,7 @@
1
1
  module Loqate
2
2
  module Address
3
3
  # A result from the address find service.
4
- class Address < Dry::Struct::Value
4
+ class Address < Dry::Struct
5
5
  # An address ID or a container ID for further results
6
6
  #
7
7
  # @return [String]
@@ -1,7 +1,7 @@
1
1
  module Loqate
2
2
  module Bank
3
3
  # Result of a bank account validation.
4
- class AccountValidation < Dry::Struct::Value
4
+ class AccountValidation < Dry::Struct
5
5
  StatusInformation = Types::Strict::String.enum('DetailsChanged', 'CautiousOK')
6
6
 
7
7
  # Indicates whether the account number and sortcode are valid.
@@ -1,7 +1,7 @@
1
1
  module Loqate
2
2
  module Bank
3
3
  # Result of a batch bank account validation.
4
- class BatchAccountValidation < Dry::Struct::Value
4
+ class BatchAccountValidation < Dry::Struct
5
5
  StatusInformation = Types::Strict::String.enum('CautiousOK', 'DetailsChanged', 'OK')
6
6
 
7
7
  # The original AccountNumber passed to validate, excluding any non numeric characters.
@@ -1,7 +1,7 @@
1
1
  module Loqate
2
2
  module Bank
3
3
  # Result of a bank branch retrieval.
4
- class Branch < Dry::Struct::Value
4
+ class Branch < Dry::Struct
5
5
  # The name of the banking institution.
6
6
  #
7
7
  # @return [String]
@@ -1,7 +1,7 @@
1
1
  module Loqate
2
2
  module Bank
3
3
  # Result of a card validation.
4
- class CardValidation < Dry::Struct::Value
4
+ class CardValidation < Dry::Struct
5
5
  # The cleaned card number.
6
6
  #
7
7
  # @return [String]
@@ -1,7 +1,7 @@
1
1
  module Loqate
2
2
  module Bank
3
3
  # Result of an international bank account validation.
4
- class InternationalAccountValidation < Dry::Struct::Value
4
+ class InternationalAccountValidation < Dry::Struct
5
5
  # Indicates whether the account number and sortcode are valid.
6
6
  #
7
7
  # @return [Boolean]
@@ -1,7 +1,7 @@
1
1
  module Loqate
2
2
  module Email
3
3
  # Result of a batch email address validation.
4
- class BatchEmailValidation < Dry::Struct::Value
4
+ class BatchEmailValidation < Dry::Struct
5
5
  Status = Types::Strict::String.enum('Valid', 'Invalid', 'Unknown', 'Accept_All')
6
6
 
7
7
  # Valid - The email address is valid
@@ -1,7 +1,7 @@
1
1
  module Loqate
2
2
  module Email
3
3
  # Result of a email address validation.
4
- class EmailValidation < Dry::Struct::Value
4
+ class EmailValidation < Dry::Struct
5
5
  ResponseCode = Types::Strict::String.enum('Valid', 'Valid_CatchAll', 'Invalid', 'Timeout')
6
6
 
7
7
  # Valid - The email address has been fully validated (including the account portion)
@@ -1,7 +1,7 @@
1
1
  module Loqate
2
2
  module Geocoding
3
3
  # A result from the position to country API call.
4
- class Country < Dry::Struct::Value
4
+ class Country < Dry::Struct
5
5
  # The name of the country where the position belongs to.
6
6
  #
7
7
  # @return [String]
@@ -1,7 +1,7 @@
1
1
  module Loqate
2
2
  module Geocoding
3
3
  # A result from the directions API call.
4
- class Direction < Dry::Struct::Value
4
+ class Direction < Dry::Struct
5
5
  # A zero based counter indicating the row number.
6
6
  #
7
7
  # @return [Integer]
@@ -1,7 +1,7 @@
1
1
  module Loqate
2
2
  module Geocoding
3
3
  # A result from the geocode API call.
4
- class Location < Dry::Struct::Value
4
+ class Location < Dry::Struct
5
5
  # The name of the location found.
6
6
  #
7
7
  # @return [String]
@@ -1,7 +1,7 @@
1
1
  module Loqate
2
2
  module Geocoding
3
3
  # A result from the API call to find the nearest places.
4
- class Place < Dry::Struct::Value
4
+ class Place < Dry::Struct
5
5
  # The postcode that is nearest to the given location.
6
6
  #
7
7
  # @return [String]
@@ -1,7 +1,7 @@
1
1
  module Loqate
2
2
  module Phone
3
3
  # Result of a phone number validation.
4
- class PhoneNumberValidation < Dry::Struct::Value
4
+ class PhoneNumberValidation < Dry::Struct
5
5
  IsValid = Types::Strict::String.enum('Yes', 'No', 'Unknown')
6
6
  NumberType = Types::Strict::String.enum('Mobile', 'Landline', 'Voip', 'Unknown')
7
7
 
@@ -4,6 +4,6 @@ require 'dry/struct'
4
4
  module Loqate
5
5
  # Dry-types container.
6
6
  module Types
7
- include Dry::Types.module
7
+ include Dry.Types()
8
8
  end
9
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Loqate
4
- VERSION = '0.10.1'
4
+ VERSION = '0.10.2'
5
5
  end
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_runtime_dependency 'dry-struct', '~> 1.0'
28
28
  spec.add_runtime_dependency 'http', '~> 4.0.0'
29
29
 
30
- spec.add_development_dependency 'bundler', '~> 1.16'
30
+ spec.add_development_dependency 'bundler', '>= 1.16'
31
31
  spec.add_development_dependency 'bundler-audit', '~> 0.6'
32
32
  spec.add_development_dependency 'guard', '~> 2.14'
33
33
  spec.add_development_dependency 'guard-bundler', '~> 2.1'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loqate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wilson Silva
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-29 00:00:00.000000000 Z
11
+ date: 2019-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.16'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.16'
55
55
  - !ruby/object:Gem::Dependency
@@ -330,7 +330,7 @@ files:
330
330
  - ".overcommit.yml"
331
331
  - ".rspec"
332
332
  - ".rubocop.yml"
333
- - ".ruby-version"
333
+ - ".tools-versions"
334
334
  - ".travis.yml"
335
335
  - ".yardopts"
336
336
  - ".yardstick.yml"
@@ -1 +0,0 @@
1
- 2.6.2