postman_paf 0.5.2 → 0.5.3
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 +4 -4
- data/.github/workflows/gem-push.yml +5 -5
- data/.github/workflows/gem-test.yml +2 -2
- data/.ruby-version +1 -1
- data/Gemfile +3 -3
- data/lib/postman_paf/rules/address_builder.rb +1 -1
- data/lib/postman_paf/version.rb +1 -1
- data/postman_paf.gemspec +1 -1
- metadata +5 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6fbd2552b437243f0df91e178c30782947b8362a49f1f5ef50f634e5b38ba43
|
4
|
+
data.tar.gz: 256a8d5ea224e9f17010fe5e493ce0b5f8c1d70500f1487125246408fed85ccc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c599b99d92cb3965598c2900169883a06672abc8cb400ed8b11175e09d5703ccfb99820017318322100b6180dcc82a9236fe1af03aebbfd33c42e834acc3b79f
|
7
|
+
data.tar.gz: 15c5cffea815ee08e20ba1859fa807c68378adfdd352c527e0885a98c5720a666022702a4356f362e4a0eecd04180bc945b2c11c76d98dc91473ed492287d06d
|
@@ -9,10 +9,10 @@ jobs:
|
|
9
9
|
runs-on: ubuntu-latest
|
10
10
|
strategy:
|
11
11
|
matrix:
|
12
|
-
ruby-version: [ '3.0', '3.1', '3.2' ]
|
12
|
+
ruby-version: [ '3.0', '3.1', '3.2', '3.3', '3.4' ]
|
13
13
|
|
14
14
|
steps:
|
15
|
-
- uses: actions/checkout@
|
15
|
+
- uses: actions/checkout@v4
|
16
16
|
- name: Set up Ruby
|
17
17
|
uses: ruby/setup-ruby@v1
|
18
18
|
with:
|
@@ -29,11 +29,11 @@ jobs:
|
|
29
29
|
contents: read
|
30
30
|
|
31
31
|
steps:
|
32
|
-
- uses: actions/checkout@
|
33
|
-
- name: Set up Ruby 3.
|
32
|
+
- uses: actions/checkout@v4
|
33
|
+
- name: Set up Ruby 3.4
|
34
34
|
uses: ruby/setup-ruby@v1
|
35
35
|
with:
|
36
|
-
ruby-version: 3.
|
36
|
+
ruby-version: 3.4
|
37
37
|
bundler-cache: true
|
38
38
|
|
39
39
|
- name: Publish to RubyGems
|
@@ -9,10 +9,10 @@ jobs:
|
|
9
9
|
runs-on: ubuntu-latest
|
10
10
|
strategy:
|
11
11
|
matrix:
|
12
|
-
ruby-version: [ '3.0', '3.1', '3.2' ]
|
12
|
+
ruby-version: [ '3.0', '3.1', '3.2', '3.3', '3.4' ]
|
13
13
|
|
14
14
|
steps:
|
15
|
-
- uses: actions/checkout@
|
15
|
+
- uses: actions/checkout@v4
|
16
16
|
- name: Set up Ruby
|
17
17
|
uses: ruby/setup-ruby@v1
|
18
18
|
with:
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.4.5
|
data/Gemfile
CHANGED
@@ -7,10 +7,10 @@ gemspec
|
|
7
7
|
|
8
8
|
# Development dependencies
|
9
9
|
gem 'bundler-audit', '~> 0.9.2'
|
10
|
-
gem 'dvla-lint', '~> 1.
|
10
|
+
gem 'dvla-lint', '~> 1.10'
|
11
11
|
gem 'hash_miner', '~> 1.1.3'
|
12
|
-
gem 'rake', '~> 13.
|
12
|
+
gem 'rake', '~> 13.3'
|
13
13
|
gem 'rspec', '~> 3.13.0'
|
14
|
-
gem 'rubocop', '~> 1.
|
14
|
+
gem 'rubocop', '~> 1.80'
|
15
15
|
gem 'simplecov', '~> 0.22.0'
|
16
16
|
gem 'simplecov-console', '~> 0.9.2'
|
@@ -15,7 +15,7 @@ module PostmanPAF
|
|
15
15
|
lines.each_with_index do |line, index|
|
16
16
|
line_number = index + 1
|
17
17
|
line = line.to_s if line.is_a?(Integer)
|
18
|
-
printable_address.send(:"line#{line_number}=", line) if line_number
|
18
|
+
printable_address.send(:"line#{line_number}=", line) if line_number.between?(1, 5)
|
19
19
|
end
|
20
20
|
|
21
21
|
printable_address.postcode = paf_address[POSTCODE]
|
data/lib/postman_paf/version.rb
CHANGED
data/postman_paf.gemspec
CHANGED
metadata
CHANGED
@@ -1,28 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: postman_paf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Driver and Vehicle Licensing Agency (DVLA)
|
8
8
|
- Mark Isaac
|
9
|
-
autorequire:
|
10
9
|
bindir: exe
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: simple_symbolize
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
|
-
- - "
|
17
|
+
- - ">="
|
19
18
|
- !ruby/object:Gem::Version
|
20
19
|
version: '4.0'
|
21
20
|
type: :runtime
|
22
21
|
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
|
-
- - "
|
24
|
+
- - ">="
|
26
25
|
- !ruby/object:Gem::Version
|
27
26
|
version: '4.0'
|
28
27
|
description: Unofficial gem to apply Royal Mail Rules & Exceptions when formatting
|
@@ -72,7 +71,6 @@ homepage: https://github.com/dvla/postman-paf
|
|
72
71
|
licenses:
|
73
72
|
- MIT
|
74
73
|
metadata: {}
|
75
|
-
post_install_message:
|
76
74
|
rdoc_options: []
|
77
75
|
require_paths:
|
78
76
|
- lib
|
@@ -87,8 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
85
|
- !ruby/object:Gem::Version
|
88
86
|
version: '0'
|
89
87
|
requirements: []
|
90
|
-
rubygems_version: 3.
|
91
|
-
signing_key:
|
88
|
+
rubygems_version: 3.6.9
|
92
89
|
specification_version: 4
|
93
90
|
summary: Converts Royal Mail PAF (Postcode Address File) addresses to a printable
|
94
91
|
format.
|