postcode_validator 1.0.1 → 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 -7
- metadata +13 -30
- 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 -81
- 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,6 +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'
|
|
50
|
+
spec.add_development_dependency 'rspec', '~> 3.13.0'
|
|
40
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,28 +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'
|
|
95
|
+
version: 3.13.0
|
|
111
96
|
description: A simple postcode validator based on ActiveModel and Unicode CLDR.
|
|
112
97
|
email:
|
|
113
98
|
- gael-ian@notus.sh
|
|
@@ -115,15 +100,9 @@ executables: []
|
|
|
115
100
|
extensions: []
|
|
116
101
|
extra_rdoc_files: []
|
|
117
102
|
files:
|
|
118
|
-
-
|
|
119
|
-
- ".rspec"
|
|
120
|
-
- ".rubocop.yml"
|
|
121
|
-
- ".travis.yml"
|
|
122
|
-
- Gemfile
|
|
123
|
-
- Gemfile.lock
|
|
103
|
+
- CHANGELOG.md
|
|
124
104
|
- LICENSE
|
|
125
105
|
- README.md
|
|
126
|
-
- Rakefile
|
|
127
106
|
- lib/active_model/validations/postcode_validator.rb
|
|
128
107
|
- lib/postcode_validator.rb
|
|
129
108
|
- lib/postcode_validator/version.rb
|
|
@@ -135,7 +114,12 @@ licenses:
|
|
|
135
114
|
- Apache-2.0
|
|
136
115
|
metadata:
|
|
137
116
|
allowed_push_host: https://rubygems.org
|
|
138
|
-
|
|
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
|
|
139
123
|
rdoc_options: []
|
|
140
124
|
require_paths:
|
|
141
125
|
- lib
|
|
@@ -143,15 +127,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
143
127
|
requirements:
|
|
144
128
|
- - ">="
|
|
145
129
|
- !ruby/object:Gem::Version
|
|
146
|
-
version: '
|
|
130
|
+
version: '3.1'
|
|
147
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
132
|
requirements:
|
|
149
133
|
- - ">="
|
|
150
134
|
- !ruby/object:Gem::Version
|
|
151
135
|
version: '0'
|
|
152
136
|
requirements: []
|
|
153
|
-
rubygems_version: 3.
|
|
154
|
-
signing_key:
|
|
137
|
+
rubygems_version: 3.6.9
|
|
155
138
|
specification_version: 4
|
|
156
139
|
summary: A simple postcode validator for Rails.
|
|
157
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,81 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
postcode_validator (1.0.1)
|
|
5
|
-
twitter_cldr (> 4.4.0)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
activemodel (6.0.3.4)
|
|
11
|
-
activesupport (= 6.0.3.4)
|
|
12
|
-
activesupport (6.0.3.4)
|
|
13
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
14
|
-
i18n (>= 0.7, < 2)
|
|
15
|
-
minitest (~> 5.1)
|
|
16
|
-
tzinfo (~> 1.1)
|
|
17
|
-
zeitwerk (~> 2.2, >= 2.2.2)
|
|
18
|
-
ast (2.4.1)
|
|
19
|
-
camertron-eprun (1.1.1)
|
|
20
|
-
cldr-plurals-runtime-rb (1.0.1)
|
|
21
|
-
concurrent-ruby (1.1.7)
|
|
22
|
-
diff-lcs (1.4.4)
|
|
23
|
-
i18n (1.8.5)
|
|
24
|
-
concurrent-ruby (~> 1.0)
|
|
25
|
-
minitest (5.14.2)
|
|
26
|
-
parallel (1.19.2)
|
|
27
|
-
parser (2.7.2.0)
|
|
28
|
-
ast (~> 2.4.1)
|
|
29
|
-
rainbow (3.0.0)
|
|
30
|
-
rake (13.0.1)
|
|
31
|
-
regexp_parser (1.8.2)
|
|
32
|
-
rexml (3.2.4)
|
|
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.0)
|
|
38
|
-
rspec-support (~> 3.10.0)
|
|
39
|
-
rspec-expectations (3.10.0)
|
|
40
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
41
|
-
rspec-support (~> 3.10.0)
|
|
42
|
-
rspec-mocks (3.10.0)
|
|
43
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
44
|
-
rspec-support (~> 3.10.0)
|
|
45
|
-
rspec-support (3.10.0)
|
|
46
|
-
rubocop (1.1.0)
|
|
47
|
-
parallel (~> 1.10)
|
|
48
|
-
parser (>= 2.7.1.5)
|
|
49
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
50
|
-
regexp_parser (>= 1.8)
|
|
51
|
-
rexml
|
|
52
|
-
rubocop-ast (>= 1.0.1)
|
|
53
|
-
ruby-progressbar (~> 1.7)
|
|
54
|
-
unicode-display_width (>= 1.4.0, < 2.0)
|
|
55
|
-
rubocop-ast (1.1.0)
|
|
56
|
-
parser (>= 2.7.1.5)
|
|
57
|
-
ruby-progressbar (1.10.1)
|
|
58
|
-
thread_safe (0.3.6)
|
|
59
|
-
twitter_cldr (6.3.0)
|
|
60
|
-
camertron-eprun
|
|
61
|
-
cldr-plurals-runtime-rb (~> 1.0)
|
|
62
|
-
tzinfo
|
|
63
|
-
tzinfo (1.2.7)
|
|
64
|
-
thread_safe (~> 0.1)
|
|
65
|
-
unicode-display_width (1.7.0)
|
|
66
|
-
zeitwerk (2.4.1)
|
|
67
|
-
|
|
68
|
-
PLATFORMS
|
|
69
|
-
ruby
|
|
70
|
-
|
|
71
|
-
DEPENDENCIES
|
|
72
|
-
activemodel (> 3.2.0)
|
|
73
|
-
activesupport (> 3.2.0)
|
|
74
|
-
bundler (~> 2.1)
|
|
75
|
-
postcode_validator!
|
|
76
|
-
rake (~> 13.0)
|
|
77
|
-
rspec (~> 3.10.0)
|
|
78
|
-
rubocop
|
|
79
|
-
|
|
80
|
-
BUNDLED WITH
|
|
81
|
-
2.1.4
|