postcode_validator 1.0.2 → 1.1.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 +4 -4
- data/CHANGELOG.md +57 -0
- data/README.md +1 -1
- data/lib/active_model/validations/postcode_validator.rb +1 -1
- data/lib/postcode_validator/version.rb +1 -1
- data/postcode_validator.gemspec +18 -9
- metadata +13 -58
- data/.gitignore +0 -8
- data/.rspec +0 -2
- data/.rubocop.yml +0 -9
- data/.travis.yml +0 -11
- data/Gemfile +0 -6
- data/Gemfile.lock +0 -87
- data/Rakefile +0 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 700ad108feba9e111e2e6a42606e86e814514f736606a31f749cfd0cd5546cee
|
|
4
|
+
data.tar.gz: 9c5f77cd2a88f3d69c1791ed280d2d3fe9150b79c572837310608f4d349641ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 758104959abfc29bc2dc627e348833defadce197712d596c3b2720175356df19baca95e346476a94c130cf86f8af70ce6a647a69c5a68884066997b668f2d00c
|
|
7
|
+
data.tar.gz: '06169f4eb1be2a7f7834499939b85f241f62c87795ea22f76d6ad4d9eafda98ba11bc2aa0e492b7366ad10d32aeaab517cd98bbef320c211f8a9b89766ec9d59'
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## Version 1.1.0 (2025-10-23)
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
* Configure Dependabot to automatically update Github Actions (#19)
|
|
14
|
+
* Drop support for Rails 7.1, Ruby 2.7 and Ruby 3.0 (#18)
|
|
15
|
+
* Add Rails 8.1 to the test matrix (#17)
|
|
16
|
+
* Drop support for Rails 7.0 (#16)
|
|
17
|
+
* Add Ruby 3.4 to the test matrix (#15)
|
|
18
|
+
* Add Rails 8.0 to the test matrix (#14)
|
|
19
|
+
* Add Ruby 2.7 (Rails 7.0 minimum requirements) to the test matrix (#13)
|
|
20
|
+
* Remove Rails 6.1 from the test matrix (#13)
|
|
21
|
+
* Add Rails 7.2 to the test matrix (#12)
|
|
22
|
+
* Update test matrix (#9)
|
|
23
|
+
Add Ruby 3.3. Drop Ruby 2.6 and Ruby 2.7
|
|
24
|
+
* Migrate from Travis CI to Github Actions
|
|
25
|
+
* Add Ruby 3.2 to the test matrix
|
|
26
|
+
* Introduce `rubocop-performance` and apply recommendations
|
|
27
|
+
|
|
28
|
+
## Version 1.0.2 (2021-04-03)
|
|
29
|
+
|
|
30
|
+
### Breaking changes
|
|
31
|
+
|
|
32
|
+
* Drop support for Ruby < 2.6
|
|
33
|
+
|
|
34
|
+
### Changes
|
|
35
|
+
|
|
36
|
+
* Add support for Ruby 3.0
|
|
37
|
+
|
|
38
|
+
## Version 1.0.1 (2020-11-02)
|
|
39
|
+
|
|
40
|
+
### Breaking changes
|
|
41
|
+
|
|
42
|
+
* Drop support for Ruby < 2.5
|
|
43
|
+
|
|
44
|
+
### Changes
|
|
45
|
+
|
|
46
|
+
* Loosen version constraint to Twitter CLDR
|
|
47
|
+
* Introduce Travis CI to automate unit tests
|
|
48
|
+
|
|
49
|
+
## Version 1.0.0 (2018-03-30)
|
|
50
|
+
|
|
51
|
+
## Fixes
|
|
52
|
+
|
|
53
|
+
* Fix error messages translation
|
|
54
|
+
|
|
55
|
+
## Version 0.1.0 (2018-03-29)
|
|
56
|
+
|
|
57
|
+
Initial release.
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# PostcodeValidator
|
|
2
2
|
|
|
3
|
-
[](https://github.com/notus-sh/postcode_validator/actions/workflows/unit-tests.yml)
|
|
4
4
|
[](https://badge.fury.io/rb/postcode_validator)
|
|
5
5
|
|
|
6
6
|
A simple postcode validator based on the Unicode CLDR project, with an optional integration with ActiveModel.
|
data/postcode_validator.gemspec
CHANGED
|
@@ -17,16 +17,28 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
|
|
18
18
|
raise 'RubyGems 2.0 or newer is required.' unless spec.respond_to?(:metadata)
|
|
19
19
|
|
|
20
|
-
spec.metadata
|
|
20
|
+
spec.metadata = {
|
|
21
|
+
'allowed_push_host' => 'https://rubygems.org',
|
|
22
|
+
'rubygems_mfa_required' => 'true',
|
|
23
|
+
|
|
24
|
+
'bug_tracker_uri' => 'https://github.com/notus-sh/postcode_validator/issues',
|
|
25
|
+
'changelog_uri' => 'https://github.com/notus-sh/postcode_validator/blob/main/CHANGELOG.md',
|
|
26
|
+
'homepage_uri' => 'https://github.com/notus-sh/postcode_validator',
|
|
27
|
+
'source_code_uri' => 'https://github.com/notus-sh/postcode_validator',
|
|
28
|
+
'funding_uri' => 'https://opencollective.com/notus-sh'
|
|
29
|
+
}
|
|
21
30
|
|
|
22
31
|
spec.require_paths = ['lib']
|
|
23
|
-
|
|
24
|
-
|
|
32
|
+
|
|
33
|
+
excluded_dirs = %r{^(.github|dev|spec)/}
|
|
34
|
+
excluded_files = %w[.gitignore .rspec .rubocop.yml Gemfile Gemfile.lock Rakefile]
|
|
35
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
36
|
+
f.match(excluded_dirs) || excluded_files.include?(f)
|
|
25
37
|
end
|
|
26
38
|
|
|
27
|
-
spec.required_ruby_version = '>=
|
|
39
|
+
spec.required_ruby_version = '>= 3.1'
|
|
28
40
|
|
|
29
|
-
spec.
|
|
41
|
+
spec.add_dependency 'twitter_cldr', '> 4.4.0'
|
|
30
42
|
|
|
31
43
|
# Optional dependencies, used in tests
|
|
32
44
|
spec.add_development_dependency 'activemodel', '> 3.2.0'
|
|
@@ -35,8 +47,5 @@ Gem::Specification.new do |spec|
|
|
|
35
47
|
# Development tools
|
|
36
48
|
spec.add_development_dependency 'bundler', '~> 2.1'
|
|
37
49
|
spec.add_development_dependency 'rake', '~> 13.0'
|
|
38
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
|
39
|
-
spec.add_development_dependency 'rubocop'
|
|
40
|
-
spec.add_development_dependency 'rubocop-rake'
|
|
41
|
-
spec.add_development_dependency 'rubocop-rspec'
|
|
50
|
+
spec.add_development_dependency 'rspec', '~> 3.13.0'
|
|
42
51
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: postcode_validator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gaël-Ian Havard
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: twitter_cldr
|
|
@@ -86,56 +85,14 @@ dependencies:
|
|
|
86
85
|
requirements:
|
|
87
86
|
- - "~>"
|
|
88
87
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 3.
|
|
88
|
+
version: 3.13.0
|
|
90
89
|
type: :development
|
|
91
90
|
prerelease: false
|
|
92
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
92
|
requirements:
|
|
94
93
|
- - "~>"
|
|
95
94
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: 3.
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: rubocop
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - ">="
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: '0'
|
|
104
|
-
type: :development
|
|
105
|
-
prerelease: false
|
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - ">="
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: '0'
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: rubocop-rake
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - ">="
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: '0'
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - ">="
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: '0'
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
name: rubocop-rspec
|
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - ">="
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: '0'
|
|
132
|
-
type: :development
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - ">="
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: '0'
|
|
95
|
+
version: 3.13.0
|
|
139
96
|
description: A simple postcode validator based on ActiveModel and Unicode CLDR.
|
|
140
97
|
email:
|
|
141
98
|
- gael-ian@notus.sh
|
|
@@ -143,15 +100,9 @@ executables: []
|
|
|
143
100
|
extensions: []
|
|
144
101
|
extra_rdoc_files: []
|
|
145
102
|
files:
|
|
146
|
-
-
|
|
147
|
-
- ".rspec"
|
|
148
|
-
- ".rubocop.yml"
|
|
149
|
-
- ".travis.yml"
|
|
150
|
-
- Gemfile
|
|
151
|
-
- Gemfile.lock
|
|
103
|
+
- CHANGELOG.md
|
|
152
104
|
- LICENSE
|
|
153
105
|
- README.md
|
|
154
|
-
- Rakefile
|
|
155
106
|
- lib/active_model/validations/postcode_validator.rb
|
|
156
107
|
- lib/postcode_validator.rb
|
|
157
108
|
- lib/postcode_validator/version.rb
|
|
@@ -163,7 +114,12 @@ licenses:
|
|
|
163
114
|
- Apache-2.0
|
|
164
115
|
metadata:
|
|
165
116
|
allowed_push_host: https://rubygems.org
|
|
166
|
-
|
|
117
|
+
rubygems_mfa_required: 'true'
|
|
118
|
+
bug_tracker_uri: https://github.com/notus-sh/postcode_validator/issues
|
|
119
|
+
changelog_uri: https://github.com/notus-sh/postcode_validator/blob/main/CHANGELOG.md
|
|
120
|
+
homepage_uri: https://github.com/notus-sh/postcode_validator
|
|
121
|
+
source_code_uri: https://github.com/notus-sh/postcode_validator
|
|
122
|
+
funding_uri: https://opencollective.com/notus-sh
|
|
167
123
|
rdoc_options: []
|
|
168
124
|
require_paths:
|
|
169
125
|
- lib
|
|
@@ -171,15 +127,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
171
127
|
requirements:
|
|
172
128
|
- - ">="
|
|
173
129
|
- !ruby/object:Gem::Version
|
|
174
|
-
version: '
|
|
130
|
+
version: '3.1'
|
|
175
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
132
|
requirements:
|
|
177
133
|
- - ">="
|
|
178
134
|
- !ruby/object:Gem::Version
|
|
179
135
|
version: '0'
|
|
180
136
|
requirements: []
|
|
181
|
-
rubygems_version: 3.
|
|
182
|
-
signing_key:
|
|
137
|
+
rubygems_version: 3.6.9
|
|
183
138
|
specification_version: 4
|
|
184
139
|
summary: A simple postcode validator for Rails.
|
|
185
140
|
test_files: []
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.rubocop.yml
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
postcode_validator (1.0.2)
|
|
5
|
-
twitter_cldr (> 4.4.0)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
activemodel (6.1.3.1)
|
|
11
|
-
activesupport (= 6.1.3.1)
|
|
12
|
-
activesupport (6.1.3.1)
|
|
13
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
14
|
-
i18n (>= 1.6, < 2)
|
|
15
|
-
minitest (>= 5.1)
|
|
16
|
-
tzinfo (~> 2.0)
|
|
17
|
-
zeitwerk (~> 2.3)
|
|
18
|
-
ast (2.4.2)
|
|
19
|
-
camertron-eprun (1.1.1)
|
|
20
|
-
cldr-plurals-runtime-rb (1.1.0)
|
|
21
|
-
concurrent-ruby (1.1.8)
|
|
22
|
-
diff-lcs (1.4.4)
|
|
23
|
-
i18n (1.8.10)
|
|
24
|
-
concurrent-ruby (~> 1.0)
|
|
25
|
-
minitest (5.14.4)
|
|
26
|
-
parallel (1.20.1)
|
|
27
|
-
parser (3.0.1.1)
|
|
28
|
-
ast (~> 2.4.1)
|
|
29
|
-
rainbow (3.0.0)
|
|
30
|
-
rake (13.0.3)
|
|
31
|
-
regexp_parser (2.1.1)
|
|
32
|
-
rexml (3.2.5)
|
|
33
|
-
rspec (3.10.0)
|
|
34
|
-
rspec-core (~> 3.10.0)
|
|
35
|
-
rspec-expectations (~> 3.10.0)
|
|
36
|
-
rspec-mocks (~> 3.10.0)
|
|
37
|
-
rspec-core (3.10.1)
|
|
38
|
-
rspec-support (~> 3.10.0)
|
|
39
|
-
rspec-expectations (3.10.1)
|
|
40
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
41
|
-
rspec-support (~> 3.10.0)
|
|
42
|
-
rspec-mocks (3.10.2)
|
|
43
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
44
|
-
rspec-support (~> 3.10.0)
|
|
45
|
-
rspec-support (3.10.2)
|
|
46
|
-
rubocop (1.13.0)
|
|
47
|
-
parallel (~> 1.10)
|
|
48
|
-
parser (>= 3.0.0.0)
|
|
49
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
50
|
-
regexp_parser (>= 1.8, < 3.0)
|
|
51
|
-
rexml
|
|
52
|
-
rubocop-ast (>= 1.2.0, < 2.0)
|
|
53
|
-
ruby-progressbar (~> 1.7)
|
|
54
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
|
55
|
-
rubocop-ast (1.5.0)
|
|
56
|
-
parser (>= 3.0.1.1)
|
|
57
|
-
rubocop-rake (0.5.1)
|
|
58
|
-
rubocop
|
|
59
|
-
rubocop-rspec (2.3.0)
|
|
60
|
-
rubocop (~> 1.0)
|
|
61
|
-
rubocop-ast (>= 1.1.0)
|
|
62
|
-
ruby-progressbar (1.11.0)
|
|
63
|
-
twitter_cldr (6.6.0)
|
|
64
|
-
camertron-eprun
|
|
65
|
-
cldr-plurals-runtime-rb (~> 1.1)
|
|
66
|
-
tzinfo
|
|
67
|
-
tzinfo (2.0.4)
|
|
68
|
-
concurrent-ruby (~> 1.0)
|
|
69
|
-
unicode-display_width (2.0.0)
|
|
70
|
-
zeitwerk (2.4.2)
|
|
71
|
-
|
|
72
|
-
PLATFORMS
|
|
73
|
-
ruby
|
|
74
|
-
|
|
75
|
-
DEPENDENCIES
|
|
76
|
-
activemodel (> 3.2.0)
|
|
77
|
-
activesupport (> 3.2.0)
|
|
78
|
-
bundler (~> 2.1)
|
|
79
|
-
postcode_validator!
|
|
80
|
-
rake (~> 13.0)
|
|
81
|
-
rspec (~> 3.10.0)
|
|
82
|
-
rubocop
|
|
83
|
-
rubocop-rake
|
|
84
|
-
rubocop-rspec
|
|
85
|
-
|
|
86
|
-
BUNDLED WITH
|
|
87
|
-
2.2.3
|